How to use bridge mode to enable Redhat in virtual machine vmware to surf the internet

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.