VM under redhat9.0 can't surf the internet

Source: Internet
Author: User

recently I am learning Linux, after installing red Hat Linux9, but can not be on the net, to check the data also have to switch to the virtual machine up, special consumption of time. Fortunately, not crazy! First, test your Linux to see if it is such a problem, enter ping www. 163. com, the following prompt appears, then the problem is right. The main reason: because the virtual network card created by VMware Workstation is too new, and the relative "Red Hat linux9" itself comes with the NIC driver, on this "new network card" will not work properly. I chose a NAT connection , but some people can use bridging, I have not tried.

Second: Enter the setup  command, the interface that appears:


Select the network configuration here and click the Run Tool button to display the interface:

This is, click the SPACEBAR, select the use dynamic IP configuration, in square brackets or "*" to indicate that it is selected, then click the OK button, exit the interface, and then click Quit, exit the total interface, return to the Terminal interface: Input vi/ect/in the terminal interface sysconfig/network-scripts/ifcfg-eth0,:


This interface appears, indicating the current IP device configuration parameters.
Add the following information at the end of the file: then save the exit. (Wq)
At the same time in the terminal input vi/etc/sysconfig/networking/ifcfg-eth0, here the (ifcfg-eth0 file is newly created, so the content is empty), enter the following content in the file: and save the exit.

At this point, in the terminal input ifdown eth0, close eth0, and then in the input ifup eth0 command, this will appear the IP information that is deciding eth0 ... Complete. Below you enter to try the ping command, the miracle finally appeared.

Reprinted from: http://blog.163.com/[email protected]/blog/static/142477676201392595336457/
OK, you should be able to do it now, not to try it!
If you are having problems with ifup This command, you can use the method to activate the eth0

VM under redhat9.0 can't 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.