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:
Become root (su -) and use a text editor to edit the following files in the guest operating system:
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.
In each of the files, add the following section:
check_link_down () { return 1; }
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.