Build DHCP service with Is-is in Linux to let clients get IP address automatically

Source: Internet
Author: User
Tags get ip

Experimental Purpose: First, configure the last published Is-is Part of the configuration process, then combine two Linux virtual machines, a DHCP Server, a client, and let the client get the IP automatically , use DHCP to reserve a specific IP address for him, and then test to be able to add another PC Machine interconnection.

650) this.width=650; "style=" Float:none; "title=" Picture 1.png "alt=" wkiol1v1kgsxfzsyaajlo8sl47m562.jpg "src="/http S3.51cto.com/wyfs02/m01/6e/2a/wkiol1v1kgsxfzsyaajlo8sl47m562.jpg "/>

Experimental Process: First configure the router's IP address and is-is protocol,RIP protocol, and set up route redistribution.

Then configure the linux-1 DHCP Server and configuration file.

Then configure the linux-2 network card parameter to obtain the IP address automatically.

Finally, use VPCS to configure the C1 IP address test and the interoperability of the linux-2 client. The following is a detailed procedure.

Is-is part of the router configuration. The configuration of the R1 is as follows and is configured with type level-1.

650) this.width=650; "style=" Float:none; "title=" Picture 2.png "alt=" wkiom1v1kghxrwm2aaekupboxqa999.jpg "src="/http S3.51cto.com/wyfs02/m01/6e/2e/wkiom1v1kghxrwm2aaekupboxqa999.jpg "/>

R2 The above is-is configuration, used as the level-1-2 type.

650) this.width=650; "style=" Float:none; "title=" Picture 3.png "alt=" wkiom1v1kglq5nyvaaehl-cc85s753.jpg "src="/http S3.51cto.com/wyfs02/m01/6e/2e/wkiom1v1kglq5nyvaaehl-cc85s753.jpg "/>

r3 above is-is config, as Span style= "font-family: ' Times New Roman ';" >level-2-only rip protocol, and then in is-is protocol configuration Span style= "font-family: ' Times New Roman ';" >rip route redistribution of the protocol, and in rip Configure redistribution in agreement is-is protocol and redistribute direct-attached routes.

650) this.width=650; "style=" Float:none; "title=" Picture 4.png "alt=" wkiol1v1kgstq6kxaarsuf1ajds936.jpg "src="/http S3.51cto.com/wyfs02/m02/6e/2a/wkiol1v1kgstq6kxaarsuf1ajds936.jpg "/>

R4 The above configuration, in addition to the configuration port, just configure the RIP protocol. In addition SW1 not need to configure what, as long as the attention is connected to the two-tier port on the line.

650) this.width=650; "style=" Float:none; "title=" Picture 5.png "alt=" wkiol1v1kgwrzn8qaafdtktxcl4715.jpg "src="/http S3.51cto.com/wyfs02/m02/6e/2a/wkiol1v1kgwrzn8qaafdtktxcl4715.jpg "/>

Enter now linux-1 as a DHCP Server, configure a fixed IP address and gateway.

650) this.width=650; "style=" Float:none; "title=" Picture 6.png "alt=" wkiom1v1kgkhmpr5aafjzmfx9w8477.jpg "src="/http S3.51cto.com/wyfs02/m02/6e/2e/wkiom1v1kgkhmpr5aafjzmfx9w8477.jpg "/>

then install DHCP Service, view the installation location, view the configuration file, you can see there is nothing in the configuration file at this time. Then copy the DHCP configuration file into this directory.

650) this.width=650; "style=" Float:none; "title=" Picture 7.png "alt=" wkiom1v1kgoz45ihaaq__yf8g9u801.jpg "src="/http S3.51cto.com/wyfs02/m02/6e/2e/wkiom1v1kgoz45ihaaq__yf8g9u801.jpg "/>

Start editing the configuration file below.

650) this.width=650; "style=" Float:none; "title=" Picture 8.png "alt=" wkiol1v1kgag7qo8aabhjd7xboy297.jpg "src="/http S3.51cto.com/wyfs02/m00/6e/2a/wkiol1v1kgag7qo8aabhjd7xboy297.jpg "/>

the first thing to edit is The domain name of the DHCP. the DHCP server IP address.

