MAIN‎ > ‎Telephony‎ > ‎TEL-NOTES‎ > ‎

Setting Up a CentOS / Red Hat Linux DHCP Client

posted Oct 8, 2013, 8:23 AM by Leszek Pilat   [ updated Aug 18, 2014, 6:51 PM ]
The gadget spec URL could not be found



First backup existing network configuration file using cp command:
# cp /etc/sysconfig/network-scripts/ifcfg-eth0 /root/ifcfg-eth0.bak

Configuring a DHCP Client

Setting up a Linux for dhcp can be done by editing file using a text editor such as vi:
# vi /etc/sysconfig/network-scripts/ifcfg-eth0

Following is sample static configuration:
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:FF:FF:FF:FF:FF
IPADDR=10.10.0.6
NETMASK=255.255.255.0
GATEWAY=10.10.0.1
ONBOOT=yes


Replace static configuration with DHCP:
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:FF:FF:FF:FF:FF
ONBOOT=yes

Save and close the file. Restart network service:
# /etc/init.d/network restart



The gadget spec URL could not be found