How To Troubleshoot The MPLS VPN............................................................................................................... 1
How To Troubleshoot The MPLS VPN............................................................................................................... 1
How To Troubleshoot The MPLS VPN............................................................................................................... 1
Table of Contents
How to Troubleshoot the MPLS VPN...............................................................................................................1 Introduction.............................................................................................................................................1 Prerequisites............................................................................................................................................1 Requirements....................................................................................................................................1 Components Used .............................................................................................................................1 Conventions......................................................................................................................................2 Troubleshooting VRF Configurations....................................................................................................2 show ip vrf [vrfname]....................................................................................................................2 show ip vrf [{detail | interfaces}] vrfname....................................................................................2 Routing Information...............................................................................................................................2 Routing Table...................................................................................................................................3 BGP..................................................................................................................................................3 PECE Routing Protocol.................................................................................................................3 Labels...............................................................................................................................................4 Test...................................................................................................................................................6 NetPro Discussion Forums Featured Conversations...........................................................................6 Related Information................................................................................................................................6
Introduction
This document shows you how to troubleshoot the Configuring a Basic MPLS VPN document. We recommend you read this sample configuration and view the network diagram before you use this document. Configuring a Basic MPLS VPN shows a fully functional MPLS backbone network which means provider edge (PE) routers are able to reach each other through the backbone. Refer to the MPLS Verification and Troubleshooting Support Page for information on troubleshooting an MPLS network. Before establishing an MPLS VPN, you must be able to ping PE router A (10.10.10.4) from PE router B (10.10.10.6) and viceversa. Remember that VPN routing/forwarding instance (VRF) names are case sensitive, for example, Customer_A is not the same as customer_a.
Prerequisites
Requirements
Readers of this document should be familiar with: Configuring a Basic MPLS VPN
Components Used
This document is not restricted to specific software and hardware versions. The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.
Conventions
For more information on document conventions, refer to the Cisco Technical Tips Conventions.
This command allows you to verify: The configuration of VRFs (and their names). That each routedistinguisher (RD) is the same at each concerned PE.
Protocol up up up
These commands allow you to verify: That connected addresses are not in the global routing table. The routing attributes of each VRF. What is exported on one side should be imported somewhere else. The interface status (and IP addresses) of interfaces.
Routing Information
Use the same commands you use to verify the global routing table with the extensions shown in this section to verify routing tables or routing protocol databases. Cisco How to Troubleshoot the MPLS VPN
Routing Table
To check the routing table, Add the vrf [vrfname] extension to the show ip route command to verify the routing table, as shown here:
Pescara# show ip route vrf Customer_A Codes: C connected, S static, I IGRP, R RIP, M mobile, B BGP D EIGRP, EX EIGRP external, O OSPF, IA OSPF inter area N1 OSPF NSSA external type 1, N2 OSPF NSSA external type 2 E1 OSPF external type 1, E2 OSPF external type 2, E EGP i ISIS, L1 ISIS level1, L2 ISIS level2, ia ISIS inter area * candidate default, U peruser static route, o ODR P periodic downloaded static route Gateway of last resort is not set B B C 200.0.6.0/24 [200/0] via 10.10.10.6, 00:42:14 200.1.6.0/24 [200/0] via 10.10.10.6, 00:42:14 200.0.4.0/24 is directly connected, Loopback101
You can also use the show ip route vrf Customer_A 1.2.3.4 command to verify the destination for a particular address.
BGP
Border Gateway Protocol (BGP) is used between the PE routers and is necessary for intersite connectivity. In this example, we use internal BGP (iBGP). You can also use external BGP (eBGP) as an external routing protocol for PECE route propagation. You can use these commands to troubleshoot BGP: show ip bgp neighbors show ip bgp vpnv4 all (or show ip bgp vpnv4 vrf [VRF name]) show ip bgp vpnv4 vrf VRF name tags (this command is VPN/MPLS specific) show ip bgp vpnv4 vrf VRF name A.B.C.D For example:
Pescara# show ip bgp vpnv4 vrf Customer_A BGP table version is 40, local router ID is 10.10.10.4 Status codes: s suppressed, d damped, h history, * valid, > best, i internal Origin codes: i IGP, e EGP, ? incomplete Network Next Hop Metric LocPrf Weight Route Distinguisher: 100:101 (default for vrf Customer_A) *>i200.0.6.0 10.10.10.6 0 100 0 *> 200.0.4.0 0.0.0.0 0 32768 *>i200.1.6.0 10.10.10.6 0 100 0 Path ? ? ?
Refer to the BGP Support Pages for more information on troubleshooting BGP issues.
Use the show ip rip database vrf [VRF name] command if you use Routing Information Protocol (RIP). For example:
Alcazaba# show ip rip database vrf vrf101 0.0.0.0/0 autosummary 0.0.0.0/0 [2] via 150.150.0.2, 00:00:12, Ethernet1/1 6.0.0.0/8 autosummary 6.6.6.6/32 redistributed [1] via 223.0.0.21, 7.0.0.0/8 autosummary 7.7.7.0/24 [1] via 150.150.0.2, 00:00:12, Ethernet1/1 10.0.0.0/8 autosummary 10.0.0.0/8 redistributed [1] via 125.2.2.2, 10.0.0.0/16 [1] via 150.150.0.2, 00:00:12, Ethernet1/1 10.200.8.0/22
Use the show ip ospf [processid areaid] database command and specify the correct process number if you use OSPF. For example:
Alcazaba# show ip ospf 2 database OSPF Router with ID (222.0.0.10) (Process ID 2) Router Link States (Area 1) Link ID 222.0.0.1 222.0.0.10 ADV Router 222.0.0.1 222.0.0.10 Age 1364 1363 Seq# Checksum Link count 0x80000013 0x7369 3 0x80000002 0xFEFE 2
Net Link States (Area 1) Link ID 150.150.0.1 ADV Router 222.0.0.10 Age 1363 Seq# Checksum 0x80000001 0xEC6D
Summary Net Link States (Area 1) Link ID 6.6.6.6 69.69.0.0 222.0.0.3 222.0.0.30 ADV Router 222.0.0.10 222.0.0.10 222.0.0.10 222.0.0.10 Age 1328 1268 1328 1268 Seq# 0x80000001 0x80000001 0x80000001 0x80000001 Checksum 0x4967 0x2427 0xEEF7 0x7B5A
This command allows you to verify: If the routing table is correct (from a customer point of view), or what is missing from the routing table. That BGP is up and working (or you can see which neighbor is missing).
Labels
MPLS VPN uses a twolevel label stack. One of the labels is used to identify the VRF and is set up between the two PEs. The other label (on the top of the stack) is the "backbone" label, set up by the standard MPLS network. You can use the traceroute VRF [vrfname] A.B.C.B command to verify transport labels. Cisco How to Troubleshoot the MPLS VPN
Note: This command only works with a MPLSaware traceroute, if the backbone routers are configured to propagate and generate IP Time to Live (TTL) information. Refer to the documentation on the mpls ip propagatettl command for more information.
Pesaro# traceroute vrf Customer_B 200.0.4.1 Type escape sequence to abort. Tracing the route to 200.0.4.1 1 10.1.1.21 [MPLS: Labels 25/28 Exp 0] 464 msec 280 msec 308 msec 2 10.1.1.5 [MPLS: Labels 22/28 Exp 0] 236 msec 572 msec 228 msec 3 200.0.4.1 108 msec * 100 msec
The absence of 10.1.1.14 in this traceroute is normal due to the MPLS/VPN architecture. You can use the show ip bgp vpnv4 all tags command to obtain more precise output, like the labels table for a particular VRF, for example:
Pescara# show ip bgp vpnv4 all tags Network Next Hop In tag/Out tag Route Distinguisher: 100:101 (Customer_A) 200.0.6.0 10.10.10.6 notag/28 200.0.4.0 0.0.0.0 16/aggregate(Customer_A) 200.1.6.0 10.10.10.6 notag/29 Route Distinguisher: 100:102 (Customer_B) 200.0.6.0 10.10.10.6 notag/30 200.0.4.0 0.0.0.0 28/aggregate(Customer_B)
This command allows you to verify: That labels are effectively used. That a stack of (at least) two labels is used for VPN destinations.
Test
You can use the ping command to verify that the VRF works, but if you are on a PE router, you must indicate the specific VRF name.
Pescara# ping vrf Customer_A 200.0.6.1 Type escape sequence to abort. Sending 5, 100byte ICMP Echos to 200.0.6.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), roundtrip min/avg/max = 176/264/576 ms
Related Information
MPLS Support Page IP Routing Support Page Technical Support Cisco Systems
All contents are Copyright 19922004 Cisco Systems, Inc. All rights reserved. Important Notices and Privacy Statement.