There are three ways to connect to the Internet in VMware: Bridge mode, Nat mode, Host-only mode, detailed below how to use bridging mode to connect the Redhat in a virtual machine to the Internet.
Bridge (bridging) mode
In bridge mode, the virtual machine VMware Virtual system is like a separate host in the LAN. With this mode, the Redhat in the virtual machine must be set to be under the same network segment as the host.
In this mode, the default use of VMnet0
Set the IP of the Redhat in the virtual machine to an IP that is not used with the host network segment, and the rest is the same as the host. For example: The IP address of the host is 192.168.1.102, the Redhat IP in the virtual machine can be set to the same network segment of the ip:192.168.1.103 (provided that this IP is not used), Netmask,broadcast, GATEWAY, DNS is the same as the host for virtual machines <---> hosts, virtual machines <---> Internet communications.
The native IP address is as follows:
The Redhat settings in the virtual machine are as follows:
IP settings are as follows, when you set the IP to 192.168.1.103, you need to make sure that the IP is not being used, and ping the command to view
Virtual machine, enter the editor, the Virtual network editor, set as follows, such as no VMnet0, you can add yourself, set as a bridge, NIC Select the host Internet network card can be
Go to virtual machine-settings, select the network adapter's network connection: Bridging mode
After Setup, restart Network services, service network restart, or:/etc/init.d/network restart
Ping www.baidu.com:
Setup is complete, the virtual machine can successfully surf the internet
How to use bridge mode to enable Redhat in virtual machine vmware to surf the internet