R3303-HP HSR6800 Routers Layer 3 - IP Services Command Reference

Table Of Contents
73
dhcp select relay
Use dhcp select relay to enable the relay agent on the current interface. Upon receiving requests from an
enabled interface, the relay agent forwards these requests to outside DHCP servers for IP address
allocation.
Use undo dhcp select relay to restore the default.
Syntax
dhcp select relay
undo dhcp select relay
Views
Interface view
Default command level
2: System level
Usage guidelines
After DHCP is enabled, the DHCP server is enabled on an interface by default. Upon receiving a client's
request from the interface, the DHCP server allocates an IP address from the DHCP address pool to the
client.
When the working mode of the interface is changed from DHCP server to DHCP relay agent, neither the
IP address leases nor the authorized ARP entries are deleted. However, these ARP entries might conflict
with new ARP entries generated on the DHCP relay agent. To avoid this, delete the existing IP address
leases when changing the interface working mode to DHCP relay agent.
Examples
# Enable the DHCP relay agent on the interface GigabitEthernet 3/1/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/1/1
[Sysname-GigabitEthernet3/1/1] dhcp select relay
dhcp update arp (for DHCP relay agent)
Use dhcp update arp to configure the DHCP relay agent to support authorized ARP.
Use undo dhcp update arp to restore the default.
Syntax
dhcp update arp
undo dhcp update arp
Default
The DHCP relay agent does not support authorized ARP.
Views
Interface view
Default command level
2: System level