OSPF is used in this example. The configuration details are not mentioned here.
NOTE
Advertise the 32-bit IP address of the loopback interface, that is, the LSR ID, by using OSPF.
After the configuration, the OSPF neighbor relationship can be set up between the ASBR and
the PE in the same AS. Run the display ospf peer command, and you can view that the status
of the neighbor relationship is Full.
The ASBR and PE in the same AS can learn and ping the IP address of the loopback interface
of each other.
Step 2 Configure basic MPLS functions and MPLS LDP on MPLS backbone networks of AS100 and
AS200 to establish LDP LSPs.
For detailed configurations, see 3.17.7 Example for Configuring Inter-AS VPN Option A.
Step 3 Configure BGP/MPLS IP VPN on PE1 and PE2.
NOTE
The VPN targets of VPN instances created on PE1 and PE2 must be matched.
For details on the configuration, see the following configuration files.
Step 4 Configure inter-AS VPN Option B.
# Configure ASBR1: Enable MPLS on VLANIF12 through which ASBR1 is connected to
ASBR2.
<ASBR1> system-view
[ASBR1] interface vlanif 12
[ASBR1-Vlanif12] ip address 192.1.1.1 24
[ASBR1-Vlanif12] mpls
[ASBR1-Vlanif12] quit
# Configure ASBR1: Set up the MP-EBGP peer relationship with ASBR2 and configure ASBR1
not to filter the received VPNv4 routes based on the VPN target.
[ASBR1] bgp 100
[ASBR1-bgp] peer 192.1.1.2 as-number 200
[ASBR1-bgp] ipv4-family vpnv4
[ASBR1-bgp-af-vpnv4] peer 192.1.1.2 enable
[ASBR1-bgp-af-vpnv4] undo policy vpn-target
[ASBR1-bgp-af-vpnv4] quit
[ASBR1-bgp] quit
NOTE
The configuration on ASBR2 is the same as the configuration on ASBR1, and is not mentioned here.
Step 5 Verify the configuration.
After the preceding configuration, CEs can learn routes of interfaces of each other, and CE1 and
CE2 can ping each other.
For example, information about CE1 is displayed as follows:
<CE1> display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 5 Routes : 5
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.1.1.0/24 Direct 0 0 D 10.1.1.1 Vlanif10
10.1.1.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
Quidway S7700 Smart Routing Switch
Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
232