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

CLI-based Configuration Guide - Reliability

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R010

This document provides guidance for configuring reliability services, including interface backup, BFD, VRRP, and EFM.
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).
Example for Configuring VRRP IPv6 Association

Example for Configuring VRRP IPv6 Association

In this example, a VRRP IPv6 backup group is associated with a BFD session. This association allows the backup device to take over traffic if an interface or a link on the master device goes Down.

Networking Requirements

Users access an upper-layer network through a gateway router. To improve network reliability, the gateway router is configured with a VRRP IPv6 backup group. VRRP IPv6 association can be configured to rapidly perform an active/standby link switchover if a fault occurs.

On the network shown in Figure 7-22, the master router is transmitting data. VRRP IPv6 association can be configured so that the backup router can take over traffic if a BFD session associated with the VRRP IPv6 backup group detects that the active link on the master router fails or if a VRRP-disabled interface associated with the VRRP IPv6 backup group fails. After the master router recovers, traffic switches back to the master router.

Figure 7-22  Networking diagram for VRRP IPv6 association

Configuration Roadmap

The configuration roadmap is as follows:
  1. Assign an IPv6 address to each interface of each Router and configure OSPFv3 on each Router to ensure network connectivity.

  2. Configure a VRRP IPv6 backup group on routers and set different VRRP priorities for the devices to determine the master or backup state for the routers, which ensures device-level reliability for network links.

  3. Configure a peer BFD session on Router A and Router B to monitor the link between Router A and Router B.

  4. Configure a VRRP IPv6 backup group on Router B to track the BFD session and allow Router B to increase its VRRP priority by 40 to trigger a master/backup VRRP switchover if the BFD session goes Down.

  5. Configure the VRRP IPv6 backup group to track a VRRP-disabled interface connecting Router A to the upper-layer network so that Router A can reduce its VRRP priority and trigger a master/backup VRRP switchover if its tracked interface goes Down.

Data Preparation

To complete the configuration, you need the following data:
  • IPv6 address of each interface on each device (For details, see configuration files.)

  • VRRP priority of each router in the VRRP IPv6 backup group

  • VRID (1) and virtual IPv6 address (2001:db8::100) for the VRRP IPv6 backup group configured on Router A and Router B

  • VRRP IPv6 priorities (120 for Router A and 100 for Router B)

  • Local and remote discriminators of a peer BFD session

  • Value (40) by which Router B increases its VRRP IPv6 priority and triggers a master/backup VRRP IPv6 switchover if its tracked BFD session goes Down
  • Value (40) by which Router A reduces its VRRP priority and triggers a master/backup VRRP IPv6 switchover if its tracked interface goes Down
  • Preemption delay (20s)

