Direct adoption: Yum install dhcp*
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/8C/6C/wKioL1hsjLHSE9nkAAAKIR5fCxU628.png-wh_500x0-wm_3 -wmp_4-s_503618089.png "title=" 4.png "style=" Float:none; alt= "Wkiol1hsjlhse9nkaaakir5fcxu628.png-wh_50"/>
Provisioning Profile: vim/etc/dhcp/dhcpd.conf
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/8C/70/wKiom1hsjLGB-6_OAAARo_Jv154269.png-wh_500x0-wm_3 -wmp_4-s_3039121967.png "title=" 3.png "style=" Float:none; alt= "Wkiom1hsjlgb-6_oaaaro_jv154269.png-wh_50"/>
Configuration file: dhcpd.conf
# dhcpd.conf
#
# Sample configuration file for ISC dhcpd
#
# option definitions common to all supported networks ...
Option Domain-name "jerry.com";
Option Domain-name-servers 114.114.114.114;
Default-lease-time 43600;
Max-lease-time 87200;
# Use this to enble/disable dynamic DNS updates globally.
#ddns-update-style None;
# IF This DHCP server is the official DHCP server for the local
# Network, the authoritative directive should be uncommented.
#authoritative;
# Use this to send DHCP log messages to a different log file (you also
# has to hack syslog.conf to complete the redirection).
Log-facility Local7;
# No Service would be given on this subnet, but declaring it helps the
# DHCP Server to understand the network topology.
Subnet 192.168.0.0 netmask 255.255.0.0 {
Range 192.168.26.100 192.168.26.110;
Option routers 192.168.25.3;
}
Start DHCPD service:/ETC/INIT.D/DHCPD start #设置配置文件有误会报错, press the error prompt to correct and then start.
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/8C/6C/wKioL1hsjRyi5tAOAACfTdntjHs043.png-wh_500x0-wm_3 -wmp_4-s_3399920632.png "title=" 1.png "alt=" Wkiol1hsjryi5taoaacftdntjhs043.png-wh_50 "/>
Open a virtual machine, set to automatically obtain IP, the test results are as follows:
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/8C/6C/wKioL1hsjcXwOWIiAAPSaAdcHXk928.png-wh_500x0-wm_3 -wmp_4-s_226856055.png "title=" 2.png "alt=" Wkiol1hsjcxwowiiaapsaadchxk928.png-wh_50 "/>
This article comes from "on the road ... Find the Lost Memory "blog, be sure to keep this source http://jdonghong.blog.51cto.com/3473478/1888895
Two minutes to build a Linux DHCP server