Linux Systems build DHCP servers

Source: Internet
Author: User

Experimental requirements: Building a DHCP server on a Linux system

Experimental Steps :

The first step: Set DHCP Server's IP Address and Gateways

650) this.width=650; "style=" Float:none; "title=" 01.png "src=" http://s3.51cto.com/wyfs02/M01/59/A1/wKioL1TZ_ Djcfv6daab_ty3k2cq299.jpg "alt=" Wkiol1tz_djcfv6daab_ty3k2cq299.jpg "/>

650) this.width=650; "style=" Float:none; "title=" 0.png "src=" http://s3.51cto.com/wyfs02/M01/59/A4/ Wkiom1tz-0sjprnlaad9c3pbw0q273.jpg "alt=" Wkiom1tz-0sjprnlaad9c3pbw0q273.jpg "/>

Step Two: See if there is an installation DHCP Service, if no installation is going to mnt/ under the Packages file found in DHCP Install the package, locate it, and then install it.

before installing, we need to mount the system installation CD to mnt directory, and then check to see if there is no mount on the

650) this.width=650; "title=" 1.png "src=" Http://s3.51cto.com/wyfs02/M02/59/A1/wKioL1TZ_F6T2I2AAAH9c7z-DoY162.jpg " alt= "Wkiol1tz_f6t2i2aaah9c7z-doy162.jpg"/>

Step Three: View and installation DHCP

650) this.width=650; "style=" Float:none; "title=" 2.png "src=" http://s3.51cto.com/wyfs02/M01/59/A4/wKiom1TZ_ Mprish8aap3s3gqfl8654.jpg "alt=" Wkiom1tz_mprish8aap3s3gqfl8654.jpg "/>

650) this.width=650; "style=" Float:none; "title=" 3.png "src=" http://s3.51cto.com/wyfs02/M02/59/A1/wKioL1TZ_ Bftf7asaahcaxf4idw924.jpg "alt=" Wkiol1tz_bftf7asaahcaxf4idw924.jpg "/>

Fourth Step: after the installation, view the configuration file

650) this.width=650; "title=" 4.png "src=" Http://s3.51cto.com/wyfs02/M02/59/A4/wKiom1TZ_NyxEgt8AAHpy-0Crz8582.jpg " alt= "Wkiom1tz_nyxegt8aahpy-0crz8582.jpg"/>

Fifth Step: The configuration file is displayed, and the /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample copy to an empty dhcpd.conf config file inside

650) this.width=650; "title=" 5.png "src=" Http://s3.51cto.com/wyfs02/M00/59/A1/wKioL1TZ_efT6d_wAAEK1Jkpfbk026.jpg " alt= "Wkiol1tz_eft6d_waaek1jkpfbk026.jpg"/>

650) this.width=650; "title=" 6.png "src=" Http://s3.51cto.com/wyfs02/M00/59/A4/wKiom1TZ_QHy5C1yAADzk9D3BWQ302.jpg " alt= "Wkiom1tz_qhy5c1yaadzk9d3bwq302.jpg"/>

Sixth step: Open VI Editor, configuring DHCP Server

650) this.width=650; "title=" 7.png "src=" Http://s3.51cto.com/wyfs02/M01/59/A1/wKioL1TZ_hTg_i9lAABIS8MtH04623.jpg " alt= "Wkiol1tz_htg_i9laabis8mth04623.jpg"/>

Set the domain name benet.com , specify a DNS server address (or host name) this is configured for the client

The default lease is Ten minutes Default-lease-time

the maximum lease is 2 hours max-lease-time 7200

configuring scopes, declaring network segment addresses Subnet 192.168.10.0 netmask 255.255.255.0

Configuring an assigned address range range 192.168.10.110 192.168.10.130;

Configuring the default gateway option routers 192.168.10.30;

650) this.width=650; "title=" 8.png "src=" Http://s3.51cto.com/wyfs02/M01/59/A5/wKiom1TZ_THSKUVJAATXz0r9uRE036.jpg " alt= "Wkiom1tz_thskuvjaatxz0r9ure036.jpg"/>

