R3102-R3103-HP 6600/HSR6600 Routers Layer 3 - IP Services Command Reference

73
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
Examples
# Configure GigabitEthernet 3/1/1 to support authorized ARP.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/1/1
[Sysname-GigabitEthernet3/1/1] dhcp update arp