Virtual machine bridge problem

I've been depressed for a long time. I can't access the Internet when I use VMWare to install a virtual machine. It is reasonable to choose bridging to be the easiest. All kinds of Baidu always fail.

Suddenly this problem was solved today.


Pre

  • VMware® Workstation 12 Pro

  • CentOS-7-x86_64-DVD-1708

  • Windows10

  • Evil Great Wall Broadband

Windows network card settings

I use the WiFi network card to access the router's subnet

  1. Control Panel -- Network and Internet -- Network Connections

  2. Right-click the WLAN network card, confirm the installation in properties and check VMware Bridge Protocol

VMWare Network Settings

  1. Edit -- Virtual Network Editor

  2. Change settings at bottom right

  3. You can restore default settings

  4. The bridge mode item, VMnet0, choose to bridge to your own wireless network card

  5. Virtual machine settings, network adapters, select bridge mode

Virtual machine settings

/etc/sysconfig/network-scripts, modify the corresponding network card file

DNS1=8.8.8.8

IPADDR=192.168.3.24

GATEWAY=192.168.3.1

NETMASK=255.255.255.0

Guess you like

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