linux eth0获取不到ip地址

本文介绍了解决Red Hat Linux 9在VMware GSX Server 3上安装时遇到的“Eth0 NoLinkPresent”问题的方法。通过编辑特定配置文件并添加检查链接状态的代码段来规避此问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

the RH9 on VMWare Eth0 "No Link Present"
I am not able to setup my eth0 on RH linux 9 installed on a vmware GSX server 3.

I recieve the error message : Determining IP information for eth0... Failed! no link present. Check Cable.

- I use Bridged networking
- Card detected : AMD PCnet 32 Lance
- Driver : AMD PCnet 32


Can someone help???
-------------------------------------------
Oh! Sorry, I was assuming your host was Linux.

I found this on VMware's site:

Getting a DHCP Address in a Red Hat Linux 9.0 Virtual Machine
When a Red Hat Linux 9.0 guest operating system tries to get a DHCP address, the attempt may fail with an error message that states the link is down. On ESX Server, this happens only if you are using the vlance driver for your network connection.

To work around this problem, become root (su -) and use a text editor to edit the following files in the guest operating system. If only one of these file* **ist, make the change for that file only.

/etc/sysconfig/network-scripts/ifcfg-eth[n]

/etc/sysconfig/networking/devices/ifcfg-eth[n]

In both cases, [n] is the number of the Ethernet adapter — for example, eth0.

Add the following section to each of these two files:

check_link_down () {

return 1;

}

Then run the command ifup eth[n] (where [n] is the number of the Ethernet adapter) or restart the guest operating system.
——————————————————————————————————————
说是RedHat Linux的一个BUG,修改 /etc/sysconfig/network-scripts/ifcfg-eth0 或 /etc/sysconfig/networking/devices/ifcfg-eth0 或 /etc/sysconfig/networking/profiles/default/ifcfg-eth0 任意一个即可(事实上,修改任何一个文件,其余两个文件都会自动更新内容)。
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值