4.
Configure MP-IBGP between the PEs to exchange VPN routing information.
5.
Configure static routes between the CEs and PEs.
Data Preparation
To complete the configuration, you need the following data:
l
IDs of the VLANs that the interfaces belong to, as shown in
l
IP address of each VLANIF interface, as shown in
l
MPLS LSR-IDs of PEs and P
l
RDs of vpna and vpnb
l
VPN targets of vpna and vpnb
Procedure
Step 1
Configure VLANs that the interfaces belong to and assign IP addresses to the VLANIF interfaces
and loopback interfaces according to
The configuration procedure is not mentioned.
Step 2
Configure an IGP protocol on the MPLS backbone network so that PE and P routers can
communicate with each other.
# Configure PE1.
[PE1]
ospf
[PE1-ospf-1]
area 0
[PE1-ospf-1-area-0.0.0.0]
network 1.1.1.9 0.0.0.0
[PE1-ospf-1-area-0.0.0.0]
network 12.1.1.0 0.0.0.255
[PE1-ospf-1-area-0.0.0.0]
quit
[PE1-ospf-1]
quit
# Configure P.
[P]
ospf
[P-ospf-1]
area 0
[P-ospf-1-area-0.0.0.0]
network 2.2.2.9 0.0.0.0
[P-ospf-1-area-0.0.0.0]
network 12.1.1.0 0.0.0.255
[P-ospf-1-area-0.0.0.0]
network 23.1.1.0 0.0.0.255
[P-ospf-1-area-0.0.0.0]
quit
[P-ospf-1]
quit
# Configure PE2.
[PE2]
ospf
[PE2-ospf-1]
area 0
[PE2-ospf-1-area-0.0.0.0]
network 3.3.3.9 0.0.0.0
[PE2-ospf-1-area-0.0.0.0]
network 23.1.1.0 0.0.0.255
[PE2-ospf-1-area-0.0.0.0]
quit
[PE2-ospf-1]
quit
After the configuration, OSPF relations are established between PE1, P, and PE2. By running
the
display ospf peer
command, you can see that the status of the OSPF relations is Full. By
running the
display ip routing-table
command, you can see that the PEs can learn the routes
of Loopback0 interface of each other.
Take the display on PE1 as an example.
[PE1]
display ip routing-table
Route Flags: R - relied, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
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.
188