Solved

How can i set DHCP on CENT OS?

Posted on 2011-09-16
3
494 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
ID: 36553016
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
ID: 36553036
perfect !
0
 
LVL 78

Expert Comment

by:arnold
ID: 36553037
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

Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…

680 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