Basic configuration of DHCP server under Linux:
First enter the NIC configuration nic IP address, setting related network information
650) this.width=650; "src=" Https://s5.51cto.com/oss/201711/05/9a2b6e3f9f9c2779ad92b97950b61f01.png "title=" 1.PNG " alt= "9a2b6e3f9f9c2779ad92b97950b61f01.png"/>
The configured NIC information is as follows:
650) this.width=650; "src=" Https://s2.51cto.com/oss/201711/05/ce435f2790ddb26712922521b18b6a5f.png "style=" float: none; "title=" 2.PNG "alt=" Ce435f2790ddb26712922521b18b6a5f.png "/>
ann
install DHCP package
650) this.width=650; "src=" Https://s1.51cto.com/oss/201711/05/f725e87b1129ead7aa06fb95e4f287f2.png "style=" float: none; "title=" 3.PNG "alt=" F725e87b1129ead7aa06fb95e4f287f2.png "/>
To
See If the DHCP package is installed
650) this.width=650; "src=" Https://s1.51cto.com/oss/201711/05/481c5af5f49b3e348039a1fefd17acde.png "style=" float: none; "title=" 4.PNG "alt=" 481c5af5f49b3e348039a1fefd17acde.png "/>
enter /etc/dhcp/directory, edit dhcp.conf configuration file
650) this.width=650; "src=" Https://s1.51cto.com/oss/201711/05/24ad899810b392ddffa740d9ba59b470.png "style=" float: none; "title=" 5.PNG "alt=" 24ad899810b392ddffa740d9ba59b470.png "/>
650) this.width=650; "src=" Https://s1.51cto.com/oss/201711/05/7790052e3a2dea99441d7e591e7a05b2.png "style=" float: none; "title=" 6.PNG "alt=" 7790052e3a2dea99441d7e591e7a05b2.png "/>
Syntax
detection, detecting syntax errors
in the configuration file
650) this.width=650; "Src=" Https://s1.51cto.com/oss/201711/05/a2cea510776c79ca6bbb3476fcd75ebd.png-wh_500x0-wm_3 -wmp_4-s_844617406.png "title=" 7.PNG "alt=" A2cea510776c79ca6bbb3476fcd75ebd.png-wh_ "/>
Restart
The DHCP service and set the service to boot from
650) this.width=650; "src=" Https://s2.51cto.com/oss/201711/05/cd38a14d5dc76839a36e74589fbd6a68.png "style=" float: none; "title=" 8.PNG "alt=" Cd38a14d5dc76839a36e74589fbd6a68.png "/>
to see if the DHCP server has been started, run
650) this.width=650; "src=" Https://s2.51cto.com/oss/201711/05/3fbfe0a245d3bbc8baff7b342b2c6dbb.png "style=" float: none; "title=" 9.PNG "alt=" 3fbfe0a245d3bbc8baff7b342b2c6dbb.png "/>
Connect the DHCP
Client to the DHCP server in the same network segment to detect whether the DHCP client can obtain an IP address automatically
650) this.width=650; "src=" Https://s4.51cto.com/oss/201711/05/3ff3d031538eff419f3cf23100abbea3.png "style=" float: none; "title=" 10.PNG "alt=" 3ff3d031538eff419f3cf23100abbea3.png "/>
Enter /va
R
/
Li
b/d
h
cpd/
directory under
,
View Dhcpd.l
e
lease information for DHCP client IP address in Aese file
650) this.width=650; "src=" Https://s4.51cto.com/oss/201711/05/2255d70a9f8d499b444702fa5f573486.png "style=" float: none; "title=" 11.1.PNG "alt=" 2255d70a9f8d499b444702fa5f573486.png "/>
650) this.width=650; "src=" Https://s4.51cto.com/oss/201711/05/2e08a5820596c81f64ae000cfbe88529.png "style=" float: none; "title=" 11.PNG "alt=" 2e08a5820596c81f64ae000cfbe88529.png "/>
Tian Bin
This article is from the "New Network Society Blog" blog, please be sure to keep this source http://xwxhvip.blog.51cto.com/13020757/1979193
Basic configuration of DHCP server under Linux