虚拟机下redhat 9.0无法上网问题的解决方案

安装VMware-tools。

打开终端,执行以下指令

/etc/init.d/network stop

rmmod pcnet

rmmod vmxnet

modprobe vmxnet

/etc/init.d/network start

完成。即可上网

 

 

Getting a DHCP address in a Red Hat Enterprise Linux, Red Hat Linux 9.0, or Red Hat Advanced Server virtual machine

Details

This article applies to these guest operating systems:
  • Red Hat Enterprise Linux
  • Red Hat Linux
  • Red Hat Advanced Server
  • SUSE Linux
  • Mandrake Linux
When running Mandrake Linux, SuSE Linux, Red Hat Enterprise Linux, Red Hat Linux 9.0, or Red Hat Advanced Server and one of  these guest operating system tries to get a DHCP address, the attempt might fail and an error message is displayed:
 
Determining IP information for eth0... failed; no link present. Check cable?

Solution

This problem has been seen on Mandrake Linux, SuSE Linux, Red Hat Enterprise Linux, and Red Hat Linux guest operating systems, but is most often seen in Red Hat Linux 9.x or Red Hat Advanced Server guests.

To work around this problem:
  1. Become root (su -) and use a text editor to edit the following files in the guest operating system:

    /etc/sysconfig/network-scripts/ifcfg-eth0
    /etc/sysconfig/networking/devices/ifcfg-eth0

    Also edit the following file, if it exists:

    /etc/sysconfig/networking/profiles/default/ifcfg-eth0

    The third file is updated any time you run redhat-config-network and make changes in the Network Configuration panel.

    In all cases, eth0 is the number of the Ethernet adapter.

  2. In each of the files, add the following section:  
     check_link_down () { return 1; }  
  3. Next, run the command ifup eth0 or restart the guest operating system.  

Note: If you later run redhat-config-network again, check the file /etc/sysconfig/networking/profiles/default/ifcfg-eth0 to make sure the section you added to it remains intact. In some circumstances, the closing curly brace (the } character) might be dropped when you use the Network Configuration panel.

你可能感兴趣的:(vmware,linux,redhat,SuSE)