VBox下CentOS虚拟机双网卡上不了网的问题
2020-01-07 本文已影响0人
七秒的记忆_d4a7
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
