【Linux】Ubuntu13.10 设置静态ip地址

vim /etc/network/interfaces

 # interfaces(5) file used by ifup(8) and ifdown(8)
 auto eth0
 iface eth0 inet static
 address 200.200.137.173
 netmask 255.255.252.0
 gateway 200.200.136.80
 dns-nameservers 8.8.8.8 2.2.2.2

 

sudo service networking restart

posted @ 2014-03-05 16:47  scue  阅读(789)  评论(0编辑  收藏  举报