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


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


Configuration Guide - Interface Management

S1720, S2700, S5700, and S6720 V200R010C00

This document describes the principles and configurations of interfaces and provides configuration examples.

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).
Configuring Port Protection

Configuring Port Protection


Hosts are usually connected to an external network through a default gateway. If the outbound interface of the default gateway fails, the hosts cannot communicate with the external network, interrupting normal service transmission and degrading device reliability. The port protection function solves this problem. Without changing the networking, you can add two interfaces on the device to a port protection group to implement interface backup in active/standby mode. When the active interface fails, services are immediately switched to the standby interface, ensuring non-stop service transmission.

As shown in Figure 3-3, the port protection group configured on SwitchA contains an active interface GE0/0/1 and a standby interface GE0/0/2. The active interface GE0/0/1 transmits service data when it works properly. When the active interface fails and goes Down, the system automatically switches services to the standby interface GE0/0/2. This switchover ensures normal service transmission and improves device reliability.

After the standby interface GE0/0/2 takes over service transmission, the services will not be switched back to GE0/0/1 even if GE0/0/1 is recovered. The services are switched back to GE0/0/1 only when GE0/0/2 fails.

Figure 3-3  Networking diagram of port protection


  1. Run:


    The system view is displayed.

  2. Run:

    port protect-group protect-group-index

    A port protection group is created and the port protection group view is displayed.

  3. Run:

    protect-group member interface-type interface-number master

    The active interface in the port protection group is configured.

  4. Run:

    protect-group member interface-type interface-number standby

    The standby interface in the port protection group is configured.

    A port protection group contains only an active interface and a standby interface.


    To improve service switchover performance of interfaces in a port protection group, you can run the carrier { up-hold-time | down-hold-time } interval command on the active and standby interfaces to set the delay in reporting status changes to 0 milliseconds. This configuration ensures that the system immediately switches services to the standby interface when the active interface fails.

Checking the Configuration

Run the display port protect-group { all | protect-group-index } command to view member interfaces in a port protection group.

Updated: 2019-12-28

Document ID: EDOC1000141936

Views: 49449

Downloads: 783

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next