Network configuration under vituralbox

1. Set virtualBox to bridge mode

2. Bridge mode makes the host and virtual machine work in the same network segment

and adjust

the following parameters 3. Set DNS server Set the dns server
by the following command: vi /etc/resolv.conf

4. Close the virtual machine firewall
service iptables stop
5. Restart the network service
service network restart
6. The virtual machine can ping the host





Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326275006&siteId=291194637