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

Configuration Guide - Reliability

CloudEngine 8800, 7800, 6800, and 5800 V200R003C00

This document describes the configurations of Reliability, including BFD Configuration, VRRP Configuration, DLDP Configuration, Smart Link and Monitor Link Configuration, EFM Configuration, and CFM Configuration.
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 Association Between a VRRP Group and a Direct Route

Configuring Association Between a VRRP Group and a Direct Route

Context

To improve network reliability, a VRRP group is often used as the gateway for users (for example, common users and base stations) to access external networks. The uplink traffic from users to the network traverses the master, but the downlink traffic from the network to users is often transmitted depending on route selection of a dynamic routing protocol. In this case, uplink and downlink traffic may be transmitted along different paths. If the firewall is configured for the VRRP group to improve security, the firewall blocks traffic that is sent and received along different paths. In addition, it is difficult to monitor and collect statistics on such traffic.

You can associate a VRRP group with a direct route to adjust the cost value based on the VRRP group status and therefore affect the route selection of a dynamic routing protocol. This ensures that uplink traffic and downlink traffic are transmitted along the same path.

Pre-configuration Tasks

Before configuring association between a VRRP group and a direct route, complete the following tasks:

  • Configuring basic VRRP functions and creating a VRRP group

  • Configuring a dynamic routing protocol to make IP routes of nodes reachable

NOTE:

After a VRRP group and a direct route are associated, an Interior Gateway Protocol (IGP) protocol cannot run on the VRRP-enabled interface. If an IGP protocol runs on the interface, the IGP protocol cannot retain the original cost of the imported direct route. As a result, the VRRP group cannot be associated with the direct route.

Procedure

  • Configure association between a direct route and a VRRP group.

    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-name

      The view of the VRRP-enabled interface is displayed.

    3. On an Ethernet interface, run undo portswitch

      The interface is switched to Layer 3 mode.

      By default, an Ethernet interface works in Layer 2 mode.

      This command fails to be executed on the Ethernet interface that has any Layer 2 configuration. Before running this command on the Ethernet interface, delete all the Layer 2 configuration of the Ethernet interface.
      NOTE:

      To switch many Ethernet interfaces to Layer 3 mode in batches, run the undo portswitch batch interface-type { interface-number1 [ to interface-number2 ] } &<1-10> command in the system view.

    4. Run direct-route track vrrp vrid virtual-router-id degrade-cost cost-value

      Association between a direct route and a VRRP group is configured.

      After the association, the cost of the direct route can be adjusted based on the VRRP group status.

      • When the VRRP group is in Master state, the cost is set to the default value 0 (highest priority).

      • When the VRRP group is in Backup state, the cost is specified by cost-value (larger than the default value 0).

      NOTE:

      A direct route on the network segment to which an interface belongs can be associated with only one VRRP group. Before associating a direct route that has been associated with one VRRP group to another VRRP group, you must delete the original association configuration.

    5. Run commit

      The configuration is committed.

    6. Run quit

      Return to the system view.

  • Configure a dynamic routing protocol to import the direct route.

    Mainly IGP protocols and BGP are used. RIP does not retain the original cost of the imported route, so OSPF, IS-IS, and BGP are used here.

    • Configure OSPF to import the direct route.

      1. Run system-view

        The system view is displayed.

      2. Run ospf [ process-id ]

        The OSPF process view is displayed.

      3. Run import-route direct

        OSPF is configured to import the direct route.

      4. Run default cost inherit-metric

        OSPF is configured to retain the original cost of the imported route.

        NOTE:
        • The default command has the lowest priority. When running the default command, ensure that the apply cost command for the direct route is not executed. Otherwise, the default command does not take effect.

        • After the default cost inherit-metric command is used, the default cost cost-value command that is executed later will overwrite the default cost inherit-metric command.

      5. Run commit

        The configuration is committed.

    • Configure IS-IS to import the direct route.

      1. Run system-view

        The system view is displayed.

      2. Run isis [ process-id ]

        The IS-IS process view is displayed.

      3. Run import-route direct inherit-cost

        IS-IS is configured to retain the original cost of the imported route.

      4. Run commit

        The configuration is committed.

    • Configure BGP to import the direct route.

      1. Run system-view

        The system view is displayed.

      2. Run bgp as-number

        The BGP process view is displayed.

      3. Run import-route direct

        BGP is configured to import the direct route.

        BGP retains the original cost of the imported route in the MED.

      4. Run commit

        The configuration is committed.

Translation
Download
Updated: 2019-05-08

Document ID: EDOC1100004359

Views: 65445

Downloads: 128

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