You are on page 1of 5

10/10/2016 Install and configure DHCP server on centos 6

Ubuntu Linuxmint Jquery Fedora Centos

Sign up for our newsletter for updates


Install and configure DHCP server on
centos 6 Youremailaddress Subscribe

Setup DHCP server on Centos 6 :


Dynamic Host Configuration Protocol krizna.com
(DHCP) is used to assign IP addresses and LikePage 1.5Klikes

other stuff like gateway and DNS details


automatically to the clients. we need a
Recent Posts
DHCP server configured for offering
ipaddress to the clients when it is required
Setup mail server on centos 7

Setup FTP server on centos 7 (


Installing DHCP server on Centos 6:
VSFTP )
After installing Centos 6 (Centos 6 installation step by step screenshots ) and
configuring network (How to setup network in centos 6) Setup File server on ubuntu
14.04 ( Samba )
Update yum repositories and packages by typing the below command
Setup DHCP server on ubuntu
[root@localhost~]#yumupdate 14.04

How to install VNC server on


ubuntu 14.04

Step 1 Install dhcp server and client using the below command

[root@localhost~]#yuminstalldhcp

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/networkscripts/ifcfgeth0 file and make the
changes as per your requirement .

DEVICE="eth0"
HWADDR="00:0C:29:F1:01:4B"

http://www.krizna.com/centos/install-configure-dhcp-server-centos-6/ 1/5
10/10/2016 Install and configure DHCP server on centos 6

NM_CONTROLLED="yes"
ONBOOT="yes"
BOOTPROTO="none"
IPADDR=192.168.1.11
NETMASK=255.255.255.0
GATEWAY=192.168.1.1

Step 3 Now open /etc/sysconfig/dhcpd file and add the preferred interface name
to DHCPDARGS variable as below

# Command line options here


DHCPDARGS=eth0

Step 4 open /etc/dhcp/dhcpd.conf file and paste the below lines and save it.

#specify domain name


option domain-name "krizna.com";
#specify DNS server ip and additional DNS server ip
option domain-name-servers 192.168.1.10, 208.67.222.222;
#specify default lease time
default-lease-time 600;
#specify Max lease time
max-lease-time 7200;
#specify log method
log-facility local7; Latest On Ubuntu
#Configuring subnet and iprange
Setup File server on ubuntu
subnet 192.168.1.0 netmask 255.255.255.0 {
14.04 ( Samba )
range 192.168.1.50 192.168.1.254;
option broadcast-address 192.168.1.255;
Setup DHCP server on ubuntu
#Default gateway ip 14.04
option routers 192.168.1.1;
} How to install VNC server on
#Fixed ip address based on MAC id ubuntu 14.04
host Printer01 {
hardware ethernet 02:34:37:24:c0:a5; How to setup SVN server on
ubuntu 14.04
fixed-address 192.168.1.55;
}
How to configure DNS server
Step 5 Now start the service in ubuntu 14.04

[root@localhost~]#servicedhcpdstart
Latest On Centos
and type this below command to start dhcp service automatically while booting.
Setup mail server on centos 7
[root@localhost~]#chkconfiglevels235dhcpdon

Thats it .Clients can get IP from DHCP server and Please ensure you dont have any Setup FTP server on centos 7 (
VSFTP )
other dhcp servers in the same network ( Routers might have DHCP enabled ).

How to install phpmyadmin on


Tags:Basic guide, Centos, dhcp, download, how to, installation, step by step, Windows 7, Windows xp centos 7

http://www.krizna.com/centos/install-configure-dhcp-server-centos-6/ 2/5
10/10/2016 Install and configure DHCP server on centos 6

krizna.com
1,563likes

How to install LAMP server on


LikePage Share centos 7

Bethefirstofyourfriendstolikethis
How to install VNC server on
Centos 7

Related Posts
Setup mail server on centos 7

Setup FTP server on centos 7 ( VSFTP )

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

10Comments krizna
1 Login

