2. Configure vpn1 on PE, bind GE1/0/0 and GE2/0/0 with vpn1, and configure OSPF multi-
instances.
3. Configure the cost value on GE2/0/0 on PE and RTA to make OSPF choose link A
preferentially.
4. Configure the IP FRR of the private network on PE.
5. Configure BFD to sense the link status.
Data Preparation
To complete the configuration, you need the following data:
l On PE, the VPN instance name is vpn1, route-distinguisher is 100:1 and VPN-target is
111:1.
l The cost value of GE2/0/0 on PE and RTA is 100.
l The BFD configuration name and BFD session parameters
Procedure
Step 1 Configure the IP address on every interface (omitted).
Step 2 Configure OSPF on CE1, CE2 and RTA (omitted).
After the configuration, CE1, CE2, and RTA can learn the interface addresses from each other.
Take CE1 as an example:
<CE1> display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 9 Routes : 9
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.1.1.0/30 Direct 0 0 D 10.1.1.2 GigabitEthernet1/0/0
10.1.1.2/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/0
10.3.1.0/30 Direct 0 0 D 10.3.1.1 GigabitEthernet2/0/0
10.3.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet2/0/0
10.2.1.0/30 OSPF 10 2 D 10.3.1.2 GigabitEthernet2/0/0
10.4.1.0/30 OSPF 10 2 D 10.3.1.2 GigabitEthernet2/0/0
10.5.1.0/24 OSPF 10 2 D 10.3.1.2 GigabitEthernet2/0/0
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
Step 3 Configure VPNinstance and OSPF multi-instance on PE.
# Configure vpn1 on PE and bind GE 1/0/0 and GE 2/0/0 with vpn1.
<PE> system-view
[PE] ip vpn-instance vpn1
[PE-vpn-instance-vpn1] ipv4-family
[PE-vpn-instance-vpn1-af-ipv4] route-distinguisher 100:1
[PE-vpn-instance-vpn1-af-ipv4] vpn-target 111:1
[PE-vpn-instance-vpn1-af-ipv4] quit
[PE-vpn-instance-vpn1] quit
[PE] interface gigabitethernet 1/0/0
[PE-GigabitEthernet1/0/0] ip binding vpn-instance vpn1
[PE-GigabitEthernet1/0/0] ip address 10.1.1.1 30
[PE-GigabitEthernet1/0/0] quit
[PE] interface gigabitethernet 2/0/0
[PE-GigabitEthernet2/0/0] ip binding vpn-instance vpn1
[PE-GigabitEthernet2/0/0] ip address 10.2.1.1 30
[PE-GigabitEthernet2/0/0] quit
Huawei AR1200 Series Enterprise Routers
Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration
Issue 01 (2012-04-20) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
233