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