343
{
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 "
."
# Display routing 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?
<CE2> display ip routing-table
Routing Tables: Public
Destinations : 10 Routes : 10
Destination/Mask Proto Pre Cost NextHop Interface
10.1.1.0/24 BGP 255 0 10.2.1.2 Vlan2
10.1.1.1/32 BGP 255 0 10.2.1.2 Vlan2
10.2.1.0/24 Direct 0 0 10.2.1.1 Vlan2
10.2.1.1/32 Direct 0 0 127.0.0.1 InLoop0
10.3.1.0/24 BGP 255 0 10.2.1.2 Vlan2
10.3.1.1/32 BGP 255 0 10.2.1.2 Vlan2
100.1.1.1/32 BGP 255 0 10.2.1.2 Vlan2
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
200.1.1.1/32 BGP 255 0 10.2.1.2 Vlan2
3.
Configure the SoO attribute
# On PE 1, configure a routing policy named soo to add the specified SoO attribute.
<PE1> system-view