First, the network card mode selection
Network card 1: Host-only
is used for mutual access between the host and host. This is the communication between the host and the host through the network of 192.168.56.X. Whether the host can access the Internet does not affect the communication between the two parties
. Network card 2: The NAT
host uses this network card to pass the host. go online
Two, concrete arrangement
Modify the /etc/sysconfig/network-scripts/ifcfg-eth0 file to configure the Host-only network:
Modify the ifcfg-eth1 file and configure the NAT network:
Restart the network
Under the host machine: /etc/init.d/network restart
ping Under the baidu.com
host: ping 192.168.56.110