How can i set DHCP on CENT OS?

I can i be sure that the cent os will ask for an accept a dhcp request?
LVL 1
NAMEWITHELD12Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
PapertripConnect With a Mentor Commented:
If you know the device name (can check in ifconfig), then do this:
[user@box~]$ cd /etc/sysconfig/network-scripts/
[user@boxnetwork-scripts]$ cat ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp

Open in new window


BOOTPROTO=dhcp is what you want.  If it's not in there edit it and restart networking.

Also "dhclient eth0" will start it up, but it won't make it permanent across reboots.
0
 
NAMEWITHELD12Author Commented:
perfect !
0
 
arnoldCommented:
system-config-network

If you want the server to run dhcp, you would need to install dhcp-server
http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-dhcp-configuring-server.html
0
All Courses

From novice to tech pro — start learning today.