2008年3月14日

[Network] IP config

set IP. netmask, gateway
sudo vi /etc/network/interfaces
example:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 140.116.xxx.xxx
netmask 255.255.255.0
gateway 140.116.xxx.xxx

add DNS

sudo vim /etc/resolv.conf

restart network

sudo /etc/init.d/networking restart

沒有留言: