Pages

Friday, December 5, 2014

centos network-script dhcp

centos network-script dhcp

I was required to set the mode of networking for Centos as DHCP.

The following links gave the solution

https://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-dhcp-configuring-client.html

http://www.cyberciti.biz/faq/setting-up-a-linux-for-dhcp/


Open the file at /etc/sysconfig/network

NETWORKING=yes

Save the file and exit

Then Open the file at /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0 
BOOTPROTO=dhcp
ONBOOT=yes 

Save the file and exit

Now restart the Networking Service

/etc/init.d/network restart

Now the System would fetch IP Address from a DHCP Server.
 

No comments:

Post a Comment