Troubleshooting notes · VPN and tunnels
MPLS L3VPN sites can't reach each other: route target and redistribution
Two customer sites in the same VRF each reach the provider, but not each other. The usual causes: the PE doesn't redistribute the customer routes into BGP, or the route targets don't match. Real output from Cisco IOS XE 17.18.
The symptom
A new L3VPN customer has two sites, CE1 and CE2, in VRF CUST. Both sites reach their PE and have a default route, but they can't reach each other's LANs.
Cause 1: the customer LAN never enters BGP
PE1 only redistributes connected routes into the VRF's BGP address family:
router bgp 65000
address-family ipv4 vrf CUST
redistribute connected
CE1's LAN is a static route in the VRF, so only the PE–CE link is advertised. Redistribute the static routes too:
PE1(config)# router bgp 65000
PE1(config-router)# address-family ipv4 vrf CUST
PE1(config-router-af)# redistribute static
Cause 2: the route targets don't match
vrf definition CUST
route-target export 65000:100
route-target import 65000:200
PE1 exports its routes with RT 65000:100, but PE2 only imports 65000:200. VPNv4 routes whose route target no local VRF imports are discarded, not just hidden: before the fix, PE2's BGP table had no routes from PE1 at all.
PE2(config)# vrf definition CUST
PE2(config-vrf)# no route-target import 65000:200
PE2(config-vrf)# route-target import 65000:100
Don't try to fix it by making the route distinguishers match. RDs only make prefixes unique; route targets control import. Different RDs per PE are normal.
Check it
PE1# show bgp vpnv4 unicast vrf CUST 10.10.2.0 | include Extended|label|from
Local, imported path from 65000:2:10.10.2.0/24 (global)
3.3.3.3 (metric 21) (via default) from 3.3.3.3 (3.3.3.3)
Extended Community: RT:65000:100
mpls labels in/out nolabel/19
CE1# traceroute 10.10.2.1 source loopback1 numeric
1 192.168.1.1 3 msec 1 msec 0 msec
2 10.0.12.2 [MPLS: Labels 17/19 Exp 0] 9 msec 1 msec 0 msec
3 192.168.2.1 [MPLS: Label 19 Exp 0] 3 msec 1 msec 0 msec
4 192.168.2.2 3 msec * 3 msec
The trace shows the whole L3VPN idea. At P1 the packet carries two labels: 17 (LDP, to reach PE2) on top of 19 (the VPN label PE2 assigned to the prefix). P1 pops the outer label, PE2 looks up label 19 in VRF CUST and forwards to CE2.
Practise this fault
This fault is in ENARSI Lab 28 of ENARSI Troubleshooting Labs: a ready-made GNS3 project where you find and fix it yourself, alongside the other faults in the ticket, with the tested solution.
Or start with 15 free labs (5 each from CCNA, ENARSI and ENCOR), by email:
We’ll email you the download links and occasional lab tips. Unsubscribe with one click, any time. Your address is never shared.