First, there are three ways to introduce VMware network settings:
VMware offers three modes of operation, Host-only (host mode), NAT (network address translation mode), bridged (bridging mode).
1.host-only (host mode) in some special network debugging environment, how to require the real environment and virtual environment isolation, then you can use Host-only mode. In host-only mode, all virtual systems can communicate with each other, but virtual systems and real networks are isolated, and VMware virtual machines do not have access to the Internet. Note: In host-only mode, the virtual system and the host machine system can communicate with each other, which is equivalent to the two machines connected by twisted pair wires. In host-only mode, the TCP/IP configuration information (such as IP address, gateway address, DNS server, etc.) of the virtual system is dynamically allocated by the DHCP server of the VMNET1 (host-only) virtual network. If you want to use VMware to create a virtual system that is isolated from other machines in the network, you can choose Host-only mode for some special network debugging work.
2.NAT (network address translation mode)
Using NAT mode, the virtual system uses the NAT (network address translation) function to access the public network through the network where the host machine resides. In other words, the use of NAT mode enables access to the Internet in virtual systems. The TCP/IP configuration information for a virtual system in NAT mode is provided by the DHCP server of the VMNET8 (NAT) virtual network and cannot be modified manually, so a virtual system with NAT mode will not be able to communicate with other real hosts on the local area network.
The biggest advantage of using NAT mode is that virtual system access to the Internet is very simple, you do not need to do any other configuration, only the host machine can access the Internet, the virtual machine can access the Internet.
3.bridged (bridging mode) in this mode, the VMware virtual operating system is like a separate host in the LAN, which can access any machine in the network. In bridging mode, you need to manually configure the virtual system with an IP address, subnet mask, and a host machine in the same network segment so that the virtual system can communicate with the host machine. At the same time, because this virtual system is a separate host system in the LAN, it is possible to manually configure its TCP/IP configuration information to enable access to the Internet through a LAN gateway or router. The relationship between a virtual system using bridging mode and a host machine is like two computers connected to the same hub. To make them communicate with each other, you need to configure the IP address and subnet mask for the virtual system, or you will not be able to communicate.
If you are LAN network mode, virtual machine using bridge connection mode, as long as the virtual machine is set to the IP address of the same network segment, subnet, gateway, DNS and the same computer can achieve the Internet, but also access to local area network.
If you are dial-up access, the virtual machine using this method of connection, it is necessary to establish a broadband connection in the virtual machine system, dial-up internet access, but and host can not simultaneously internet.
Second, the virtual machine bridge settings are as follows:
1. vmware-Edit-Virtual network editor
Select the host network adapter, this is the choice is the local connection network card, as follows:
2, set up the network connection mode: Bridge
3. Red Hat IP Settings
# vi/etc/sysconfig/network-scripts/ifcfg-eth0device= "eth0" hwaddr= "00:0c:29:d5:5d:ce" nm_controlled= "yes" ONBOOT= " Yes "Bootproto=dhcp
Set IP for DHCP auto-GET, save the configuration file, with the command "Sevice network restart" Restart the network card, and then use "ifconfig" want to see the IP address has been obtained, as follows: