314
{
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 relationship between the PEs to advertise VPN IPv4 routes.
{
Configure the VPN instance of VPN 1 on PE 1 to allow CE 1 to access the network.
{
Configure the VPN instance of VPN 1 on PE 2 to allow CE 2 to access the network.
{
Configure the VPN instance of VPN 1 on PE 3 to allow CE 3 to access the network.
{
Configure BGP as the PE-CE routing protocol, and redistribute routes of CEs into PEs.
For more information about basic MPLS L3VPN configurations, see "
."
2.
Configure BGP AS number substitution:
# Configure BGP AS number substitution on PE 1, PE 2, and PE 3. For more information about
the configuration, see "
Configuring BGP AS number substitution
."
# Display routing information on CE 2. The output shows that CE 2 has learned the route for
100.1.1.1/32 from CE 1. A routing loop has occurred because CE 1 and CE 2 reside in the same
site.
<CE2> display bgp routing-table ipv4 peer 10.2.1.2 received-routes
Total number of routes: 6
BGP local router ID is 1.1.1.9
Status codes: * - valid, > - best, d - dampened, h - history,
s - suppressed, S - stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
Network NextHop MED LocPrf PrefVal Path/Ogn
* >e 10.1.1.0/24 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?
* >e 10.3.1.0/24 10.2.1.2 0 100?
* >e 100.1.1.1/32 10.2.1.2 0 100 100?
* >e 200.1.1.1/32 10.2.1.2 0 100 100?
3.
Configure BGP SoO attribute:
# On PE 1, configure the SoO attribute as 1:100 for CE 1.
<PE1> system-view
[PE1] bgp 100
[PE1-bgp-default] ip vpn-instance vpn1
[PE1-bgp-default-vpn1] address-family ipv4
[PE1-bgp-default-ipv4-vpn1] peer 10.1.1.1 soo 1:100
# On PE 2, configure the SoO attribute as 1:100 for CE 2.
<PE2> system-view
[PE2] bgp 100
[PE2-bgp-default] ip vpn-instance vpn1
[PE2-bgp-default-vpn1] address-family ipv4
[PE2-bgp-default-ipv4-vpn1] peer 10.2.1.1 soo 1:100