Connect to the network using a bridge connection in VMware

Source: Internet
Author: User

After VMware virtual machine, connect not to the Internet, through the ifconfig command, view the results:

Then, I want to try to ping the local physical machine address in the virtual machine, the result.


Summing up, there are 4 main steps:

1. Use chkconfig iptables off to shut down the Linux system firewall and make sure Windows Firewall shuts down as well.

2. Change the default NAT link mode in the network option to "Bridge link".

3.root User Login, modify the network configuration file, the command is as follows

[Email protected] ~]# Vi/etc/sysconfig/network-scripts/ifcfg-eth0

Then, you can see the "Ethernet Adapter VMware Network Adapter VMnet8:" IP Address "192.168.139.1" in window via cmd > ipconfig

Modify the configuration file according to the IP address, and the red part is the modified content.

DEVICE="Eth0" Bootproto="Static"Statically set IP, configure broadcast below=192.168.253.255Broadcast Address*ipaddr=192.168.139.1*IP address, manually specified, avoids each dynamic allocation of NETMASK=255.255.255.0Subnet Mask Network=192.168.253 .0 //network number *gateway =172.18.8 .254* //Gateway HWADDR = "00:0c:29:8d:07:8e" Nm_controlled=  "yes" Onboot= "yes" //system starts, automatically starts the NIC type=  "Ethernet" Uuid= "73869271- Edc7-45a1-bbc7-1691af066ae2 "            

4, after the completion of the modification, we must remember, there is a step, restart the service!

[Email protected] ~]# service network restart

After a successful reboot, the test effect

Test results, using Ifconfig view, as shown in the successful display of the Internet address:

Ok

Connect to the network using a bridge connection in VMware

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.