注:适用于ubuntu8.04,静态IP分配
1.修改/etc/resolv.conf:
nameserver 202.114.0.242
nameserver 202.112.20.131
2.修改/etc/networks/interfaces:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 218.197.198.48
netmask 255.255.255.0
gateway 218.197.198.254
3./etc/init.d/networking restart
runsisi@163.com 2009.2.24 @HUST