nano /etc/network/interfaces
对ip进行相应的修改
修改以下内容。
# 回环网络接口
auto lo
iface lo inet loopback
# 主网络接口
iface eth0 inet manual
auto pnet0
iface pnet0 inet static
bridge_ports eth0
bridge_stp off
address 192.168.0.219
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameserver 114.114.114.114
然后重新启动网卡使其生效
/etc/init.d/networking restart
注意:根据你的需要修改 IP 地址。
然后
service networking restart
没有回复内容