< Home

display dhcp relay

Function

The display dhcp relay command displays configuration information about a DHCP relay agent.

Format

display dhcp relay { configuration | all | interface interface-type interface-number }

Parameters

Parameter

Description

Value

configuration

Displays configuration information about DHCP relay agents configured globally and on all interfaces.

-

all

Displays configuration information about DHCP relay agents configured on all interfaces.

-

interface interface-type interface-number

Displays configuration information about a DHCP relay agent configured on a specified interface.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run this command to check configuration information about DHCP relay agents configured globally and on interfaces.

Example

# Display configuration information about DHCP relay agents on all interfaces.

<HUAWEI> display dhcp relay configuration
  DHCP relay global running information :                                                                                           
  DHCP relay adrress cycle           : Disable (default)                                                                            
  DHCP relay trust option82          : Enable  (default)                                                                            
  DHCP relay request server-match    : Enable  (default)                                                                            
  DHCP relay reply forward all       : Disable (default)  
 DHCP relay agent running information of interface Vbdif100 :                                                                         
 Server IP address [00] : 10.1.1.1                                                                                                    
 Gateway address in use : 10.10.1.10                                                                                                  
 Anycast gateway re-route: disable                                                                                                    
 GIADDR source interface : LoopBack1                                                                                                  
 Link-selection insert  : enable 
 DHCP relay agent running information of interface Vlanif5 :
 Server group name      : group1
 Gateway address in use : 10.100.100.1                      
 Gateway switch         : enable
 DHCP relay agent running information of interface Vlanif100 :
 Server IP address [00] : 10.2.2.3
 Gateway address in use : 10.2.2.2
Table 1 Description of the display dhcp relay configuration command output

Item

Description

DHCP relay global running information

Configuration information about DHCP relay agents configured globally.

DHCP relay address cycle

Whether the DHCP server polling function is enabled on a DHCP relay agent.

  • Enable: The DHCP server polling function is enabled on a DHCP relay agent.
  • Disable: The DHCP server polling function is disabled on a DHCP relay agent.

To configure this item, run the ip relay address cycle command.

DHCP relay trust option82

Whether Option 82 is enabled on a DHCP relay agent.

  • Enable: Option 82 is enabled on a DHCP relay agent.
  • Disable: Option 82 is disabled on a DHCP relay agent.

To configure this item, run the dhcp relay trust option82 command.

DHCP relay request server-match

Whether a DHCP relay agent is enabled to check the DHCP server identifier (Option54) in a DHCP Request message to be forwarded.

  • Enable: A DHCP relay agent is enabled to check the DHCP server identifier (Option54) in a DHCP Request message to be forwarded.
  • Disable: A DHCP relay agent is disabled from checking the DHCP server identifier (Option54) in a DHCP Request message to be forwarded.

To configure this item, run the dhcp relay request server-match enable command.

DHCP relay reply forward all

Whether a DHCP relay agent is enabled to forward all DHCP ACK messages.

  • Enable: A DHCP relay agent is enabled to forward all DHCP ACK messages.
  • Disable: A DHCP relay agent is disabled from forwarding all DHCP ACK messages.

To configure this item, run the dhcp relay reply forward all enable command.

DHCP relay agent running information of interface if

DHCP relay agent configuration of the if interface.

Server group name

Group name of the DHCP Server.

To specify the parameter, run the dhcp relay server-select command.

Server IP address [x]

IP address of a DHCP server in the DHCP server group. The value x is the index of a DHCP server.

To specify the parameter, run the dhcp-server command.

Gateway address in use

IP address of the DHCP gateway.

To specify the parameter, run the gateway command.

Anycast gateway re-route

Whether the re-routing function for the DHCP relay agent is enabled. The value can be:

  • Enable: The re-routing function for the DHCP relay agent is enabled.
  • Disable: The re-routing function for the DHCP relay agent is disabled.

To configure this item, run the dhcp relay anycast gateway re-route enable command.

GIADDR source interface

Source interface of DHCP relayed packets.

To configure this item, run the dhcp relay giaddr source-interface command.

Link-selection insert

Whether the function of inserting the Link-selection suboption of the Option82 field into DHCP packets is enabled. The value can be:

  • Enable: The function of inserting the Link-selection suboption of the Option82 field into DHCP packets is enabled.
  • Disable: The function of inserting the Link-selection suboption of the Option82 field into DHCP packets is disabled.

To configure this item, run the dhcp relay information link-selection insert enable command.

Gateway switch

Whether automatic gateway switchover is enabled on a DHCP relay agent. The value can be:

  • Enable: The automatic gateway switchover on a DHCP relay agent is enabled.
  • Disable: The automatic gateway switchover on a DHCP relay agent is disabled.

To configure this item, run the dhcp relay gateway-switch enable command.

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