HP VPN Firewall Appliances Network Management Command Reference
196
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 operating 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
Use display dhcp relay to display information about DHCP server groups correlated to an interface or all
interfaces.
Syntax
display dhcp relay { all | interface interface-type interface-number } [ | { begin | exclude | include }
regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
all: Displays information about DHCP server groups that all interfaces correspond to.
interface interface-type interface-number: Displays information about the DHCP server group that a
specific interface corresponds to.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Getting Started Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display information about DHCP server groups correlated to all interfaces.
<Sysname> display dhcp relay all
Interface name Server-group
GigabitEthernet0/1 2
Table 37 Command output
Field Descri
p
tion
Server-group DHCP server group number correlated to the interface.