美文网首页
VBox下CentOS虚拟机双网卡上不了网的问题

VBox下CentOS虚拟机双网卡上不了网的问题

作者: 七秒的记忆_d4a7 | 来源:发表于2020-01-07 18:28 被阅读0次

1、VBox配置双网卡

  • 网卡1用NAT方式连接
  • 网卡2用桥接方式连接


    image2020-1-7_14-43-49.png
    image2020-1-7_16-41-31.png

2、CentOS虚拟网卡配置

  • eth0网卡设置dhcp
  • eth1网卡设置static,并且指定静态ip地址(可通过该ip进行ssh连接)
image.png

3、开机自启动,设置一下默认网关 vim /etc/rc.local

image2020-1-7_16-42-25.png

相关文章

网友评论

      本文标题:VBox下CentOS虚拟机双网卡上不了网的问题

      本文链接:https://www.haomeiwen.com/subject/fbldactx.html