ubuntu12.0网络设置
设置静态IP:
root@root:/# vi /etc/network/interface
注释掉:iface eth0 inet dhcp
添加:iface eth0 inet static
address:IP地址
netmask:255.255.255.0
gateway:网关
保存后重启:/etc/init.d/networking restart
修改dns:
vi /etc/resolv.conf
nameserver DNS地址.比如:nameserver 8.8.8.8
这个dns服务器重启后会重置。永久性更改:
vi /etc/resolvconf/resolv.conf.d/base
在其中添加dns后保存即可。

浙公网安备 33010602011771号