DHCP4.1.1 Server Construction (Note: This article is original, reproduced please indicate the source)
DHCP has now reached the 4th edition, as a beginner, search the web search books to find the tutorial is still 3 of the tutorial, the version of DHCP, configuration differences are very large, to 3 to match 4, a sense of the North feel ... Today, finally, the record, spare, here is only the most original configuration, for reference only:
operating environment: VMware10.0
Server: CentOS 6.5
(SP2)
Nic Unification changed to custom (VMnet2)
Check DHCP installation package:rpm-q DHCP
650) this.width=650; "alt=" Picture "src=" http://a1.qpic.cn/psb?/v10hmfu30jp4t7/szhlcvpw* b5zlngjdgrrzvzsmv3qgujbihqsnerwm9a!/b/dgabaaaaaaaa&ek=1&kp=1&pt=0&bo=mgelaaaaaaadadm!&su= 07227569&sce=0-12-12&rf=2-9 "style=" margin:0px;padding:0px;border-width:0px;border-style:none; vertical-align:top;width:306px;height:37px; "/>
yum list |grep DHCP
650) this.width=650; "alt=" Picture "src=" Http://r.photo.store.qq.com/psb?/v10hmfu30jp4t7/il9mcyh7*njn0bhjmgnol2tknl9n2srvgbkl.krtfw0!/o/dgabaaaaaaaa &ek=1&kp=1&pt=0&bo=xak9amqcvqadacu!&su=138825297&sce=0-12-12&rf=2-9 "style=" margin : 0px;padding:0px;border-width:0px;border-style:none;vertical-align:top;width:708px;height:189px; "/>
Span style= "margin:0px;padding:0px;" >
There is a direct selection of Yum install dhcp.x86_64
There is also a way to install
Mount
650) this.width=650; "alt=" Picture "src=" Http://r.photo.store.qq.com/psb?/v10hmfu30jp4t7/nls*ql3mogizqyglo5fx6le.xgitgfqqfqcd8l6.ytg!/o/dagaaaaaaaaa &ek=1&kp=1&pt=0&bo=iaiaaygcggedacu!&su=146071297&sce=0-12-12&rf=2-9 "style=" margin : 0px;padding:0px;border-width:0px;border-style:none;vertical-align:top;width:648px;height:282px; "/>
See the disc is already mounted
ll/media/centos_6.5_final/packages/dhcp-Press the TAB key to see
650) this.width=650; "alt=" Picture "src=" http://r.photo.store.qq.com/psb?/v10hmfu30jp4t7/5rfg* qiuplott6slg62waq1osssla8oj80eim4oxbdu!/o/dagaaaaaaaaa&ek=1&kp=1&pt=0&bo=mgi7adicowadacu!& Su=12883121&sce=0-12-12&rf=2-9 "style=" margin:0px;padding:0px;border-width:0px;border-style:none; vertical-align:top;width:562px;height:59px; "/>
The RPM-IVH is installed directly in the absolute path./media/centos_6.5_final/packages/dhcp-4.1.1-38.p1.el6.centos.x86_64.rpm
Installation is complete!
RPM-QL DHCP
View the appropriate directory
650) this.width=650; "alt=" Picture "src=" http://r.photo.store.qq.com/psb?/V10Hmfu30Jp4T7/ wqa8m6u05bi1s8y5guosxunj8p0lxokencspjeuqrhi!/o/dnaaaaaaaaaa&ek=1&kp=1&pt=0&bo=jwliay8cyaedacu! &su=1127629089&sce=0-12-12&rf=2-9 "style=" Margin:0px;padding:0px;border-width:0px;border-style:none ; vertical-align:top;width:655px;height:456px; "/> 650) this.width=650;" alt= "picture" src= "http:/ R.photo.store.qq.com/psb?/v10hmfu30jp4t7/oa4dcckrt*poxga5efbasog1ixdgkwp5taf.7e24kgy!/o/dagaaaaaaaaa&ek=1 &kp=1&pt=0&bo=8aehafabiqedacu!&su=1219116993&sce=0-12-12&rf=2-9 "style=" margin:0px; padding:0px;border-width:0px;border-style:none;vertical-align:top;width:496px;height:289px; "/>
There is not much to say in the catalogue here.
Then cp/usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample/etc/dhcp/dhcpd.conf
Vim/etc/dhcp/dhcpd.conf
You only need to change the red part,
option Domain-name "example.org";
Option Domain-name-servers ns1.example.org, ns2.example.org;
Default-lease-time 600;
Max-lease-time 7200;
Log-facility Local7;
Subnet 192.168.11.0 netmask 255.255.255.0 {
Range 192.168.11.200 192.168.11.220;
Option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
}
Class "Foo" {
Match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
}
Then the configuration of the NIC
Because the network adapter is changed to custom (VMnet2)
Vim/etc/sysconfig/network-scripts/ifcfg-eth0
650) this.width=650; "alt=" Picture "src=" http://r.photo.store.qq.com/psb?/V10Hmfu30Jp4T7/ 4dx5rdiku0y4tyymbvdaadzzdfht.gyzlcgdsqpsqrm!/o/dgabaaaaaaaa&ek=1&kp=1&pt=0&bo=uqhzalkb8wadacu! &su=1264948609&sce=0-12-12&rf=2-9 "style=" Margin:0px;padding:0px;border-width:0px;border-style:none ; vertical-align:top;width:441px;height:243px; "/>
Now direct Service network Restart:service DHCPD start
Then open the test machine directly on the OK!
This article is from the "technology, never Stop" blog, please be sure to keep this source http://loyal.blog.51cto.com/10225521/1659682
DHCP4.1.1 Server Build-up