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连接)

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

1、VBox配置双网卡
网卡2用桥接方式连接
2、CentOS虚拟网卡配置
3、开机自启动,设置一下默认网关 vim /etc/rc.local
本文标题:VBox下CentOS虚拟机双网卡上不了网的问题
本文链接:https://www.haomeiwen.com/subject/fbldactx.html
网友评论