First, set up VMware
In VMware Edit--Virtual network Editor settings: Set VMnet0 to "Bridge" and bridge to the network card of the host machine (either wired or wireless).
Second, set up the virtual machine system (take CentOS as an example) set the network adapter to bridge three, configure IP (all in the command interface, the same as the graphical interface) 1, edit/etc/sysconfig/network-scripts/ifcfg-eth0 Add IP Information, my configuration information (Red Department)
Description: Bootproto:staic (static IP), DHCP (dynamic Assignment) NETMASK (subnet mask) and gateway (gateway) and host machine, IPADDR (IP address) and host machine are different.
2, edit/etc/resolv.conf, set up DNS (same as host machine)
NameServer 62.139.23.69
NameServer 204.98.94.68
Iv. Start the network
Start editing, fill in the IP address, subnet mask, gateway, DNS, and so on. Where "the information inside the red box" is necessary.
Liunx Bridging Internet IP configuration