Solved

How can i set DHCP on CENT OS?

Posted on 2011-09-16
3
457 Views
Last Modified: 2012-05-12
I can i be sure that the cent os will ask for an accept a dhcp request?
0
Comment
Question by:NAMEWITHELD12
3 Comments
 
LVL 21

Accepted Solution

by:
Papertrip earned 500 total points
Comment Utility
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
 
LVL 1

Author Closing Comment

by:NAMEWITHELD12
Comment Utility
perfect !
0
 
LVL 76

Expert Comment

by:arnold
Comment Utility
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Create your own, high-performance VM backup appliance by installing NAKIVO Backup & Replication directly onto a Synology NAS!
Last article we focus in how to VMware: How to create and use VMs TAGs – Part 1 so before follow this article and perform the next tasks, you should read the first article how to create the TAG before using them in Veeam Backup Jobs.
Teach the user how to install log collectors and how to configure ESXi 5.5 for remote logging Open console session and mount vCenter Server installer: Install vSphere Core Dump Collector: Install vSphere Syslog Collector: Open vSphere Client: Config…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now