install and configure dhcp server on centos 6
TRANSCRIPT
7/23/2019 Install and Configure DHCP Server on Centos 6
http://slidepdf.com/reader/full/install-and-configure-dhcp-server-on-centos-6 1/5
Install and configure DHCP server on
centos 6Setup DHCP server on Centos 6 :
Dynamic Host Configuration Protocol
(DHCP) is used to assign IP addresses and
other stuff like gateway and DNS details
automatically to the clients. we need a
DHCP server configured for offering
ipaddress to the clients when it is required
.
Installing DHCP server on Centos 6:
After installing Centos 6 (Centos 6 installation step by step screenshots ) and
configuring network (How to setup network in centos 6)
Update yum repositories and packages by typing the below command
[root@localhost ~]# yum update
Step 1 » Install dhcp server and client using the below command
[root@localhost ~]# yum install dhcp
Step 2 » After installing dhcp server packages along with dependencies .Assign a
static ip (eg: “192.168.1.11”) in the same DHCP range for the listening interface ( eg
: “eth0″ ). Open /etc/sysconfig/network-scripts/ifcfg-eth0 file and make the
changes as per your requirement .
Step 3 » Now open /etc/sysconfig/dhcpd file and add the preferred interface name
to DHCPDARGS variable as below
Sign up for our newsletter for updates
Youremailaddress Subscribe
Follow @kriznadotcom
Recent Posts
Setup File server on ubuntu
14.04 ( Samba )
Setup DHCP server on ubuntu
14.04
How to install VNC server on
ubuntu 14.04
How to install phpmyadmin on
centos 7
How to install LAMP server on
centos 7
DEVI CE=" eth0"
HWADDR=" 00: 0C: 29: F1: 01: 4B"
NM_CONTROLLED="yes"
ONBOOT="yes"
BOOTPROTO="none"
I PADDR=192. 168. 1. 11
NETMASK =255. 255. 255. 0
GATEWAY=192. 168. 1. 1
CentosFedoraJqueryLinuxmintUbuntu
l and configure DHCP server on centos 6 http://www.krizna.com/centos/install-configure-dhcp-server-
12/3/2014You created this PDF from an application that is not licensed to print to novaPDF printer (http://www.novapdf.com)
7/23/2019 Install and Configure DHCP Server on Centos 6
http://slidepdf.com/reader/full/install-and-configure-dhcp-server-on-centos-6 2/5
Tweet
Step 4 » open /etc/dhcp/dhcpd.conf file and paste the below lines and save it.
Step 5 » Now start the service
[root@localhost ~]# service dhcpd start
and type this below command to start dhcp service automatically while booting.
[root@localhost ~]# chkconfig --levels 235 dhcpd on
That’s it .Clients can get IP from DHCP server and Please ensure you don’t have any
other dhcp servers in the same network ( Routers might have DHCP enabled ).
Tags: Basic guide, Centos, dhcp, download, how to, installation, step by step, Windows 7, Windows xp
Latest On Ubuntu
Setup File server on ubuntu
14.04 ( Samba )
Setup DHCP server on ubuntu
14.04
How to install VNC server on
ubuntu 14.04
How to setup SVN server on
ubuntu 14.04
How to configure DNS server
in ubuntu 14.04
Latest On Centos
How to install phpmyadmin on
centos 7
How to install LAMP server on
centos 7
How to install VNC server on
Centos 7
DHCPDARGS=eth0
#speci f y domai n name
opt i on domai n- name "kr i zna. com" ;
#speci f y DNS ser ver i p and addi t i onal DNS ser ver i popt i on domai n- name- servers 192. 168. 1. 10, 208. 67. 222. 222;
#speci f y def aul t l ease t i me
def aul t - l ease- t i me 600;
#speci f y Max l ease t i me
max- l ease- t i me 7200;
#speci f y l og met hod
l og- f aci l i t y l ocal 7;
#Conf i gur i ng subnet and i prange
subnet 192. 168. 1. 0 net mask 255. 255. 255. 0 {
r ange 192. 168. 1. 50 192. 168. 1. 254;
opt i on broadcast - address 192. 168. 1. 255;
#Def aul t gat eway i p
opti on r out er s 192. 168. 1. 1;
}
#Fi xed i p address based on MAC i d
host Pr i nt er01 {
hardwar e et her net 02: 34: 37: 24: c0: a5;
f i xed- address 192. 168. 1. 55;
}
CentosFedoraJqueryLinuxmintUbuntu
l and configure DHCP server on centos 6 http://www.krizna.com/centos/install-configure-dhcp-server-
12/3/2014You created this PDF from an application that is not licensed to print to novaPDF printer (http://www.novapdf.com)
7/23/2019 Install and Configure DHCP Server on Centos 6
http://slidepdf.com/reader/full/install-and-configure-dhcp-server-on-centos-6 3/5
Related Posts» How to install phpmyadmin on centos 7
» How to install LAMP server on centos 7
» How to install VNC server on Centos 7
» How to Setup network on centos 7
» How to install webmin on centos 6
» How to install phpmyadmin on nginx on centos 6
» How to install LEMP on centos 6 ( Nginx, PHP, Mysql )
» Installing node.js on centos 6 with sample app
» How to setup nfs server on centos 6
» How to install vnc on centos 6
centos 7
How to install webmin on
centos 6
CentosFedoraJqueryLinuxmintUbuntu
l and configure DHCP server on centos 6 http://www.krizna.com/centos/install-configure-dhcp-server-
12/3/2014You created this PDF from an application that is not licensed to print to novaPDF printer (http://www.novapdf.com)
7/23/2019 Install and Configure DHCP Server on Centos 6
http://slidepdf.com/reader/full/install-and-configure-dhcp-server-on-centos-6 4/5
How to install adobe reader in ubuntu
14.04
•
Avatar — it works perfectly, thanks!
How to install audacious in ubuntu
12.04
•
Avatar — After 2 days of trying and
frustration I finally got it to work without
downloading anything. I upgraded my …
• •
Kamendra Chauhan •
I have installed and configured dhcp,exactly as told in this post but when I am starting
dhcpd service it's getting failed .....can u please help me ...and I also have disabled the
selinux....but problem is still persisting......
• •
chris •
thanks for this article, it works, now i know where to start as i go deeper studies on
dhcp server.
• •
shell •
I have a problem in configuring my dhcp server...when i tried to service dhcpd restart it
will always failed.
• •
shell • thank you very much for the information here..it really helps a lot..
• •
Daniel Raiche •
I'm having an odd problem, it keeps telling me semicolon expected when I start the
dhcpd service, but I'm sitting here looking at the semicolon in the config file. I've
re-created a few times and the same thing happens, won't allow me to start the service.
• •
rosesa •
+1 for selinux troubleshooting comment
• •
Jose luis •
este error
setgroups: Operation not permitted
• •
krizna •
Hi luis,
It just because of selinux . please disable selinux and reboot your machine and
try again.
#vi m/ etc/ sel i nux/conf i g
find this line
SELI NUX=enfor ci ng
and replace with
SELI NUX=di sabl ed
and reboot your machine .
CentosFedoraJqueryLinuxmintUbuntu
l and configure DHCP server on centos 6 http://www.krizna.com/centos/install-configure-dhcp-server-
12/3/2014You created this PDF from an application that is not licensed to print to novaPDF printer (http://www.novapdf.com)
7/23/2019 Install and Configure DHCP Server on Centos 6
http://slidepdf.com/reader/full/install-and-configure-dhcp-server-on-centos-6 5/5
RECENT POSTS
Setup File server on ubuntu 14.04 (
Samba )
Setup DHCP server on ubuntu 14.04
How to install VNC server on ubuntu
14.04
How to install phpmyadmin on centos 7
How to install LAMP server on centos 7
How to install VNC server on Centos 7
How to Setup network on centos 7
How to install webmin on centos 6
How to setup SVN server on ubuntu
14.04
How to configure DNS server in ubuntu
14.04
SOCIAL
Follow on Delicious
Follow on Diigo
Follow on Pinterest
Follow on Scoop
Follow on Stumbleupon
HOT TOPICS
How to install squid proxy on centos 6
74 comments received
Login with facebook using PHP ( Demo
and Download )48 comments received
How to install phpmyadmin on centos 6
34 comments received
How to install dns server in centos 6
32 comments received
Setup mail server on ubuntu 14.04 (
Postfix - dovecot )
27 comments received
Privacy Terms and Conditions Copyright © 2014. All Rights Reserved.
CentosFedoraJqueryLinuxmintUbuntu
l and configure DHCP server on centos 6 http://www.krizna.com/centos/install-configure-dhcp-server-
You created this PDF from an application that is not licensed to print to novaPDF printer (http://www novapdf com)