1-13DescriptionUse the dhcp select relay command to enable the relay agent on the current interface. Upon receivingrequests from an enabled interface, the relay agent will forward these requests to outside DHCPservers for IP address allocation.Use the undo dhcp select relay command to restore the default.After DHCP is enabled, the DHCP server is enabled on an interface by default. That is, upon receiving aclient’s request from the interface, the DHCP server allocates an IP address from the DHCP addresspool to the client.When the working mode of the interface is changed from DHCP server to DHCP relay agent, neither theIP address leases nor the authorized ARP entries will be deleted. However, these ARP entries mayconflict with new ARP entries generated on the DHCP relay agent; therefore, you are recommended todelete the existing IP address leases when changing the interface working mode to DHCP relay agent.Examples# Enable the DHCP relay agent on VLAN-interface 1. system-view[Sysname] interface vlan-interface 1[Sysname-Vlan-interface1] dhcp select relaydisplay dhcp relaySyntaxdisplay dhcp relay { all | interface interface-type interface-number }ViewAny viewDefault Level1: Monitor levelParametersall: Displays information of DHCP server groups that all interfaces correspond to.interface interface-type interface-number: Displays information of the DHCP server group that aspecified interface corresponds to.DescriptionUse the display dhcp relay command to display information about DHCP server groups correlated toan interface or all interfaces.Examples# Display information about DHCP server groups correlated to all interfaces. display dhcp relay allInterface name Server-groupVlan-interface 1 2