CentOS 5.5 DHCP server configuration

Source: Internet
Author: User

One,Dhcp(Dynamic Host configuraion Protocol,Dynamic Host Allocation protocol) and1993years10standard protocol, which was formerlyBOOTP,Dhcpcan be said to beBOOTPthe enhanced version,Dhcpsimplifies the use ofIpConfiguration-ManagedTcp / ipStandard, dynamic assignment for clientsTcp / ipRelated information,Dhcpprovides a safe, reliable and simpleTcp / ipnetwork configuration, avoiding theTcp / ipaddress conflicts in the network, while also reducing managementIpthe work intensity of the address setting. DhcpService UseUdpof the48Port number. ForDhcpThe theoretical knowledge of the service is not too much to explain!

1, use a VMware Workstation virtual out of a CentOS 5.5 and bridge its network card to a physical network card to configure it as a DHCP server.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6E/78/wKiom1V9YoyxQSxIAAJhJMcXKYQ910.jpg "title=" QQ picture 20150614171517.jpg "alt=" Wkiom1v9yoyxqsxiaajhjmcxkyq910.jpg "/>2. Modify The/etc/sysconfig/network-scripts/ifcfg-eth0 file, configured as follows

Line 3 set static IP address mode

Line 5 set boot start

Line 6 Configure IP address

Line 7 Configuring the subnet mask

Line 8 Configure the Gateway

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6E/78/wKiom1V9ZSiDzCr2AADtJyEx4pE009.jpg "title=" Ipdz.png "alt=" Wkiom1v9zsidzcr2aadtjyex4pe009.jpg "/>


3, use Ifconfig to view IP address

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6E/74/wKioL1V9ZxuyTlbsAAKVuaO_864741.jpg "title=" Ckip.png "alt=" Wkiol1v9zxuytlbsaakvuao_864741.jpg "/>

4. Use the Mount command to mount the disc to /mnt/ , and use the CD command to enter the CentOS folder on the CD and install it using the RPM-IVH command DHCP Service, restart after installation failed because the configuration template was not copied to the master configuration file .

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6E/74/wKioL1V9Z32A-x-SAANer6HS1fk442.jpg "title=" QQ picture 20150614172719.png "alt=" Wkiol1v9z32a-x-saaner6hs1fk442.jpg "/>

5. Copy the configuration template for the master file and copy it from/usr/share/doc/dhcp-3.0.5/dhcpd.conf to /etc/dhcpd.conf using the CP command

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6E/78/wKiom1V9Zm6h6YRAAADgpvCVtWw822.jpg "title=" KB Pzwj.png "alt=" Wkiom1v9zm6h6yraaadgpvcvtww822.jpg "/>

6.Modify The/etc/dhcpd.conf Master profile to complete the configuration of the DHCP server,thebehavior Comment line beginning with "#"

Line 1 specifies that DNS dynamic update is supported for DNS interactive update mode

Line 4 Specifies the scope

Line 5 Specifies the default gateway for the client

Line 6 Specifies the subnet mask for the client

Line specifies the DNS server address, here is the DNS server with Google

Line specifies the NTP server address

Line Specifies the IP address segment assigned to the client

Line # Specifies the default IP address lease time, which is in seconds

Line number Specifies the maximum lease time, in seconds

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6E/78/wKiom1V9Z2bz0y-kAAJn8gmiC7g036.jpg "title=" Dh1.png "alt=" Wkiom1v9z2bz0y-kaajn8gmic7g036.jpg "/>

Line 24-28 is to assign an IP to a single host

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6E/74/wKioL1V9aTzSO3aeAAJNTdZuFYk481.jpg "title=" Dh2.png "alt=" Wkiol1v9atzso3aeaajntdzufyk481.jpg "/>

7. Restart the DHCP server after configuration is complete

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6E/78/wKiom1V9aBzSjVHiAACJq2645y0632.jpg "title=" cq.png "alt=" Wkiom1v9abzsjvhiaacjq2645y0632.jpg "/>

Reboot successfully, complete the configuration!

8. Configure the DHCP runlevel and set the start-up self-boot

8.1 uses the CHKCONIFG command to modify its self-boot at 3 5 two run levels of the system and to see if the configuration was successful

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6E/74/wKioL1V9akjwsY89AACoL0MQFa8003.jpg "title=" Yxjb.png "alt=" Wkiol1v9akjwsy89aacol0mqfa8003.jpg "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6E/78/wKiom1V9aXzB8RDmAAFXO-ZAVXY230.jpg "title=" Centos-2015-06-14-19-45-36.png "alt=" Wkiom1v9axzb8rdmaafxo-zavxy230.jpg "/>

9. Test the DHCP server, using win7 as the client

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6E/74/wKioL1V9a2DQLZYhAAIft3iPQgQ144.jpg "title=" QQ picture 20150614185420.png "alt=" Wkiol1v9a2dqlzyhaaift3ipqgq144.jpg "/>

The IP address assigned by the DHCP server is obtained by using the ipconfig/renew command , and the details are displayed with the Ipcofnig/all command, and the corresponding parameters of the DHCP server configuration are consistent, indicating that the DHCP server configuration was successful!

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6E/78/wKiom1V9afPQ6J09AAMvK2S275w842.jpg "title=" QQ picture 20150614185415.jpg "alt=" Wkiom1v9afpq6j09aamvk2s275w842.jpg "/>

This configuration DHCP Server does not have multi-scope configuration and relay Agent configuration


This article is from the "ZJC" blog, make sure to keep this source http://zjclinux.blog.51cto.com/9796061/1661827

CentOS 5.5 DHCP server configuration

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.