< Home

display dhcp relay configuration

Function

The display dhcp relay configuration command views the configurations of the DHCP relay agent.

Format

display dhcp relay configuration [ interface interface-type interface-number ]

Parameters

Parameter Description Value
interface interface-type interface-number Specifies the interface type and interface number. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display dhcp relay configuration command checks the configurations for the DHCP relay agent, including whether DHCP relay is enabled on the interface and whether the IP address of the DHCP relay agent is specified.

If the output of the command is empty, no DHCP relay agent is specified.

Example

# Check the configurations of the DHCP relay agent

<sysname> display dhcp relay configuration
 **  GigabitEthernet0/0/4  **                                                   
 DHCP Relay Enable                                                              
 Relay Address  [0] :         2.2.2.2                                           
                                                                                
 **  GigabitEthernet0/0/5.1  **                                                 
 DHCP Relay Enable                                                              
 Relay Address  [0] :         3.3.3.3                                           
                                                                                
 **  GigabitEthernet0/0/5.2  **                                                 
 DHCP Relay Enable                                                              
                                                                                
 **  GigabitEthernet0/0/9  **                                                   
 DHCP Relay Enable                                                              
 Relay Address  [0] :         8.8.8.8                                           

Table 1 shows the description of the display dhcp relay configuration command output.

Table 1 Description of the display dhcp relay configuration command output

Item

Description

DHCP Relay Enable

Enables the DHCP relay function.

Run the dhcp select relay command in the interface view to enable the DHCP relay function.

Relay Address

Indicates the IP address of the DHCP server agented by the DHCP relay agent.

Run the ip relay address ip-address command in the interface view to set the IP address of the DHCP server agented by the DHCP relay.

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