【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

你可能感兴趣的:(ubuntu)