2013年3月5日 星期二

Ubuntu 12.04 修改IP

From Evernote:

Ubuntu 12.04 修改IP

修改位置如下:/etc/network/interfaces

$ vim /etc/network/interfaces

修改內容如下:
auto eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 168.95.1.1


PS. 新的ubuntu dns必需在這設定。


修改完畢,重新啟動網路介面
/etc/init.d/networking restart

沒有留言:

張貼留言