首页 > 技术文章 > 【Linux】Ubuntu13.10 设置静态ip地址

scue 2014-03-05 16:47 原文

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

推荐阅读