ES4710BD 10 Slots L2/L3/L4 Chassis Switch
Fig
As shown in the above figure, the DHCP client and the DHCP server are in different networks, the DHCP client performs the four DHCP steps as usual yet DHCP relay is added to the process.
1.The client broadcasts a DHCPDISCOVER packet, and DHCP relay inserts its own IP address to the relay agent field in the DHCPDISCOVER packet on receiving the packet, and forwards the packet to the specified DHCP server (for DHCP frame format, please refer to RFC2131).
2.On the receiving the DHCPDISCOVER packet forwarded by DHCP relay, the DHCP server sends the DHCPOFFER packet via DHCP relay to the DHCP client.
3.DHCP client chooses a DHCP server and broadcasts a DHCPREPLY packet, DHCP relay forwards the packet to the DHCP server after processing.
4.On receiving DHCPREPLY, the DHCP server responds with a DHCPACK packet via DHCP relay to the DHCP client.
DHCP relay can not only send DHCP broadcasting packets to the specified DHCP servers, but can also send other specified UDP broadcast packet to specified servers.
14.3.1DHCP Relay Configuration Task Sequence
1.Enable DHCP relay.
2.Configure DHCP relay to forward DHCP broadcast packet.
3.Configure DHCP relay to forward other UDP broadcast packet.
4.Disable DHCP relay from forwarding DHCP broadcast packet.
1.Enable DHCP relay.
DHCP server and DHCP relay is enabled as the DHCP service is enabled..
2.Configure DHCP relay to forward DHCP broadcast packet.
| Command | Explanation |
|
|
|
|
| Global Mode |
|
|
|
|
|
| ip | The UDP port used for DHCP broadcast packet | ||||
| no ip | forwarding. |
|
|
|
|
| Interface Mode |
|
|
|
|
|
| ip | Sets the destination | IP address | for DHCP relay | ||
| forwarding; | the | “no | ip | ||
| no ip | |||||
| <ipaddress>” command cancels the setting. | |||||
|
| |||||
3. Configure DHCP relay to forward other UDP broadcast packet. |
|
| ||||
| Command | Explanation |
|
|
|
|
| Global Mode |
|
|
|
|
|
| ip | Specifies the DHCP relay forwarding protocol by | ||||
| setting UDP port; the “no ip | |||||
| no ip | |||||
| udp <port>” command cancels the setting. | |||||
|
| |||||
| ip | Sets the destination | IP address | for DHCP relay | ||
| forwarding; | the | “no | ip | ||
| no ip | |||||
| <ipaddress>” command cancels the setting. | |||||
|
| |||||
|
| 308 |
|
|
|
|