display dhcp relay address

Function

The display dhcp relay address command displays DHCP configurations of all relay interfaces.

Format

display dhcp relay address { all | interface { interface-name | interface-type interface-number } }

Parameters

Parameter Description Value
all

Specifies all DHCP relay interfaces.

-

interface interface-type interface-number

Specifies the type and number of a DHCP relay interface.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
dhcp read

Usage Guidelines

Usage Scenario

Run the display dhcp relay address command to check the following DHCP configuration on relay interfaces:

  • DHCP server address
  • Association between a DHCP option and a DHCP server address
  • Association between a DHCP option a DHCP relay agent address

Prerequisites

  • DHCP relay has been enabled using the dhcp select relay command in the interface view.
  • A DHCP server address or DHCP option has been specified using the ip relay address command.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display DHCP configuration of all relay interfaces.
<HUAWEI> display dhcp relay address all
**  GigabitEthernet0/1/0 DHCP Relay Address  **
Dhcp Option          Relay Agent IP       Server IP  
*                    1.1.1.1              1.1.1.1    
45                   1.1.1.1              -          
60(*)                1.1.1.1              -          
60(a)                2.2.2.1              10.1.1.2   
60(abc)              -                    1.1.1.1    
                                          10.1.1.2
Table 1 Description of the display dhcp relay address command output
Item Description
Relay Agent IP

IP address of a relay agent.

Dhcp Option

In the DHCP option field:

  • *: No DHCP option is configured to associate with the relay agent address or DHCP server address. Packets with any option can be forwarded according to this configuration.
  • 45: DHCP option 45 is associated with the relay agent address 1.1.1.1.
  • 60(*): DHCP option 60 is associated with the relay agent address 1.1.1.1. Packets with option 60 followed by any string can be forwarded according to this configuration.
  • 60(a): DHCP option 60 with the string being a is associated with the relay agent address 2.2.2.1 and the DHCP server address 10.1.1.2.
  • 60(abc): DHCP option 60 with the string being abc is associated with the DHCP server address 1.1.1.1 and the DHCP server address 10.1.1.2.
Server IP

IP address of a DHCP server.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >