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

AR Router Troubleshooting Guide

This Product Documentation provides guidance for maintaining AR Enterprise Router, covering common information collection and fault diagnostic commands, typical fault troubleshooting guide, and troubleshooting.
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).
Static Routes Do Not Take Effect Because of the Relay Depth

Static Routes Do Not Take Effect Because of the Relay Depth

Fault Symptom

As shown in Figure 19-17, Router A and Router B are connected through two GE links and establish an EBGP peer relationship. The following two static routes are configured on Router A:

ip route-static 2.2.2.2 255.255.255.255 gigabitethernet1/0/0 10.1.1.2
ip route-static 2.2.2.2 255.255.255.255 10.1.2.2

The routing table shows that routes to Router B have only one outbound interface GigabitEthernet 1/0/0.

Figure 19-17  Static routes failing to take effect

Fault Analysis

Because the static route configured with the ip route-static 2.2.2.2 255.255.255.255 gigabitethernet 1/0/0 10.1.1.2 command is specified with an outbound interface, route relay is not required and the relay depth is 0. Because no outbound interface is specified for the other static route configured with the ip route-static 2.2.2.2 255.255.255.255 10.1.2.2 command, route relay needs to be performed once and the relay depth is 1.

BGP selects the static route with the smallest relay depth. Therefore, BGP selects the static route with the relay depth 0, and the outbound interface of the static route configured with the ip route-static 2.2.2.2 255.255.255.255 10.1.2.2 command becomes GigabitEthernet 1/0/0.

Procedure

  1. Run the system-view command on Router A to enter the system view.
  2. Run the undo ip route-static2.2.2.2 255.255.255.255 10.1.2.2 command to delete the static route.
  3. Run the ip route-static 2.2.2.2 255.255.255.255 gigabitethernet 2/0/0 10.1.2.2 command to configure a static route with an outbound interface.

    After the preceding operations, both static routes are selected when BGP selects static routes with the smallest relay depth. Therefore, the two outbound interfaces GigabitEthernet 1/0/0 and GigabitEthernet 2/0/0 are displayed when checking the routing table of Router A.

Summary

Specify outbound interfaces for static routes when configuring them. This prevents route relay.

Translation
Download
Updated: 2019-05-10

Document ID: EDOC1000079719

Views: 453232

Downloads: 4311

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next