linux网络配置

直接编辑 /etc/network/interfaces :

auto eth0

iface eth0 inet static

address 192.168.0.8

netmask 255.255.255.0

network 192.168.0.0

broadcast 192.168.0.255

gateway 192.168.0.1

DNS服务器配置文件 : /etc/resolv.conf

nameserver 61.177.7.1

nameserver 221.228.255.1

nameserver 211.103.13.101

nameserver 211.138.200.69

相关: 激活/关闭网卡: ifup ifdown  或 ifconfig eth0 up/down

Leave a Comment