No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

NE20E-S2 V800R010C10SPC500 Configuration Guide - IP Services 01

This is NE20E-S2 V800R010C10SPC500 Configuration Guide - IP Services

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
DHCP Relay Maintenance

DHCP Relay Maintenance

DHCP relay maintenance includes monitoring the DHCP relay running status and clearing DHCP relay statistics and recording exchange information with the DHCP relay client.

Monitoring the DHCP Relay Operating Status

This section describes how to monitor the DHCP relay operating status.

Context

You can run the following commands in any view to check the DHCP relay operating status in routine maintenance.

Procedure

  • Run the display dhcp relay statistics [ interface interface-type interface-number ] command to check the related statistics of the DHCP relay.
  • Run the display dhcp relay address [ interface interface-type interface-number ] command to view the DHCP relay address configuration.

Clearing DHCP Relay Statistics

This section describes how to clear DHCP relay statistics.

Context

DHCP relay statistics cannot be restored after they are cleared. Exercise caution when running the reset dhcp relay statistics command.

Procedure

  • Run the reset dhcp relay statistics command in user view to clear packet statistics on the DHCP relay agent.

Recording Exchange Messages with a DHCP Relay Client

A DHCP relay agent can record information exchanged between DHCP servers and clients based on a specific option or sub-option in DHCP packets to facilitate fault location.

Usage Scenario

If a DHCP client cannot obtain an IP address properly, a DHCP relay agent can be configured to record the information exchanged between DHCP servers and DHCP clients to help locate the fault. Then, the DHCP relay agent records the information exchanged between the DHCP client and server based on the specified option code and sub-option code in DHCP packets.

Procedure

  1. Run system-view

    The system view is displayed.

    • The cleared history records of information exchange cannot be restored. Exercise caution while running the reset dhcp relay client-info command.

  2. (Optional) Run reset dhcp relay client-info [ interface interface-type interface-number [ pevlan pevlan-id [ end-pevlan-id ] [ cevlan cevlan-id [ end-cevlan-id ] ] ] | mac-address mac-address | option option-value ]

    The history records of exchanges between the DHCP client and server over the DHCP relay agent have been cleared.

  3. Run dhcp relay client-info option option-code [ sub-option sub-option-code ]

    The DHCP relay agent has been configured to specify the DHCP packets to recorded.

  4. Run commit

    The configuration is committed.

Checking the Configurations

  • Run the display dhcp relay client-info option configuration command in any view to view the DHCP option code or sub-option code based on which the DHCP relay agent records DHCP packets.
  • Run the display dhcp relay client-info [ interface interface-type interface-number [ pevlan pevlan-id [ end-pevlan-id ] [ cevlan cevlan-id [ end-cevlan-id ] ] ] | mac-address mac-address | option option-value ] command in any view to view history records of the information exchanged between the DHCP client and server over the DHCP relay agent.
Run the display dhcp relay client-info option configuration command to view the option code and sub-option code based on which the DHCP relay agent records DHCP packets.
<HUAWEI> display dhcp relay client-info option configuration
DHCP relay client-info option: enable
Option: 55
Sub-option: 1
Run the display dhcp relay client-info [ interface interface-type interface-number [ pevlan pevlan-id [ end-pevlan-id ] [ cevlan cevlan-id [ end-cevlan-id ] ] ] | mac-address mac-address | option option-value ] command to view history records of the information exchanged between the DHCP client and server over the DHCP relay agent.
<HUAWEI> display dhcp relay client-info
----------------------------------------------------------
Table index: 1
Table create time: 2018-03-10 09:08:18
Table status: success
Interface: GigabitEthernet0/1/1.1
PE VLAN: 100
CE VLAN: -
MAC address: 0100-0000-0000
Option: 01 00 00 00 
----------------------------------------------------------
Table index: 2
Table create time: 2018-03-10 09:08:18
Table status: success
Interface: GigabitEthernet0/1/1.1
PE VLAN: 100
CE VLAN: -
MAC address: 0200-0000-0000
Option: 02 00 00 00 
----------------------------------------------------------
total number: 2
Translation
Download
Updated: 2019-01-02

Document ID: EDOC1100055376

Views: 21846

Downloads: 48

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next