SortbyBest
Recommend 1 Share

Jointhediscussion

KamendraChauhan3yearsago
Ihaveinstalledandconfigureddhcp,exactlyastoldinthispostbutwhenIamstarting
dhcpdserviceit'sgettingfailed.....canupleasehelpme...andIalsohavedisabledthe
selinux....butproblemisstillpersisting......
14 Reply Share

YaseenKhan>KamendraChauhanayearago
turnoffyourfirewallandrebootyoursystem
Reply Share

shell3yearsago
Ihaveaprobleminconfiguringmydhcpserver...whenitriedtoservicedhcpdrestartit
willalwaysfailed.
4 Reply Share

chris4yearsago
thanksforthisarticle,itworks,nowiknowwheretostartasigodeeperstudiesondhcp
server.
4 Reply Share

ChristopherWilliamHawkerayearago
IneverneededtodisableselinuxonafreshinstallofCentos6.6,workedstraightaway
afterinstalling.
Reply Share

shell3yearsago
thankyouverymuchfortheinformationhere..itreallyhelpsalot..
Reply Share
http://www.krizna.com/centos/install-configure-dhcp-server-centos-6/ 3/5
10/10/2016 Install and configure DHCP server on centos 6
Reply Share

DanielRaiche3yearsago
I'mhavinganoddproblem,itkeepstellingmesemicolonexpectedwhenIstartthe
dhcpdservice,butI'msittingherelookingatthesemicolonintheconfigfile.I'vere
createdafewtimesandthesamethinghappens,won'tallowmetostarttheservice.
Reply Share

rosesa4yearsago
+1forselinuxtroubleshootingcomment
Reply Share

Joseluis4yearsago
esteerror
setgroups:Operationnotpermitted
Reply Share

krizna>Joseluis4yearsago
Hiluis,
Itjustbecauseofselinux.pleasedisableselinuxandrebootyourmachineand
tryagain.

#vim /etc/selinux/config
findthisline
SELINUX=enforcing
andreplacewith
SELINUX=disabled

andrebootyourmachine.
Reply Share

ALSOONKRIZNA

Howtoinstallphpmyadminonubuntu HowtoinstallVNCserveronCentos7
14.04 6comments2yearsago
3comments2yearsago
AvatarmHuyMnhHowtoopenfileinstep
AvatarJohnKrizna,youwriteexcellent 3?
tutorials.Ifollowedyourinstructionsfor
installingLAMPandthatworkedfirst

Setupmailserveroncentos7 SetupFTPserveroncentos7(VSFTP)
27comments2yearsago 9comments2yearsago

AvatarRobWoofVeryclearandsystematic AvatarBBvTThanks!Workedlikeacharm.But
instructions,andIthinkIhavefollowed there'sasmallerrorinStep2:Takea
themcorrectly.UnfortunatelyIhavenot backupcopybeforemakingchanges

Subscribe d AddDisqustoyoursiteAddDisqusAdd Privacy

How to install gnome3 on ubuntu 12.04 Best free softwares for windows 7 desktop

RECENT POSTS SOCIAL

Setup mail server on centos 7 Follow on Delicious


Setup FTP server on centos 7 ( VSFTP ) Follow on Diigo
Setup File server on ubuntu 14.04 ( Follow on Pinterest
Samba ) Follow on Scoop
Setup DHCP server on ubuntu 14.04 Follow on Stumbleupon
How to install VNC server on ubuntu
14.04
How to install phpmyadmin on centos 7
How to install LAMP server on centos 7

http://www.krizna.com/centos/install-configure-dhcp-server-centos-6/ 4/5
10/10/2016 Install and configure DHCP server on centos 6
How to install VNC server on Centos 7
How to Setup network on centos 7
How to install webmin on centos 6

Privacy Terms and Conditions Copyright 2016. All Rights Reserved.

http://www.krizna.com/centos/install-configure-dhcp-server-centos-6/ 5/5

You might also like