#vim   /etc/network/interfaces 

修改以下内容: 

# The loopback network interface
auto lo
iface lo inet loopback 
# The primary network interface
iface eth0 inet manual
auto pnet0
iface pnet0 inet static              #修改成static
    bridge_ports eth0
    bridge_stp off
    address 192.168.0.219        #配置IP地址和DNS
    netmask 255.255.255.0
    gateway 192.168.0.1
    dns-nameserver 114.114.114.114

  

然后重启网卡生效 

#/etc/init.d/networking  restart

 

相关文章:

  • 2021-11-19
  • 2021-11-19
  • 2021-11-19
  • 2021-10-12
  • 2021-08-23
  • 2021-05-28
  • 2021-12-10
  • 2021-09-01
猜你喜欢
  • 2022-12-23
  • 2021-08-19
  • 2021-11-01
  • 2022-12-23
  • 2021-10-09
  • 2021-05-09
  • 2021-04-24
相关资源
相似解决方案