Professional Documents
Culture Documents
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
Step 4 open /etc/dhcp/dhcpd.conf file and paste the below lines and save it.
[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 ).
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
Bethefirstofyourfriendstolikethis
How to install VNC server on
Centos 7
Related Posts
Setup mail server on centos 7
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
How to install gnome3 on ubuntu 12.04 Best free softwares for windows 7 desktop
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
http://www.krizna.com/centos/install-configure-dhcp-server-centos-6/ 5/5