Tag Archives: static ip

CentOS Networking FAQ

How to set static ip..? [root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 ONBOOT=yes BOOTPROTO=static IPADDR=192.168.1.13 NETMASK=255.255.255.0 TYPE=Ethernet [root@localhost ~]# Edit your/etc/sysconfig/network-scripts/ifcfg-eth0 file like this. Then restart your network. How to restart the network..? The command for stop the network is “/etc/init.d/network stop” … Continue reading

Posted in Linux, Uncategorized | Tagged , | Leave a comment

How to set the static ip address in ubuntu..?

edit your /etc/network/interfaces file to auto eth0 iface eth0 inet static address 192.168.0.50 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1 after that rebooting your network by excecuting the below command… [root@localhost ~]# /etc/init.d/networking restart

Posted in Linux | Tagged , , | Leave a comment