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