Look no firewall off
A bridge mode setting .VMware
1.VMware -> Edit -> Virtual Network Editor -> Change Settings
Select VMnet0 (bridge mode), select the card with the same name as the host, the host can see the name of the NIC in the Network Center
2. Set bridge mode
Select the bridge mode
II. Can not solve the problem on the network
0, the virtual machine vmware: vmnet0 the corresponding bridging mode; NAT mode corresponding to the vmnet1; vmnet8 corresponds to only host mode.
After installing vmware, in the network adapter will be more and vmnet1 vmnet8 two network adapters.
1. Check local connection
Is there a "VMware Bridge Protocol" option (1) property. If not, the need to install - service - add - Disk - browse - select netbridge.inf-- under the VMware installation directory OK - OK to install. Will appear after installation.
(2) whether this option is selected, if not checked, check.
2, View vmware: edit - Virtual Network Editor - Change settings
(1) Whether the same time there VMnet0 VMnet1 VMnet8, and cultural correspondence between the first match (of course bridging network will only use VMnet0). If it does not, click on the "Restore Defaults" button to restore settings, it will be only the above three options after the restore.
(2) Select VMnet0, in the bottom of the "bridge to" option box, the default choice is "automatic." If only one card, you can not choose. If you have multiple network cards, it is best to manually select a network adapter bridged to the host computer name of hope.
(3) ensure that the "bridge to" option box that appears the host computer's network adapter name is correct, if not correct, to see if there are other wifi device is not set correctly.
3, view the target virtual machine: Settings - Network adapter - select bridge mode
2 and 3 is a Set bridge mode
4. I CentOS7 disposed after installing the bridge mode does not know why not to external networks
Open Network Connections in a graphical interface, delete configuration
Re-set
Of course, you can also use pure command-line settings
1. Back up the Network Configuration
cd to the / etc / sysconfig / network-scripts directory
cd /etc/sysconfig/network-scripts
View the files in that directory, ifcfg-eth0 (this is the file name after I centOS7 renamed after I installed centOS7 began as ifcfg-eno33)
Backup configuration files
cp ifcfg-eth0 ifcfg-eth0.backup
2. Open the configuration file, edit, save
we ifcfg-eth0
Input i in insert mode edit command mode
= 00 HWADDR: 0C: 29: E1: 73: 78
the TYPE = Ethernet
PROXY_METHOD = none
BROWSER_ONLY = NO
BOOTPROTO = #static static, static ip, instead of dhcp, automatically obtain ip address
DEFROUTE = yes
IPV4_FAILURE_FATAL = NO
IPV6INIT = yes
IPV6_AUTOCONF = yes
IPV6_DEFROUTE = yes
IPV6_FAILURE_FATAL = NO
IPV6_ADDR_GEN_MODE = Privacy stable-
nAME = eth0 # virtual network adapter name
UUID = d6b36c63-6d8b-3e84-8c2c-1e284b831773
ONBOOT = yes # enable network boot configuration.
= -999 AUTOCONNECT_PRIORITY
DNS1 = 8.8.8.8 # Google the DNS
DNS2 = 8.8.8.4
IPADDR = 192.168.0.104 # set a static ip address I want to use, and physical hosts to the same network segment, but not the same
I.e. PREFIX = 24 # subnet mask (255.255.255.0), and can be a physical host as
GATEWAY = 192.168.0.1 # gateway host and the same physical
Finished modifying Press Esc to enter command mode, press shift +: wq to save and exit input
3. Restart Service
service network restart
The reason for the virtual machine host ping nowhere
Simple way: Turn off the host firewall, you can
Second way:
The host win10: windows Firewall - Advanced Settings - inbound rule - a virtual machine monitor (echo request -ICMPv4-In).
This enabled it to put it. If the network is in public, you need to go to Properties - Advanced check utility
---------------------
Author: Bob_666
Source: CSDN
Original: https: //blog.csdn.net/bob_666/article/details/81412242
Disclaimer: This article as a blogger original article, reproduced, please attach Bowen link!