When setting up network in Linux, you may need to configure the DHCP client to send the virtual machine's ID in DHCP requests. For information on how to configure your DHCP client, refer to the DHCP client documentation.
For example, in Red Hat Linux guest OSs, you need to edit the DHCP client configuration file.
dhclient.conf
file and make sure that the following lines are present.
interface "eth0" {
send dhcp-client-identifier 1:<MAC address>;
}
When the
dhclient.conf
file contains these lines, DHCP client sends the virtual machine's ID to the DHCP server. The DHCP server sends an IP address in response.
Tip
To locate the
dhclient.conf
file, in a terminal, enter:
strings /sbin/dhclient | grep etc | grep dhclient.conf
or:
rpm -ql dhclient