linux网络配置

 

网络配置:

sudo nano /etc/network/interfaces

 

auto eth0

iface eth0 inet static

address 192.168.0.110

gateway 192.168.0.1

netmask 255.255.255.0

dns-nameservers 221.7.136.68 

 

如果将nameservers 值写入resolv.conf重启之后会被覆盖

 

 

你可能感兴趣的:(linux)