Configure IP Address in Linux
1) EDIT
a) DHCP
b) STATIC
2) DNS
3) RESTART
/etc/network/interfaces
a) DHCP
auto eth0
iface eth0 inet dhcp
b) STATIC
iface eth1 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1
2) DNS
/etc/resolv.conf
search mydomain.com
nameserver 192.168.0.1
nameserver 4.2.2.2
3) RESTART
/etc/init.d/network restart
ifdown eth0
ifup eth0
Commenti