linux eth0获取不到ip地址

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 任意一个即可(事实上,修改任何一个文件,其余两个文件都会自动更新内容)。

猜你喜欢

转载自lumingming1987.iteye.com/blog/1044284