The vrrp6 vrid track bfd-session command enables a Virtual Router Redundancy Protocol for IPv6 (VRRP6) backup group to monitor a BFD session.
The undo vrrp6 vrid track bfd-session command disables a VRRP6 backup group from monitoring a BFD session.
By default, a VRRP6 backup group does not monitor a BFD session.
vrrp6 vrid virtual-router-id track bfd-session bfd-session-id [ increased value-increased | reduced value-reduced ]
vrrp6 vrid virtual-router-id track bfd-session session-name bfd-configure-name [ increased value-increased | reduced value-reduced ]
vrrp6 vrid virtual-router-id track bfd-session bfd-session-id { peer | link }
vrrp6 vrid virtual-router-id track bfd-session session-name bfd-configure-name { peer | link }
undo vrrp6 vrid virtual-router-id track bfd-session [ bfd-session-id | session-name bfd-configure-name ]
Parameter | Description | Value |
---|---|---|
virtual-router-id |
Specifies the ID of a VRRP6 backup group. |
The value is an integer ranging from 1 to 255. |
bfd-session-id |
Specifies the local discriminator of a monitored BFD session. |
The value is an integer ranging from 1 to 16384. |
increased value-increased |
Specifies a value by which the priority of a router in a VRRP6 backup group increases when a monitored BFD session goes Down. |
The value is an integer ranging from 1 to 255. The value 255 is reserved for an IP address owner, and therefore the largest value can be set to 254. |
reduced value-reduced |
Specifies a value by which the priority of a router in a VRRP6 backup group decreases when a monitored BFD session goes Down. |
The value is an integer ranging from 1 to 255. The smallest value can be set to 1. By default, the priority decreases by 10 when a monitored BFD session goes Down. |
session-name bfd-configure-name |
Specifies the name of a monitored BFD session. |
The value is a string of 1 to 64 characters, spaces not supported. When quotation marks are used around the string, spaces are allowed in the string.
|
peer |
Indicates that a monitored BFD session is a peer BFD session. |
- |
link |
Indicates that a monitored BFD session is a link BFD session. |
- |
100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, VE sub-interface view, VLANIF interface view
Usage Scenario
If the link between routers in a VRRP6 backup group fails, the VRRP6 backup group performs a master/backup VRRP switchover only after a period of three times the interval at which VRRP6 Advertisement packets are sent. During this period, service data may be lost. BFD can rapidly detect link faults. You can run the vrrp6 vrid track bfd-session command to enable a VRRP6 backup group to monitor a BFD session. When the status of the monitored BFD session changes, the BFD module notifies the VRRP6 module of the change. The VRRP6 module changes the priority or status based on configurations to implement a rapid master/backup VRRP switchover.
Prerequisites
Configuration Impact
When you run the vrrp6 vrid virtual-router-id track bfd-session { bfd-session-id | session-name bfd-configure-name } [ increased value-increased | reduced value-reduced ] command to enable a VRRP6 backup group to monitor a BFD session, the specified increased value-increased or reduced value-reduced parameter value affects the status of the VRRP6 backup group. The specified parameter value only needs to ensure that a master/backup VRRP switchover can be performed. For example, if the master router's priority is 120 (which can be viewed using the display vrrp6 brief command) and a backup router's priority is 110, you need to set the increased value-increased parameter to 20 only on the backup router.
After you enable a VRRP6 backup group to monitor a link BFD session, you cannot change the BFD session type. To change the BFD session type, you must first disable the VRRP6 backup group from monitoring the link BFD session.Precautions
After you enable a VRRP6 backup group to monitor a BFD session, an IP address owner's priority does not change because it is fixed at 255.
The VRRP6 considers that the BFD session detects a Down event in the following situations:<HUAWEI> system-view [~HUAWEI] bfd [*HUAWEI-bfd] quit [*HUAWEI] bfd 1 bind peer-ipv6 2001:db8::1 source-ipv6 2001:db8::2 auto [*HUAWEI-bfd-session-1] quit [*HUAWEI] interface GigabitEthernet 0/1/1 [*HUAWEI-GigabitEthernet0/1/1] ipv6 enable [*HUAWEI-GigabitEthernet0/1/1] ipv6 address 2001:db8::2 64 [*HUAWEI-GigabitEthernet0/1/1] vrrp6 vrid 1 virtual-ip FE80::7 link-local [*HUAWEI-GigabitEthernet0/1/1] vrrp6 vrid 1 track bfd-session 1 reduced 20
<HUAWEI> system-view [~HUAWEI] bfd [*HUAWEI-bfd] quit [*HUAWEI] bfd peer1 bind peer-ipv6 2001:db8::1 source-ipv6 2001:db8::2 auto [*HUAWEI-bfd-session-peer1] quit [*HUAWEI] interface GigabitEthernet 0/1/3 [*HUAWEI-GigabitEthernet0/1/3] ipv6 enable [*HUAWEI-GigabitEthernet0/1/3] ipv6 address 2001:db8::2 64 [*HUAWEI-GigabitEthernet0/1/3] vrrp6 vrid 3 virtual-ip FE80::7 link-local [*HUAWEI-GigabitEthernet0/1/3] vrrp6 vrid 3 track bfd-session session-name peer1 peer
<HUAWEI> system-view [~HUAWEI] bfd [*HUAWEI-bfd] quit [*HUAWEI] bfd atob bind peer-ipv6 2001:db8::1 source-ipv6 2001:db8::2 auto [*HUAWEI-bfd-session-atob] quit [*HUAWEI] interface GigabitEthernet 0/1/2 [*HUAWEI-GigabitEthernet0/1/2] ipv6 enable [*HUAWEI-GigabitEthernet0/1/2] ipv6 address 2001:db8::2 64 [*HUAWEI-GigabitEthernet0/1/2] vrrp6 vrid 2 virtual-ip FE80::7 link-local [*HUAWEI-GigabitEthernet0/1/2] vrrp6 vrid 2 track bfd-session session-name atob reduced 20