DHCP service on Linux servers

Source: Internet
Author: User

Experiment



Lab Environment:

Set up two Linux servers on the virtual machine , one as The DHCP server and the other as the client to obtain the IP address automatically;

Experimental requirements:

One, the Linux server automatically assigns an IP address as a DHCP service;

Two, The Linux server obtains the IP address as the client ;

Experimental steps:

One, Linux Server builds DHCP service

Configure the Linux server static IP address;

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/59/75/wKioL1TTqqjR9ZLQAAB7xZxIqlg163.jpg "style=" float: none; "title=" 1.png "alt=" Wkiol1ttqqjr9zlqaab7xzxiqlg163.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/59/79/wKiom1TTqbuQK8C_AAChvR4Eiu4980.jpg "style=" float: none; "title=" 2.png "alt=" Wkiom1ttqbuqk8c_aachvr4eiu4980.jpg "/>




Edit CD-ROM automatically mount in /etc/fstab file

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/59/76/wKioL1TTq3OTFgfZAAC1WRUsOwo437.jpg "title=" 3.png " alt= "Wkiol1ttq3otfgfzaac1wrusowo437.jpg"/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/59/79/wKiom1TTqbuxv_bdAADwuq8dy-Y784.jpg "style=" float: none; "title=" 4.png "alt=" Wkiom1ttqbuxv_bdaadwuq8dy-y784.jpg "/>




Installing the DHCP service program in rpm mode

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/59/75/wKioL1TTqqiwdi-bAAEaXDs3VTo666.jpg "style=" float: none; "title=" 5.png "alt=" Wkiol1ttqqiwdi-baaeaxds3vto666.jpg "/>




Enter the dhcpd.conf configuration file

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/59/76/wKioL1TTrAGzcVg5AACaJPnGl3o519.jpg "title=" 6.png " alt= "Wkiol1ttragzcvg5aacajpngl3o519.jpg"/>




Edit domain name, resolved IP address, auto-assigned IP address range

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/59/79/wKiom1TTqbzDJfuaAAJt6Ii3BmI036.jpg "style=" float: none; "title=" 6.png "alt=" Wkiom1ttqbzdjfuaaajt6ii3bmi036.jpg "/>


Turn on DHCP service

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/59/76/wKioL1TTqqjxUYlVAACfO7NpjQ4374.jpg "style=" float: none; "title=" 7.png "alt=" Wkiol1ttqqjxuylvaacfo7npjq4374.jpg "/>




Two, theLinux Client configuration:

Set the bootproto key to DHCP

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/59/79/wKiom1TTqe2xvDgcAAB4ROltx2U245.jpg "title=" 8.png " alt= "Wkiom1ttqe2xvdgcaab4roltx2u245.jpg"/>



Turn on Web Services


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/59/79/wKiom1TTqb2zguWGAAFMKXMBn04608.jpg "style=" float: none; "title=" 9.png "alt=" Wkiom1ttqb2zguwgaafmkxmbn04608.jpg "/>


using dhclient – d eth0 command to obtain an IP address automatically

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/59/76/wKioL1TTqqqQSVfXAABICJR4ke8557.jpg "style=" float: none; "title=" 10.png "alt=" Wkiol1ttqqqqsvfxaabicjr4ke8557.jpg "/>




View Auto-acquired IP addresses


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/59/79/wKiom1TTqb3QhIoOAAFhm_WOAOo519.jpg "style=" float: none; "title=" 11.png "alt=" Wkiom1ttqb3qhiooaafhm_woaoo519.jpg "/>


This article from "Joint efforts, common progress ~ ~" blog, please be sure to keep this source http://9067358.blog.51cto.com/9057358/1612157

DHCP service on Linux servers

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.