把连接设置为桥接模式,自动获得ip的命令:dhclient

 centos上网设置

vi /etc/sysconfig ig/network-scripts/ifcfg-eth0

centos上网设置

 

案例1:

centos上网设置

案例2:

centos上网设置

 

设置好后保存,重启服务:

/etc/init.d/network restart
或使用命令:
service network restart

相关文章:

  • 2021-10-15
  • 2022-01-22
  • 2021-10-16
  • 2021-06-28
  • 2021-08-12
  • 2022-02-07
  • 2022-02-07
猜你喜欢
  • 2022-02-07
  • 2021-11-20
  • 2022-02-07
  • 2021-12-22
  • 2021-12-27
相关资源
相似解决方案