Procedure

  1. Configure the devices to ensure network connectivity. For configuration details, see the configuration file of this example.

    Assign 2001:db8::100 to a default gateway used by host A. Assign 2001:db8:3::2 to a default gateway used by host B.

  2. Configure OSPFv3 on Router A, Router B, and Router C. For configuration details, see the configuration file of this example.
  3. Configure a VRRP IPv6 backup group.

    # Assign an IPv6 address to GE 1/0/0 on Router A; create VRRP IPv6 backup group 1 on GE 1/0/0; set the VRRP IPv6 priority to 120 so that Router A is the Master.

    <Huawei> system-view
    [Huawei] sysname RouterA 
    [RouterA] ipv6
    [RouterA] interface gigabitethernet 1/0/0
    [RouterA-GigabitEthernet1/0/0] undo shutdown
    [RouterA-GigabitEthernet1/0/0] ipv6 enable
    [RouterA-GigabitEthernet1/0/0] ipv6 address 2001:db8::1 64
    [RouterA-GigabitEthernet1/0/0] vrrp6 vrid 1 virtual-ip FE80::1 link-local
    [RouterA-GigabitEthernet1/0/0] vrrp6 vrid 1 virtual-ip 2001:db8::100
    [RouterA-GigabitEthernet1/0/0] vrrp6 vrid 1 priority 120
    [RouterA-GigabitEthernet1/0/0] vrrp6 vrid 1 preempt-mode timer delay 20
    [RouterA-GigabitEthernet1/0/0] quit

    # Assign an IPv6 address to GE 1/0/0 on Router B; create VRRP IPv6 backup group 1 on GE 1/0/0, in which Router B is the backup.

    <Huawei> system-view
    [Huawei] sysname RouterB
    [RouterB] ipv6
    [RouterB] interface gigabitethernet 1/0/0
    [RouterB-GigabitEthernet1/0/0] undo shutdown
    [RouterB-GigabitEthernet1/0/0] ipv6 enable
    [RouterB-GigabitEthernet1/0/0] ipv6 address 2001:db8::2 64
    [RouterB-GigabitEthernet1/0/0] vrrp6 vrid 1 virtual-ip FE80::1 link-local
    [RouterB-GigabitEthernet1/0/0] vrrp6 vrid 1 virtual-ip 2001:db8::100
    [RouterB-GigabitEthernet1/0/0] quit

  4. Configure basic BFD functions.

    # Configure a peer BFD session on Router A.

    [RouterA] bfd
    [RouterA-bfd] quit
    [RouterA] bfd atob bind peer-ipv6 2001:db8::2 interface gigabitethernet 1/0/0
    [RouterA-bfd-session-atob] discriminator local 1
    [RouterA-bfd-session-atob] discriminator remote 2
    [RouterA-bfd-session-atob] min-rx-interval 50
    [RouterA-bfd-session-atob] min-tx-interval 50 
    [RouterA-bfd-session-atob] commit
    [RouterA-bfd-session-atob] quit

    # Configure a peer BFD session on Router B.

    [RouterB] bfd
    [RouterB-bfd] quit
    [RouterB] bfd btoa bind peer-ipv6 2001:db8::1 interface gigabitethernet 1/0/0
    [RouterB-bfd-session-btoa] discriminator local 2
    [RouterB-bfd-session-btoa] discriminator remote 1
    [RouterB-bfd-session-btoa] min-rx-interval 50
    [RouterB-bfd-session-btoa] min-tx-interval 50
    [RouterB-bfd-session-btoa] commit
    [RouterB-bfd-session-btoa] quit

    # After completing the preceding configurations, run the display bfd session command on Router A or Router B. The peer BFD session is Up. In the following example, the display on Router A is used.

    [RouterA] display bfd session all
    --------------------------------------------------------------------------------
    Local Remote PeerIpAddr      State     Type        InterfaceName
    --------------------------------------------------------------------------------
    1     2      2001:DB8::2        Up        S_IP_IF     GigabitEthernet1/0/0
    --------------------------------------------------------------------------------
         Total UP/DOWN Session Number : 1/0   

  5. Configure VRRP IPv6 association.

    # Associate the VRRP IPv6 backup group with the VRRP-disabled interface connecting Router A to the upper-layer network.

    [RouterA] interface gigabitethernet 1/0/0
    [RouterA-GigabitEthernet1/0/0] vrrp6 vrid 1 track interface pos 1/0/0 ipv6-state reduced 40
    [RouterA-GigabitEthernet1/0/0] quit

    # Associate the VRRP IPv6 backup group with the BFD session on Router B.

    [RouterB] interface gigabitethernet 1/0/0
    [RouterB-GigabitEthernet1/0/0] vrrp6 vrid 1 track bfd-session 2 increased 40
    [RouterB-GigabitEthernet1/0/0] quit

  6. Verify the configuration.

    # After completing the preceding configurations, ping host B from host A. The ping is successful. Run the display vrrp6 command on Router A and Router B. The command output shows that the VRRP status is Master on Router A and Backup on Router B.

    [RouterA] display vrrp6
      GigabitEthernet1/0/0 | Virtual Router 1
        State            : Master
        Virtual IP : FE80::1
                     2001:DB8::100
        Master IP : 2001:DB8::1
        PriorityRun : 120
        PriorityConfig : 120
        MasterPriority : 120
        Preempt : YES   Delay Time : 20 s
        TimerRun : 100 cs
        TimerConfig : 100 cs
        Virtual Mac : 0000-5e00-0201 
        Check hop limit : YES
        Config type : normal-vrrp
        Backup-forward : disabled
        Track IF : POS1/0/0   Priority reduced : 40
        IF State : UP
        Create time : 2010-06-22 17:33:00 UTC+08:00
        Last change time : 2010-06-22 17:33:04 UTC+08:00
    [RouterB] display vrrp6
      GigabitEthernet1/0/0 | Virtual Router 1
        State : Backup
        Virtual IP : FE80::1
                     2001:DB8::100
        Master IP : 2001:DB8::1
        PriorityRun : 100
        PriorityConfig : 100
        MasterPriority : 120
        Preempt : YES   Delay Time : 0 s
        TimerRun : 100 cs
        TimerConfig : 100 cs
        Virtual Mac : 0000-5e00-0201
        Check hop limit : YES
        Config type : normal-vrrp
        Backup-forward : disabled
        Track BFD : 2   Priority increased : 40
        BFD-Session State : UP
        Create time : 2010-06-22 17:33:00 UTC+08:00
        Last change time : 2010-06-22 17:33:04 UTC+08:00

    # Run the shutdown command on POS 1/0/0 of Router A to simulate that POS 1/0/0 associated with the VRRP backup group fails.

    Run the display vrrp6 command on Router A and Router B. The command output shows that the VRRP status is Backup on Router A and Master on Router B.

    [RouterA] display vrrp6
      GigabitEthernet1/0/0 | Virtual Router 1
        State : Backup
        Virtual IP : FE80::1
                     2001:DB8::100
        Master IP : 2001:DB8::2
        PriorityRun : 80
        PriorityConfig : 120
        MasterPriority : 100
        Preempt : YES   Delay Time : 20 s
        TimerRun : 100 cs
        TimerConfig : 100 cs
        Virtual Mac : 0000-5e00-0201 
        Check hop limit : YES
        Config type : normal-vrrp
        Backup-forward : disabled
        Track IF : POS1/0/0   Priority reduced : 40
        IF State : DOWN
        Create time : 2010-06-22 17:35:04 UTC+08:00
        Last change time : 2010-06-22 17:35:14 UTC+08:00
    [RouterB] display vrrp6
      GigabitEthernet1/0/0 | Virtual Router 1
        State : Master
        Virtual IP : FE80::1
                     2001:DB8::100
        Master IP : 2001:DB8::2
        PriorityRun : 100
        PriorityConfig : 100
        MasterPriority : 100
        Preempt : YES   Delay Time : 0 s
        TimerRun : 100 cs
        TimerConfig : 100 cs
        Virtual Mac : 0000-5e00-0201
        Check hop limit : YES
        Config type : normal-vrrp
        Backup-forward : disabled
        Track BFD : 2   Priority increased : 40
        BFD-Session State : UP
        Create time : 2010-06-22 17:35:06 UTC+08:00
        Last change time  : 2010-06-22 17:35:16 UTC+08:00

    # Run the undo shutdown command on POS 1/0/0 of Router A. Wait 20s and run the display vrrp6 command on Router A. The command output shows that the VRRP status is Master on Router A.

    [RouterA] display vrrp6
      GigabitEthernet1/0/0 | Virtual Router 1
        State : Master
        Virtual IP : FE80::1
                     2001:DB8::100
        Master IP : 2001:DB8::1
        PriorityRun : 120
        PriorityConfig : 120
        MasterPriority : 120
        Preempt : YES   Delay Time : 20 s
        TimerRun : 100 cs
        TimerConfig : 100 cs
        Virtual Mac : 0000-5e00-0201 
        Check hop limit : YES
        Config type : normal-vrrp
        Backup-forward : disabled
        Track IF : POS1/0/0   Priority reduced : 40
        IF State : UP
        Create time : 2010-06-22 17:40:00 UTC+08:00
        Last change time : 2010-06-22 17:40:04 UTC+08:00