650) this.width=650; "style=" Float:none; "title=" Picture 9.png "alt=" wkiol1v1kgag9xcsaanbsjg57oe228.jpg "src="/http S3.51cto.com/wyfs02/m00/6e/2a/wkiol1v1kgag9xcsaanbsjg57oe228.jpg "/>

then set the following DHCP automatically assigns the domain's segment and range as well as the gateway.

650) this.width=650; "style=" Float:none; "title=" Picture 10.png "alt=" wkiom1v1kgxq_3diaao5hiqi0iu359.jpg "src="/http S3.51cto.com/wyfs02/m00/6e/2e/wkiom1v1kgxq_3diaao5hiqi0iu359.jpg "/>

Open DHCP Service.

650) this.width=650; "title=" Picture 10.5.png "alt=" wkiol1v1k-fzfodzaab7z4fxits535.jpg "src=" http://s3.51cto.com/wyfs02/ M02/6e/2a/wkiol1v1k-fzfodzaab7z4fxits535.jpg "/>

After you edit the NIC in linux-2 , the properties are configured for automatic DHCP acquisition.

650) this.width=650; "style=" Float:none; "title=" Picture 11.png "alt=" wkiom1v1kgbjejpeaajlbc3g55c446.jpg "src="/http S3.51cto.com/wyfs02/m00/6e/2e/wkiom1v1kgbjejpeaajlbc3g55c446.jpg "/>

Use this ifconfig View the IP Address of the eth0 , or after a reboot , you can see an address in the previous configuration address pool.

650) this.width=650; "style=" Float:none; "title=" Picture 12.png "alt=" wkiol1v1kgmykd0eaaqfc__aejo448.jpg "src="/http S3.51cto.com/wyfs02/m01/6e/2a/wkiol1v1kgmykd0eaaqfc__aejo448.jpg "/>

at this point you can View the DHCP log file that accesses this server in linux-1 .

650) this.width=650; "style=" Float:none; "title=" Picture 13.png "alt=" wkiom1v1kgftmkr_aaeb3v_46uo243.jpg "src="/http S3.51cto.com/wyfs02/m01/6e/2e/wkiom1v1kgftmkr_aaeb3v_46uo243.jpg "/>

Here you can see the linux-2 the IP address acquired and the mac Address of the other , use copy to address is copied down.

650) this.width=650; "style=" Float:none; "title=" Picture 14.png "alt=" wkiol1v1kgrdwjicaak1nnfq2gq148.jpg "src="/http S3.51cto.com/wyfs02/m01/6e/2a/wkiol1v1kgrdwjicaak1nnfq2gq148.jpg "/>

Re-entry of DHCP configuration file, modify the following reserved configuration items to Paste the MAC address here, then enter the IP address you want to set for him .

650) this.width=650; "style=" Float:none; "title=" Picture 15.png "alt=" wkiol1v1kgqjbhc2aanxpmgjsou046.jpg "src="/http S3.51cto.com/wyfs02/m02/6e/2a/wkiol1v1kgqjbhc2aanxpmgjsou046.jpg "/>

at this time again back linux-2 Restart the network card configuration, check the IP address configuration of the network card again , you can see the IP that just reserved for linux-2 the address is already in use.

650) this.width=650; "style=" Float:none; "title=" Picture 16.png "alt=" wkiom1v1kgiiis99aasz2iboq9e275.jpg "src="/http S3.51cto.com/wyfs02/m02/6e/2e/wkiom1v1kgiiis99aasz2iboq9e275.jpg "/>

Use this GNS3 vpcs Configure the IP address of another PC , then test with linux-2 Interoperability.

650) this.width=650; "style=" Float:none; "title=" Picture 17.png "alt=" wkiom1v1kgnboialaalnaxrqmdi283.jpg "src="/http S3.51cto.com/wyfs02/m01/6e/2e/wkiom1v1kgnboialaalnaxrqmdi283.jpg "/>

Experience Summary:GNS3 The above is-is address configuration and RIP configuration, and route redistribution needs to be configured correctly.

The DHCP server needs to replicate the network configuration, and when configuring DHCP , it is important to note that the IP address of the server NIC is configured to complete first. After the configuration is complete, the service needs to be reloaded or restarted.


This article is from the "My World" blog, please be sure to keep this source http://zhang2015.blog.51cto.com/9735109/1660022

Build DHCP service with Is-is in Linux to let clients get IP address automatically

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.