RHEL 6 DHCP – Configuring DHCP on RHEL 6

dhclientdhcp-serverredhatresolv.conf

I have a fresh install of RHEL6 and I am unable to find any config file to do advanced configuration for dhclient.
I am trying to find something like dhclient.conf on Ubuntu so I can modify options like supersede domains, fqdn,
Maybe they should be on "/etc/sysconfig/networking/devices/ifcfg-eth0" in that case what are the settings that matches those dhclient.conf configurations?

Best Answer

The configuration file is one of /etc/dhcp/dhclient-${DEVICE}.conf, /etc/dhclient-${DEVICE}.conf, or /etc/dhcp/dhclient.conf in that order. The first one that exists is used.

From /etc/sysconfig/network-scripts/ifup-eth (Fedora 14; RHEL6 may be similar):

# allow users to use generic '/etc/dhcp/dhclient.conf' (as documented in manpage!)
# if per-device file doesn't exist or is empty
if [ -s /etc/dhcp/dhclient-${DEVICE}.conf ]; then
   DHCLIENTCONF="-cf /etc/dhcp/dhclient-${DEVICE}.conf";
elif [ -s /etc/dhclient-${DEVICE}.conf ]; then
   DHCLIENTCONF="-cf /etc/dhclient-${DEVICE}.conf";
else
   DHCLIENTCONF='';
fi;

From the dhclient man page:

   -cf <config-file>
          Path to the client configuration file.  If unspecified, the default /etc/dhcp/dhclient.conf is used.