Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 518
  • Last Modified:

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?
0
NAMEWITHELD12
Asked:
NAMEWITHELD12
1 Solution
 
PapertripCommented:
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

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now