VMware virtual machine uses Redhat, Connect:network is unreachable resolution

Source: Internet
Author: User

Welcome to my blog, this is my first time to seriously blog, I hope the blog Daniel A lot of advice, thank you!

Today, on another friend's computer, copy a redhat system, deploy it to a VMware virtual machine, connect to the Internet, and view the results via the ifconfig command:

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


Tried a lot of methods, took 2 hours of Kung Fu. Finally found the reason.

Here are my steps to solve the problem, to share, to help you solve the problem as soon as possible, with the same people who have encountered this problem to encourage!

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"           //Static set IP, configured belowBroadcast=192.168. 253. 255   //Broadcast address*IPAddr=192.168. 139. 1*    //IP address, manually specified to avoid each dynamic assignmentNETMASK=255.255. 255. 0      //Subnet maskNETWORK=192.168. 253. 0     //Network number*GATEWAY=172.18. 8. 254*      //GatewayHWADDR="00:0c:29:8d:07:8e"Nm_controlled="Yes"Onboot="Yes"                    //After the system starts, automatically start the network cardTYPE="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:

All done, congratulations!

Reference documents:
[1]: http://medicine.iteye.com/blog/1920560
[2]:http://www.2cto.com/os/201306/218110.html

VMware virtual machine uses Redhat, Connect:network is unreachable resolution

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.