centOS7.x bridge mode can not be connected

1. Make sure the bridge is connected to a local virtual machine network adapter:

Open the Control Panel \ Network and Internet \-Fi

 

 

 Click on the network have a network connection property

 

 To see if there are bridge protocol, if not, you can install it

In this step, you can see at the same time with the network card

 

2. Edit the virtual machine's virtual network

Vmware top left of the menu bar to open, edit / Virtual Network Editor

VMnet0 refers to the virtual bridge

VMnet1指host-only

VMnet8 refers to NAT 

Click the bottom right to change settings

Select below the bridge mode, bridged to the NIC we just saw.

 

 

3. Modify the network card configuration file, set a static ip

1. The host now found in the machine using the ipconfig command ip and subnet mask, default gateway

2. modify the configuration file in a virtual machine 

cd /etc/sysconfig/network-scripts

Modified with ifcfg-eno16777736 vi editor

Added at the end of a network and the local ip ip address, subnet mask, and

Then BOOTPROTO by the dhcp amended as static

 

3./etc/sysconfig/network modify the network configuration file

= NETWORKING Yes 
the GATEWAY = # 172.23.0.1 to the machine and the same external network default gateway

 

4. Restart network

service network restart

 

 

 

Show ip address has been

 

Guess you like

Origin www.cnblogs.com/wangzhihang/p/11806446.html