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 a Loopback Interface

Configuring a Loopback Interface


A loopback interface has the following features:

  • Is always Up and has the loopback feature.
  • Can be configured with the mask of all 1s.

Based on the preceding features, the loopback interface has the following applications.

  • The IP address of a loopback interface is specified as the source address of packets to improve network reliability.
  • When no Router ID is configured for dynamic routing protocols, the maximum IP address of the loopback interface is automatically configured as the router ID.
  • The loopback interface is configured as the source interface to send boarder gateway protocol (BGP) packets to ensure that the BGP session functions properly when the physical interface is faulty.
  • The loopback interface can be configured with the mask of to save IP address resources.
  • The loopback interface can be assigned an IPv4 address,configured to check the source IPv4 addresses of packets.


Before configuring a loopback interface, power on the device and perform self-check.


  1. Run:


    The system view is displayed.

  2. Run:

    interface loopback loopback-number

    A loopback interface is created and the loopback interface view is displayed.

    You can create or delete a loopback interface dynamically. After a loopback interface is created, the link-layer protocol is always Up unless the loopback interface is deleted.

  3. Run:

    ip address ip-address { mask | mask-length } [ sub ]

    The IP address of the loopback interface is configured.

  4. (Optional) Run:

    ip verify source-address

    The loopback interface is configured to check the source IPv4 addresses of packets.

Checking the Configuration

  • Run the display interface loopback [ loopback-number ] command to check the status of a loopback interface.
Updated: 2019-12-28

Document ID: EDOC1000141936

Views: 49959

Downloads: 783

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next