Configuration Files

  • Configuration file of Router A

    #
     sysname RouterA
    #
     ipv6
    #
     bfd
    #
    ospfv3 1
     router-id 1.1.1.1
    #
    interface GigabitEthernet1/0/0
     ipv6 enable
     ipv6 address 2001:DB8::1/64
     vrrp6 vrid 1 virtual-ip FE80::1 link-local
     vrrp6 vrid 1 virtual-ip 2001:DB8::100
     vrrp6 vrid 1 priority 120
     vrrp6 vrid 1 preempt-mode timer delay 20
     vrrp6 vrid 1 track interface pos 1/0/0 reduce 40
     ospfv3 1 area 0.0.0.0
    #
    interface Pos1/0/0
     link-protocol ppp
     ipv6 enable
     ipv6 address 2001:DB8:1::1/64
     ospfv3 1 area 0.0.0.0
    #
    bfd atob bind peer-ipv6 2001:DB8::2 interface gigabitethernet 1/0/0
     discriminator local 1
     discriminator remote 2
     min-tx-interval 50
     min-rx-interval 50
     commit
    #
    return
  • Configuration file of Router B

    #
     sysname RouterB
    #
     ipv6
    #
    bfd
    #
     ospfv3 1
     router-id 2.2.2.2
    #
    interface GigabitEthernet1/0/0
     ipv6 enable
     ipv6 address 2001:DB8::2/64
     vrrp6 vrid 1 virtual-ip FE80::1 link-local
     vrrp6 vrid 1 virtual-ip 2001:DB8::100
     vrrp6 vrid 1 track bfd-session 2 increased 40
     ospfv3 1 area 0.0.0.0
    #
    interface Pos1/0/0
     link-protocol ppp
     ipv6 enable
     ipv6 address 2001:DB8:2::1/64
     ospfv3 1 area 0.0.0.0
    #
    bfd atob bind peer-ipv6 2001:DB8::1 interface gigabitethernet 1/0/0
     discriminator local 2
     discriminator remote 1
     min-tx-interval 50
     min-rx-interval 50
     commit
    #
    return
  • Configuration file of Router C

    #
     sysname RouterC
    #
     ipv6
    #
    ospfv3 1
     router-id 3.3.3.3
    #
    interface GigabitEthernet3/0/0
     ipv6 enable
     ipv6 address 2001:DB8:3::2/64
     ospfv3 1 area 0.0.0.0
    #
    interface Pos1/0/0
     link-protocol ppp
     ipv6 enable
     ipv6 address 2001:DB8:1::2
     ospfv3 1 area 0.0.0.0
    #
    interface Pos2/0/0
     link-protocol ppp
     undo shutdown
     ipv6 enable
     ipv6 address 2001:DB8:2::2/64
     ospfv3 1 area 0.0.0.0
    #
    return
Translation
Download
Updated: 2019-08-12

Document ID: EDOC1100034076

Views: 60921

Downloads: 109

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