LINUXDHCP Relay, DHCP service IP auto get

Source: Internet
Author: User

DHCP Relay
Start with the simplest sw2 f1/1 f1/2 F1/3 divide vlan20 30 10 then f1/0 do trunk relay link

Start doing SW1 first do f1/0 trunk relay link then interface divide three VLAN

VLAN divided into VLAN 20 30 do DHCP relay this way the IP of the DHCP server is 192.168.10.102 so IP heiper-address pointing to DHCP ' server IP VLAN 20 30 is done (DHCP relay is because the PC The machine sends a request to the DHCP server to send a broadcast but the VLAN is partitioned to isolate the broadcast so you have to make a link specifically to allow DHCP broadcasts to be received by the DHCP server.

All the interfaces in the three-layer swap are over. Configure Start server DHCP configuration Enter etc/dhcp/under a dhcpd.conf with VI into the editor with SHIFT +: The colon set Nu shows the arrangement to change to the 7th 8th line as shown

Then go down to line 27th. Change IP address to DHCP server IP address network segment enter in the next line
Range + IP address pool
Option Routers + Gateway
as shown; (emphasize a point at the end plus a semicolon;)

After the first change, add the network segment, IP address pool, gateway to the next line where you need to change

A total of three samples after the configuration has been saved exit restart DHCP service

All of the configuration is complete after opening GNS3 inside VPC input IP DHCP to assign IP address

After having the IP, ping to see if you can connect to the whole network.

LINUXDHCP Relay, DHCP service IP auto get

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.