When the vmwarevm uses RedHat, the connect: Networkisunreachable method is displayed.

Source: Internet
Author: User
Copy a RedHat System on another friend's computer today and deploy it on the vmwarevm. If you do not connect to the Internet, run the ifconfig command to view the result. Then, I want to try it, ping the address of the local physical machine in the VM. I tried a lot of methods and spent 2 hours. Finally, I found the cause. The following are my steps to solve the problem and share it with you to help you solve the problem as soon as possible! To sum up, there are four main steps: 1. Use chkc

Copy a RedHat System on another friend's computer today and deploy it on the vmwarevm. If you do not connect to the VM, run the ifconfig command to view the result ,:

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


I tried a lot of methods and spent 2 hours. Finally, I found the cause.

The following are my steps to solve the problem and share it with you to help you solve the problem as soon as possible!

To sum up, there are four main steps:

1. Use chkconfig iptables off to disable the Linux system firewall, and ensure that the windows Firewall is also disabled.

2. Change the default "NAT Link Method" in the network option to "bridge link ",.

3. Log On As the root user and modify the network configuration file. The command is as follows:

[Root @ zb ~] # Vi/etc/sysconfig/network-scripts/ifcfg-eth0

Then, in the window, run cmd> ipconfig to view the "Ethernet Adapter VMware Network Adapter VMnet8:" IP Address: "192.168.139.1"

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

DEVICE = "eth0" BOOTPROTO = "static" // set the static ip address. Configure BROADCAST = 192.168.253.255 // BROADCAST address * IPADDR = 192.168.139.1 * // ip address, avoid Dynamic Allocation of NETMASK = 255.255.255.0 // subnet 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 "// after the system starts, the nic type =" Ethernet "UUID =" 73799271-edc7-45a1-bbc7-1691af066ae2 "is automatically started"

4. After the modification is complete, remember to restart the service!

[Root @ zb ~] # Service network restart

After successful restart, test the effect

Use ifconfig to view the test result, as shown in. The internet address is displayed successfully:

Congratulations!

For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-02/113119.htm

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.