Networking in bridge mode
- Manual IP configuration using the setup command
-
View Host ip
win + R-> cmd> ipconfig -
Use the setup command to set the virtual network card ip
the IP settings for the virtual network adapter in the phenomenon of the same network segment, but not for the same IP, otherwise there will be a virtual machine and the host can not access the Internet with the host -
After resetting the card information to restart the network services service network restart
-
Then the card will start the set ifup + [name of the NIC / eth0] // can directly edit the / etc / sysconfig / network-scripts / ifcfg-eth0 card system to boot up automatically on startup: The ONBOOT = no change ONBOOT = yes
- View IP with ifconfig, and see if you can access
-
NIC directly modify file
1. NIC configuration file / etc / sysconfig / network-scripts / ifcfg-eth0
2. Open the file in the file can be directly modified -
Modify the network card configuration file (that is, the above command open), the Internet services can automatically obtain an IP go in every time you start
the BOOTPROTO = none = dhcp instead be BOOTPROTO
NM_CONTROL = yes instead NM_CONTROL = no
other command " # "to comment out