虚拟机下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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值