on centos 6 I need take the values from a dhcp server:
cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=00:50:56:27:0E:C8
TYPE=Ethernet
UUID=20924b21-e92a-4944-a054-06d1967155c1
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=dhcp
PEERDNS=yes
dhclient take only IP (not gw, not dns, not hostname).
There is not any dhclient.conf not even an example file.
create
and put these lines:
if you don't want the gateway/router:-