R3166-R3206-HP High-End Firewalls Network Management Command Reference-6PW101

Table Of Contents
135
Default level
2: System level
Parameters
None
Description
Use the dhcp select relay command to enable the relay agent on the current interface. Upon receiving
requests from an enabled interface, the relay agent will forward these requests to outside DHCP servers
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. 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 will be deleted. However, these ARP entries may 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 0/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet 0/1
[Sysname-GigabitEthernet0/1] dhcp select relay
display dhcp relay
Syntax
display dhcp relay { all | interface interface-type interface-number }
View
Any view
Default level
1: Monitor level
Parameters
all: Displays information of DHCP server groups that all interfaces correspond to.
interface interface-type interface-number: Displays information of the DHCP server group that a specified
interface corresponds to.
Description
Use the display dhcp relay command to display information about DHCP server groups correlated to an
interface or all interfaces.
Examples
# Display information about DHCP server groups correlated to all interfaces.
<Sysname> display dhcp relay all
Interface name Server-group
GigabitEthernet0/1 2