2
I have a CentOS 7 machine that has 2 NICs, eth0 and eth1. I have disabled eth0 (as I won't be needing it for my setup) by editing its config and setting:
ONBOOT="no"
And after I configured eth1 (my lan interface) as following it still won't request DHCP:
DEVICE="eth1"
ONBOOT="yes"
NM_CONTROLLED="no"
BOOTPROTO="dhcp"
IPADDR="10.0.0.5" # This is the IP assigned to this machine on the private network.
NETMASK="255.255.0.0"
IPV6INIT="no"
MTU="1450"
Now every time I reboot the system I have to manually use the command dhclient eth1
to make it get DHCP address. What else can I do to solve this? I thought setting BOOTPROTO was the key!