DHCP Relay Agent under Linux

Source: Internet
Author: User

First, the experimental environment

650) this.width=650; "Width=" 721 "height=" 543 "title=" Dhcpzj.png "style=" WIDTH:383PX;HEIGHT:279PX; "src="/HTTP/ S3.51cto.com/wyfs02/m00/4b/6b/wkiol1qr20dzvgclaagvtisryjo604.jpg "alt=" Wkiol1qr20dzvgclaagvtisryjo604.jpg "/>

Second, RHEL1 (DHCP server) configuration steps:

1. Install the DHCP package:

650) this.width=650; "title=" 1.png "src=" Http://s3.51cto.com/wyfs02/M00/4B/68/wKiom1Qr28CiRiW9AAAeh3RrTyM996.jpg " alt= "Wkiom1qr28ciriw9aaaeh3rrtym996.jpg"/>

2. Copy the master configuration file:

650) this.width=650; "title=" 2.png "src=" Http://s3.51cto.com/wyfs02/M01/4B/68/wKiom1Qr3BOg6126AABo7ohS4wc050.jpg " alt= "Wkiom1qr3bog6126aabo7ohs4wc050.jpg"/>

3. Modify the main configuration file: vim/etc/dhcp/dhcpd.conf, add the following:

650) this.width=650; "title=" 3.png "src=" Http://s3.51cto.com/wyfs02/M02/4B/6B/wKioL1Qr3R7jFgGSAAGEJSvRX1g381.jpg " alt= "Wkiol1qr3r7jfggsaagejsvrx1g381.jpg"/>

4. Start the DHCP service and set it to boot automatically:

650) this.width=650; "title=" 4.png "src=" Http://s3.51cto.com/wyfs02/M00/4B/6B/wKioL1Qr3bWx2cAdAABYRzhvhPY555.jpg " alt= "Wkiol1qr3bwx2cadaabyrzhvhpy555.jpg"/>

Third, RHEL2 (DHCP Relay server) configuration:

1. Install the DHCP package:

650) this.width=650; "title=" 5.png "src=" Http://s3.51cto.com/wyfs02/M00/4B/68/wKiom1Qr3muQCCGyAAAaOL61xZY717.jpg " alt= "Wkiom1qr3muqccgyaaaaol61xzy717.jpg"/>

2. Modify the DHCP Relay Agent configuration file: Vim/etc/sysconfig/dhcrelay:

650) this.width=650; "title=" 6.png "src=" Http://s3.51cto.com/wyfs02/M02/4B/6B/wKioL1Qr31yyH6r3AAA3QmJ6CNQ079.jpg " alt= "Wkiol1qr31yyh6r3aaa3qmj6cnq079.jpg"/>

3. Start the DHCP Relay Agent service and set it to boot:

650) this.width=650; "title=" 7.png "src=" Http://s3.51cto.com/wyfs02/M00/4B/68/wKiom1Qr4LaSXRXtAABdf2CDdg4020.jpg " alt= "Wkiom1qr4lasxrxtaabdf2cddg4020.jpg"/>

4. Turn on the kernel Routing and forwarding function: vim/etc/sysctl.conf, modify the following:

650) this.width=650; "title=" 8.png "src=" Http://s3.51cto.com/wyfs02/M00/4B/6B/wKioL1Qr4DfzCJ00AAATd2D_fPg410.jpg " alt= "Wkiol1qr4dfzcj00aaatd2d_fpg410.jpg"/>

5. Make the changes effective: sysctl-p

Four, test:

1. View the IP address information obtained by CLIENT1 and Client2.

This article is from the "Operations Learning" blog, please be sure to keep this source http://maofan.blog.51cto.com/9212198/1560290

DHCP Relay Agent under Linux

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.