Solved

How can i set DHCP on CENT OS?

Posted on 2011-09-16
3
480 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 77

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ifconfig 4 46
should I enable deduplication in this case? 4 40
Live Storage Vmotion VMs with shared VMDK 10 59
linux SFTP 8 44
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.
In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
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 video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

777 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