Solution to redhat_linux_9.0 access failure under Vmware

Source: Internet
Author: User

Solution to RedHat Linux 9.0 in VMware where bridging cannot access the Internet

Solution (step by step in the following numerical order)

1. in RH, click the Red Hat icon in the lower left corner of the desktop, select System Tools and run terminal)



2. in the terminal window that is opened, enter: Ping www.163.com and press enter to test whether the network is really disconnected (of course not. What else should I write this article ....)


3. Enter setup and press enter in the terminal. This is the RedHat hardware environment configuration interface. Select "network configuration" and press Enter.


A confirmation dialog box appears, indicating whether to configure the network? Yes, of course.


Here is the IP address of the network card. We do not need to set any IP address, just press the "Space key" and select "use dynamic IP ........ ", meaning: automatically obtain the IP address using the DHCP Function


After the selection, there will be a "*" in front, press the: Tab key, switch to OK, and press Enter.

Finally, return to the above main interface, or press tab and select Quit to exit the configuration interface.

4. Next, continue in the terminal and enter VI/etc/sysconfig/network-scripts/ifcfg-eth0 (note that the last digit is 0)


Press enter to open the ifcfg-eth0 file in the VI text editor. Use the upper, lower, and lower arrows on the keyboard to switch to the end of the article (which should be three rows), and press a to enter the editing mode.

Press enter to restart a line and start entering the following four lines as shown in the figure:

Check_link_down ()
{
Return 1;
}

After entering the file, Press ESC and enter the file to save and exit. As shown in the figure, you should be the same as I entered:


4. In the same way, in the terminal, directly enter: VI/etc/sysconfig/network-scripts/ifcfg-eth0 (note that the last digit is 0)


Press enter to open the ifcfg-eth0 file in the VI text editor. Because this file is empty (nothing), we press I directly (note it is not !), Enter the preceding four rows. View chart


After the input is complete, Press ESC and then enter the key to save and exit.

5. confirm that the above two files have added the same four lines of content, and then enter ifdown eth0 (note the number 0) in the terminal. Press enter.
6. If no information is displayed after you press enter, enter IFUP eth0 and press Enter. Let's look at the figure. It should be the same as me and there will be no problems.



At this point, the problem of no Internet access is solved. For the sake of insurance, let's experiment.

7. Continue to enter Ping www.163.com in the terminal. The figure below shows that the Ping is successful. Therefore, it indicates that the Internet can access the Internet.
In addition, if the/etc/sysconfig/networking/profiles/default/ifcfg-eth0 file exists, add this item in it, and then re-

Start the system. If not, manually configure the DNS, such as the primary DNS: 192.168.1.1 (that is, your gateway ).
8. Similarly, you can enter Ping 192.168.1.100 to verify that the Intranet can be used normally.




OK? No problem, right? Hey, this is the end of the tutorial.

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.