Tuesday, March 17, 2009

Ubuntu Linux convert DHCP network configuration to static IP configuration
vi /etc/network/interfaces
IP,NM,GW,NET,BC
iface eth0 inet staticaddress 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.254
sudo /etc/init.d/networking restart
DNS
vi /etc/resolv.conf
nameserver 192.168.1.254nameserver 202.54.1.20
Display network interface information
ifconfig

No comments:

Post a Comment