The content in dhcp relay configuration has been explained a lot. Next, let's explain two aspects: Configuring the dhcp relay dynamic user Address Table item regular refresh function and displaying and debugging dhcp relay. The specific content is as follows.
◆ Configure the dhcp relay dynamic user Address Table item regular refresh function
When the dhcp Client obtains an IP address from the dhcp server through dhcp relay, dhcp relay records the binding relationship between the IP address and the mac address. When the dhcp client releases the IP address, it will send a unicast dhcp-release packet to the dhcp server. The dhcp relay will not process the content of the dhcp packet, user address entries of dhcp relay cannot be refreshed in real time. To solve this problem, the system supports the regular refresh function of dhcp relay dynamic user address table items.
At a specified time, dhcp relay sends a dhcp-request packet to the dhcp server based on the IP address assigned by the client and its own bridge mac address. If the dhcp server responds to the dhcp-ack packet, this indicates that the IP address can be allocated. dhcp relay will aging the table items in the dynamic user address table. If the dhcp server responds to the dhcp-nak packet, it indicates that the lease of the IP address still exists, and dhcp relay will not aging the table items corresponding to the IP address.
◆ Dhcp relay display and debugging
After completing the preceding configuration, execute the display command in any view to display the running status of dhcp relay after the configuration. Check the display information to verify the configuration effect.
In the user view, you can execute the debugging command to debug dhcp relay.