Seventh Step: Save exit, open DHCP Service

650) this.width=650; "title=" 9.png "src=" Http://s3.51cto.com/wyfs02/M02/59/A1/wKioL1TZ_jigBVTeAACD3tsYuCs133.jpg " alt= "Wkiol1tz_jigbvteaacd3tsyucs133.jpg"/>

Then configure auto-fetch on the client

650) this.width=650; "title=" 10.png "src=" http://s3.51cto.com/wyfs02/M02/59/A5/wKiom1TZ_WXQvyP8AAMOJE0Q6cQ176.jpg "alt=" Wkiom1tz_wxqvyp8aamoje0q6cq176.jpg "/>

Enter in Run CMD Command

650) this.width=650; "title=" 11.png "src=" http://s3.51cto.com/wyfs02/M00/59/A1/wKioL1TZ_mXBtjTEAACupnfe2ek335.jpg "alt=" Wkiol1tz_mxbtjteaacupnfe2ek335.jpg "/>

in the command character input Ipconfig/release Command (Release IP )

650) this.width=650; "title=" 12.png "src=" http://s3.51cto.com/wyfs02/M00/59/A5/wKiom1TZ_YPD_wzyAAFNSjgvIDA421.jpg "alt=" Wkiom1tz_ypd_wzyaafnsjgvida421.jpg "/>

in the command character input ipconfig/renew Command (Regain Ip )

have been obtained DHCP server-assigned address

650) this.width=650; "title=" 13.png "src=" http://s3.51cto.com/wyfs02/M01/59/A1/wKioL1TZ_ofw1k3uAAO_Ubo4qGU318.jpg "alt=" Wkiol1tz_ofw1k3uaao_ubo4qgu318.jpg "/>

Additional: If I use the scope inside to set DNS server address see which one finally takes effect

650) this.width=650; "title=" 14.png "src=" http://s3.51cto.com/wyfs02/M01/59/A5/wKiom1TZ_aCTzvOYAAQyE_ei1lE643.jpg "alt=" Wkiom1tz_actzvoyaaqye_ei1le643.jpg "/>

change the scope to restart service dhcpd Restart

650) this.width=650; "title=" 15.png "src=" http://s3.51cto.com/wyfs02/M02/59/A1/wKioL1TZ_qOSNT11AADXcMfqSZE471.jpg "alt=" Wkiol1tz_qosnt11aadxcmfqsze471.jpg "/>

viewing on the client Ipconfig/all The final effect is scope

650) this.width=650; "title=" 16.png "src=" http://s3.51cto.com/wyfs02/M00/59/A5/wKiom1TaBBiCyD_vAAI-1BzZVmA418.jpg "alt=" Wkiom1tabbicyd_vaai-1bzzvma418.jpg "/>

You can also set a fixed IP in the Host Inside Configuration

Set Physical address hardware Ethernet 00:0c:29:c8:98:e2; (the client's mac address)

Set fixed address fixed-address 192.168.10.80;

650) this.width=650; "title=" 17.png "src=" http://s3.51cto.com/wyfs02/M01/59/A1/wKioL1TaBSOhSu0pAAQVvfvk_eA523.jpg "alt=" Wkiol1tabsohsu0paaqvvfvk_ea523.jpg "/>

Change to finish Host , to restart Service DHCPD Restart

650) this.width=650; "title=" 15.png "src=" http://s3.51cto.com/wyfs02/M02/59/A5/wKiom1TaBRSCVZuEAADXcMfqSZE671.jpg "alt=" Wkiom1tabrscvzueaadxcmfqsze671.jpg "/>

Client view

650) this.width=650; "title=" 18.png "src=" http://s3.51cto.com/wyfs02/M01/59/A5/wKiom1TaBEDR8806AAGwbmIMd2s997.jpg "alt=" Wkiom1tabedr8806aagwbmimd2s997.jpg "/>

Test finished 13> Cheng

This article from the "Basic Routing Exchange" blog, declined reprint!

Linux Systems build DHCP servers

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.