ubuntu使用技巧(八)

设置静态IP地址一个例子,设置静态IP,默认经常都是dhcp。# The loopback network interface
auto lo
iface lo inet loopback

The primary network interface

auto eth0
iface eth0 inet static
address 172.16.10.51
netmask 255.255.0.0
network 172.16.0.0
broadcast 172.16.255.255
gateway 172.16.10.1

dns-* options are implemented by the resolvconf package, if installed

dns-search test.com

谢谢楼主分享,又学会一招