The first step is to set up IP-related information for Linux. Using Setup to enter the IP settings interface, select Device configuration IP in the following interface, in the settings IP interface use DHCP in the * Change to space, other IP normal configuration, must remember to configure DNS, or not on the Internet. Save after configuration is complete.
The second step, open vi/etc/sysconfig/network-scripts/ifcfg-eth0 (in fact, this file can also complete the IP configuration, which has IP, DNS configuration changes), the onboot=no changed to Yes to activate the network card, After saving, use service network restart to restart the network service, this time the network configuration of Linux has been completed.
The third step is to modify the virtual machine settings and change the network adapter to bridge: Use the physical network directly. When finished, use the ping command to test the network situation.
Record the first time a network is configured for Linux and connect to a real network in a virtual machine