R3303-HP HSR6800 Routers MPLS Configuration Guide

388
PE 1 Loop0 1.1.1.9/32
GE2/1
/
1 10.2.1.2/24
GE2/1/1 10.1.1.2/24 GE2/1/2 40.1.1.1/24
GE2/1
/
2 20.1.1.1/24
GE2/1
/
3 20.1.1.2/24
GE2/1
/
3 30.1.1.1/24
P
Loop0
3.3.3.9/32
PE 3 Loop0 4.4.4.9/32 GE2/1/1 30.1.1.2/24
GE2/1
/
1 10.3.1.2/24
GE2/1
/
2 40.1.1.2/24
GE2/1
/
2 50.1.1.2/24
GE2/1
/
3 50.1.1.1/24
Configuration procedure
1. Configure basic MPLS L3VPN:
{ Configure OSPF on the MPLS backbone to allow the PEs and P device to learn the routes of the
loopback interfaces from each other.
{ Configure basic MPLS and MPLS LDP on the MPLS backbone to establish LDP LSPs.
{ Establish MP-IBGP peer relationships between the PEs to advertise VPN IPv4 routes.
{ Configure VPN 1 on PE 1 to allow CE 1 to access the network.
{ Configure VPN 1 on PE 2 to allow CE 2 to access the network.
{ Configure VPN 1 on PE 3 to allow CE 3 to access the network.
{ Configure BGP between PE 1 and CE 1, between PE 2 and CE 2, and between PE 3 and CE 3
to inject routes of CEs into PEs.
2. Configure BGP AS number substitution:
# Configure BGP AS number substitution on PE 1, PE2, and PE3 as described in "Configuring BGP
AS number substitution."
# Display rout
ing information on CE 2. You can see that CE 2 has learned the route 100.1.1.1/32
to CE 1. A routing loop has occurred because CE1 and CE 2 reside in the same site.
<CE2> display bgp routing-table peer 10.2.1.2 received-routes
Total Number of Routes: 8
BGP Local router ID is 10.2.1.1
Status codes: * - valid, ^ - VPN best, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 10.1.1.0/24 10.2.1.2 0 100?
*> 10.1.1.1/32 10.2.1.2 0 100?
* 10.2.1.0/24 10.2.1.2 0 0 100?
* 10.2.1.1/32 10.2.1.2 0 0 100?
* 10.3.1.0/24 10.2.1.2 0 100?
* 10.3.1.1/32 10.2.1.2 0 100?
*> 100.1.1.1/32 10.2.1.2 0 100 100?
*> 200.1.1.1/32 10.2.1.2 0 100 100?
3. Configure the SoO attribute:
# On PE 1, configure a routing policy named soo to add the specified SoO attribute.
<PE1> system-view
[PE1] route-policy soo permit node 10
[PE1-route-policy] apply extcommunity soo 1:100 additive
[PE1-route-policy] quit