[PE3-bgp-default] peer 2.2.2.9 connect-interface loopback 0
[PE3-bgp-default] address-family vpnv4
[PE3-bgp-default-vpnv4] peer 2.2.2.9 enable
# Allow the local AS number to appear in the AS-PATH attribute of the routes received.
[PE3-bgp-default-vpnv4] peer 2.2.2.9 allow-as-loop 2
[PE3-bgp-default-vpnv4] quit
[PE3-bgp-default] quit
# Configure CE 1.
[CE1] bgp 200
[CE1-bgp-default] peer 1.1.1.9 as-number 200
[CE1-bgp-default] peer 1.1.1.9 connect-interface loopback 0
[CE1-bgp-default] address-family vpnv4
[CE1-bgp-default-vpnv4] peer 1.1.1.9 enable
[CE1-bgp-default-vpnv4] undo policy vpn-target
[CE1-bgp-default-vpnv4] quit
[CE1-bgp-default] quit
# Configure PE 4 and CE 2 in the same way that PE 3 and CE 1 are configured. (Details not
shown.)
V erifying the configuration
4 9 7 B
1.
Display the public routing table and VPN routing table on the provider PEs, for example, on PE
1:
# Verify that the public routing table contains only routes on the service provider network.
[PE1] display ip routing-table
Destinations : 14
Destination/Mask
0.0.0.0/32
3.3.3.9/32
4.4.4.9/32
30.1.1.0/24
30.1.1.0/32
30.1.1.1/32
30.1.1.255/32
127.0.0.0/8
127.0.0.0/32
127.0.0.1/32
127.255.255.255/32 Direct
224.0.0.0/4
224.0.0.0/24
255.255.255.255/32 Direct
# Verify that the VPN routing table contains sub-VPN routes.
[PE1] display ip routing-table vpn-instance vpn1
Destinations : 17
Destination/Mask
0.0.0.0/32
Routes : 14
Proto
Pre Cost
Direct
0
0
Direct
0
0
IS_L1
15
10
Direct
0
0
Direct
0
0
Direct
0
0
Direct
0
0
Direct
0
0
Direct
0
0
Direct
0
0
0
0
Direct
0
0
Direct
0
0
0
0
Routes : 17
Proto
Pre Cost
Direct
0
0
271
NextHop
Interface
127.0.0.1
InLoop0
127.0.0.1
InLoop0
30.1.1.2
Vlan2
30.1.1.1
Vlan2
30.1.1.1
Vlan2
127.0.0.1
InLoop0
30.1.1.1
Vlan2
127.0.0.1
InLoop0
127.0.0.1
InLoop0
127.0.0.1
InLoop0
127.0.0.1
InLoop0
0.0.0.0
NULL0
0.0.0.0
NULL0
127.0.0.1
InLoop0
NextHop
Interface
127.0.0.1
InLoop0