[PE1]
ip route-static vpn-instance vpn1 3.3.3.3 32 static-vpn-peer 2.2.2.2
preference 70
# Configure PE3.
[PE3]
ip route-static vpn-instance vpn1 1.1.1.1 32 static-vpn-peer 4.4.4.4
preference 70
10. Configure hybrid FRR for static IP routes and VPN routes.
# Configure PE1.
[PE1]
route-policy frr_policy permit node 10
[PE1-route-policy]
apply backup-nexthop 2.2.2.2
[PE1-route-policy]
quit
[PE1]
ip vpn-instance vpn1
[PE1-vpn-instance-vpn1]
ip frr route-policy frr_policy
[PE1-vpn-instance-vpn1]
quit
# Configure PE3.
[PE3]
route-policy frr_policy permit node 10
[PE3-route-policy]
apply backup-nexthop 4.4.4.4
[PE3-route-policy]
quit
[PE3]
ip vpn-instance vpn1
[PE3-vpn-instance-vpn1]
ip frr route-policy frr_policy
[PE3-vpn-instance-vpn1]
quit
11. Verify the configuration.
If PE1's GE 1/0/0 detects bit errors, the quality of the link connected to GE 1/0/0 becomes
LOW
, which allows GE 1/0/0 to switch traffic to the bidirectional static route for a standby
link.
# Run the
display this interface
command in the view of PE1's GE 1/0/0. The command
output shows that the link quality is
LOW
.
[PE1]
interface gigabitethernet1/0/0
[PE1-GigabitEthernet1/0/0]
display this interface
GigabitEthernet1/0/0 current state : UP
Line protocol current state : UP
Last line protocol up time : 2013-12-23 17:58:07 UTC-08:00
Link quality grade : LOW
Description:HUAWEI, GigabitEthernet1/0/0 Interface
Route Port,The Maximum Transmit Unit is 1500
Internet Address is 10.1.1.1/24
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is
00e0-6e55-8100
Last physical up time : 2013-12-23 17:58:07 UTC-08:00
Last physical down time : 2013-12-23 17:57:27 UTC-08:00
Current system time: 2013-12-25 10:55:45-08:00
Hardware address is 00e0-6e55-8100
Last 300 seconds input rate 0 bytes/sec, 0 packets/sec
Last 300 seconds output rate 0 bytes/sec, 0 packets/sec
Input: 68529 bytes, 657 packets
Output: 41483 bytes, 302 packets
Input:
Unicast: 121 packets, Multicast: 516 packets
Broadcast: 20 packets
Output:
Unicast: 121 packets, Multicast: 164 packets
Broadcast: 17 packets
Input bandwidth utilization : 0%
Output bandwidth utilization : 0%
[PE1-GigabitEthernet1/0/0]
quit
# Run the
display ip routing-table vpn-instance vpn1 3.3.3.3 verbose
command on PE1.
The command output shows that the static route for the active link becomes
Invalid
, and
that for the standby link becomes
Active
.
[PE1]
display ip routing-table vpn-instance vpn1 3.3.3.3 verbose
HUAWEI NetEngine80E/40E Router
Configuration Guide - Reliability
10 Bit-Error-Triggered Protection Switching Configuration
Issue 02 (2014-09-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
1029