display dhcp relay client-information
Use display dhcp relay client-information to display relay entries on the relay agent.
Syntax
display dhcp relay client-information [ interface interface-type interface-number | ip ip-address [ vpn-instance vpn-instance-name ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
interface interface-type interface-number: Displays relay entries on the specified interface. If you do not specify an interface, this command displays relay entries on all interfaces.
ip ip-address: Displays the relay entry for the specified IP address. If you do not specify an IP address, this command displays relay entries for all IP addresses.
vpn-instance vpn-instance-name: Specifies the MPLS L3VPN instance to which the specified IP address belongs. The vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. If you do not specify a VPN instance, this command displays the relay entry for the specified IP address on the public network.
Usage guidelines
The DHCP relay agent records relay entries only after you configure the dhcp relay client-information record command.
Examples
# Display all relay entries on the relay agent.
<Sysname> display dhcp relay client-information Total number of client-information items: 2 Total number of dynamic items: 1 Total number of temporary items: 1 IP address MAC address Type Interface VPN name 10.1.1.5 00e0-0000-0000 Temporary Vlan2 N/A
Table 14: Command output
Field | Description |
---|---|
Total number of client-information items | Total number of relay entries. |
Total number of dynamic items | Total number of dynamic relay entries. |
Total number of temporary items | Total number of temporary relay entries. |
IP address | IP address of the DHCP client. |
MAC address | MAC address of the DHCP client. |
Type | Relay entry type:
|
Interface | Layer 3 interface connected to the DHCP client. N/A is displayed for relay entries without interface information. |
VPN name | Name of the VPN instance to which the DHCP client belongs. If the DHCP client does not belong to any VPN, this field displays N/A. |
Related commands
dhcp relay client-information record
reset dhcp relay client-information