[RouterA]
bfd
[RouterA-bfd]
quit
[RouterA]
bfd bfd bind peer-ip 10.0.1.2
[RouterA-bfd-session-bfd]
discriminator local 1
[RouterA-bfd-session-bfd]
discriminator remote 2
[RouterA-bfd-session-bfd]
commit
[RouterA-bfd-session-bfd]
quit
[RouterA]
bfd bfd2 bind peer-ip 101.0.0.2
[RouterA-bfd-session-bfd2]
discriminator local 3
[RouterA-bfd-session-bfd2]
discriminator remote 4
[RouterA-bfd-session-bfd2]
commit
[RouterA-bfd-session-bfd2]
quit
# Configure a VRRP backup group on GE 1/0/0.2 and another one on GE 1/0/0.3, and enable
each VRRP backup group to track a specific BFD session and the network-side interface GE
2/0/0.
[RouterA]
interface gigabitethernet 1/0/0.2
[RouterA-GigabitEthernet1/0/0.2]
vlan-type dot1q 200
[RouterA-GigabitEthernet1/0/0.2]
ip address 10.0.1.1 255.255.255.0
[RouterA-GigabitEthernet1/0/0.2]
vrrp vrid 1 virtual-ip 10.0.1.100
[RouterA-GigabitEthernet1/0/0.2]
admin-vrrp vrid 1
[RouterA-GigabitEthernet1/0/0.2]
vrrp vrid 1 priority 120
[RouterA-GigabitEthernet1/0/0.2]
vrrp vrid 1 track bfd-session 1 peer
[RouterA-GigabitEthernet1/0/0.2]
vrrp vrid 1 track interface gigabitethernet 2/0/0
reduced 50
[RouterA-GigabitEthernet1/0/0.2]
quit
[RouterA]
interface gigabitethernet 1/0/0.3
[RouterA-GigabitEthernet1/0/0.3]
vlan-type dot1q 201
[RouterA-GigabitEthernet1/0/0.3]
ip address 101.0.0.1 255.255.255.0
[RouterA-GigabitEthernet1/0/0.3]
vrrp vrid 2 virtual-ip 101.0.0.100
[RouterA-GigabitEthernet1/0/0.3]
admin-vrrp vrid 2
[RouterA-GigabitEthernet1/0/0.3]
vrrp vrid 2 priority 100
[RouterA-GigabitEthernet1/0/0.3]
vrrp vrid 2 preempt-mode timer delay 600
[RouterA-GigabitEthernet1/0/0.3]
vrrp vrid 2 track bfd-session 3 peer
[RouterA-GigabitEthernet1/0/0.3]
vrrp vrid 2 track interface gigabitethernet 2/0/0
reduced 50
[RouterA-GigabitEthernet1/0/0.3]
quit
NOTE
Set VRRP priority values on each device to determine the master and backup status. A device with the
highest priority functions as the master device.
# Configure a remote backup service.
[RouterA]
remote-backup-service service1
[RouterA-rm-backup-srv-service1]
peer 88.88.88.88 source 22.22.22.22 port 2046
[RouterA-rm-backup-srv-service1]
track interface gigabitethernet 2/0/0
NOTE
Run the
track bfd-session
command in the RBS view to monitor the peer BFD sessions that are established
at the network side on the two Routers, monitoring the peer status. The configuration details are not
provided. For details, see
track bfd-session
in
HUAWEI NetEngine80E/40E Router Command Reference
- Reliability
.
Configure a remote backup profile.
[RouterA]
remote-backup-profile profile1
[RouterA-rm-backup-prf-profile1]
peer-backup hot
[RouterA-rm-backup-prf-profile1]
vrrp-id 1 interface gigabitethernet 1/0/0.2 even-
mac
[RouterA-rm-backup-prf-profile1]
vrrp-id 2 interface gigabitethernet 1/0/0.3 odd-
mac
HUAWEI NetEngine80E/40E Router
Configuration Guide - Reliability
11 Multi-node Backup Configuration
Issue 02 (2014-09-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
1209