ATM and Layer 3 Switch Router Troubleshooting Guide, 12.1(12c)E
Troubleshooting Tag and MPLS Switching Connections

Table of Contents

Troubleshooting Tag and MPLS Switching Connections
Tag Switching Overview
Troubleshooting Tag Switching Example
Initial Troubleshooting of Tag Switching
Troubleshooting TDP Neighbors
Troubleshooting Tag Switching on VP Tunnels
Troubleshooting Tag Switching Using debug Commands
MPLS Overview
Troubleshooting MPLS Connections
Troubleshooting MPLS VPN
Troubleshooting MPLS ATM Connections
Debugging MPLS

Troubleshooting Tag and MPLS Switching Connections


This chapter provides troubleshooting information for connectivity and performance problems in tag switching and MPLS Label Distribution Protocol (LDP) environments. For more information on tag switching and MPLS, refer to the "Configuring Tag Switching and MPLS" chapter in the ATM Switch Router Software Configuration Guide.

Before you begin, make sure that all physical port connections are working correctly. See "Troubleshooting Switch Router ATM Interface Connections."

This chapter contains the following sections:

Tag Switching Overview

Tag switching is a high-performance packet-forwarding technology that assigns tags to multiprotocol frames for transport across packet-based or cell-based networks.

In conventional Layer 3 forwarding, as a packet traverses the network, each router extracts forwarding information from the Layer 3 header. Header analysis is repeated at each router (hop) through which the packet passes.

In a tag switching network, the Layer 3 header is analyzed just once. It is then mapped into a short, fixed-length tag. At each hop, the forwarding decision is made by looking at the value of the tag only; there is no need to reanalyze the Layer 3 header. Because the tag is a fixed-length, unstructured value, looking it up is fast and simple.

A tag switching network consists of tag edge routers and tag switch routers, as shown in Figure 8-1. Tag edge routers are located at the edge of a tag switching network. They use standard routing protocols—such as Open Shortest Path First (OSPF)—to create routing tables that identify routes through the network. Based on the routing tables, tag edge routers use the Tag Distribution Protocol (TDP) to apply and distribute tags to other tag edge routers or tag switch routers. Tag switch routers are located at the core of a tag switching network. They receive TDP information from the tag edge routers and build their own forwarding database. Tag switch routers then switch the packets based on the tags only (without looking at the Layer 3 header).

How Tag Switching Works

When a tag edge router at the entry point of a tag switching network receives a packet for forwarding the following occurs:

1. The router analyzes the network layer header and performs any applicable network layer services such as security, accounting, or quality of service (QoS) classification.

2. The router chooses a route for the packet based on the information in its routing table, applies a tag, and forwards the packet to the next-hop tag switch router.

3. The tag switch router receives the tagged packet and switches the packet from switch router to switch router based on the tag only. The switch routers do not reanalyze the network layer header; they look only at the short, fixed-length tag.

4. The packet reaches the tag edge router at the exit point of the tag switched network, where the tag is removed and the packet is delivered.

Troubleshooting Tag Switching Example

In the example network in Figure 8-1, the primary campus network backbone is made up of two ATM switch routers connected to two Cisco routers:

  • AdminFl1Rt1—Tag switching router located in the administration building
  • AdminFl1Ls1—Tag switching switch router located in the administration building
  • EngFl1Ls1—Tag switching switch router located in the engineering building
  • EngFl1Rt1—Tag switching router located in the engineering building

Figure 8-1   Tag Switching Example Network


This network example is used to describe the troubleshooting examples in the rest of this chapter.

For detailed configuration information about tag switching, refer to the "Configuring Tag Switching" chapter in the ATM Switch Router Software Configuration Guide .

Initial Troubleshooting of Tag Switching

This section describes initial troubleshooting steps that you should perform when beginning to troubleshoot a tag switching connection.

At the switch router, use the following commands to check the tag switching configuration:

Command  Purpose 

show tag-switching tdp discovery

Confirms the TDP identifier for the tag switching switch router or router that might be malfunctioning.

ping tdp_id_of_neighbor

Confirms that each tag switching switch router or router can connect to the TDP identifier of its neighbor.

show running-config

Confirms that tag switching is enabled on the switch router.

show tag-switching interfaces

Confirms the tag switching configuration on the ATM interface.

show tag-switching interfaces detail

Confirms the tag switching VPI1 range on an interface.

show interfaces loopback 0

Confirms the loopback interface 0 configuration.

show ip ospf

Confirms the OSPF configuration.

VPI = virtual path identifier

Follow these steps to confirm the TDP identifier for the routers or tag switching switch routers that might be malfunctioning:


Step 1   Enter the show tag-switching tdp discovery command to determine the tag discovery protocol identifier of the tag switching switch router.

AdminFl1Ls1# show tag-switching tdp discovery
Local TDP Identifier:
    172.20.40.161:0
TDP Discovery Sources:
Interfaces:
       ATM1/0/0: xmit/recv
            TDP Id: 150.0.0.0:1
        ATM3/0/0.10: xmit/recv
            TDP Id: 160.0.0.0:1
AdminFl1Ls1#

Step 2   Check the Local TDP Identifier field. This field indicates the TDP identifier for the local tag switching switch router or router for this session.

Step 3   Check the Interfaces field. This field displays the interfaces engaging in TDP discovery activity:

  • xmit indicates that the interface is transmitting TDP discovery hello packets.
  • recv indicates that the interface is receiving TDP discovery hello packets.

If either xmit or recv do not appear, refer to the "Configuring Tag Switching" chapter in the
ATM Switch Router Software Configuration Guide .





Follow these steps to ping each tag switching switch router or router. This process confirms that each can connect to the TDP identifier of the neighbor:


Step 1   Enter the ping command to confirm the connection to the TDP of the neighbor.

AdminFl1Ls1# ping
Protocol [ip]: 
Target IP address: 180.0.0.0 
Repeat count [5]: 
Datagram size [100]: 
Timeout in seconds [2]: 
Extended commands [n]: 
Source address or interface: 140.0.0.0 
Type of service [0]: 
Set DF bit in IP header? [no]: 
Validate reply data? [no]: 
Data pattern [0xABCD]: 
Loose, Strict, Record, Timestamp, Verbose[none]: 
Sweep range of sizes [n]: 
Type escape sequence to abort. 
Sending 5, 100-byte ICMP Echoes to 180.0.0.0, timeout is 2 seconds: 
!!!!! 
Success rate is 100 percent (5/5), round-trip min/avg/max = 184/398/1188 ms
AdminFl1Ls1#

Step 2   Check the Success rate field. This field should read "100 percent". If it does not, continue with the following troubleshooting steps.





Follow these steps to confirm that tag switching is configured on the switch router and its interfaces:


Step 1   Enter the show running-config command to confirm that tag switching is enabled on the ATM switch router.

AdminFl1Ls1# show running-config
Building configuration...
Current configuration:
!
version 11.3
no service pad

<Information deleted>

!
interface ATM0/1/1
 ip unnumbered Loopback0
 tag-switching ip
!
interface ATM1/0/0
 ip address 150.0.0.0 255.255.255.224
 tag-switching ip

<Information deleted>

!
end
AdminFl1Ls1# 

Step 2   Check the tag switching switch router interface to confirm that tag switching is enabled on the connections.





For detailed interface configuration information about tag switching, refer to the "Configuring Tag Switching" chapter in the ATM Switch Router Software Configuration Guide .

The neighbor information branch can have information about all TDP neighbors or can be limited to the neighbor with a specific IP address, or TDP identifier, or to TDP neighbors known to be accessible over a specific interface.

Follow these steps to display the status of TDP sessions:


Step 1   Enter the show tag-switching tdp neighbor command to display the status of TDP sessions.

AdminFl1Ls1# show tag-switching tdp neighbor
Peer TDP Ident: 1.0.12.12:2; Local TDP Ident 1.0.11.11:2
        TCP connection: 1.0.12.12.11008 - 1.0.11.11.711
        State: Oper; PIEs sent/rcvd: 2199/2198; Downstream on demand
        Up time: 02:31:58
        TDP discovery sources:
          ATM0/0/1
Peer TDP Ident: 1.0.12.12:8; Local TDP Ident 1.0.11.11:7
        TCP connection: 1.0.12.12.11015 - 1.0.11.11.711
        State: Oper; PIEs sent/rcvd: 2119/2130; Downstream on demand
        Up time: 02:31:39
        TDP discovery sources:
          ATM0/1/0.19
Peer TDP Ident: 1.0.12.12:7; Local TDP Ident 1.0.11.11:6
        TCP connection: 1.0.12.12.11016 - 1.0.11.11.711
        State: Oper; PIEs sent/rcvd: 2120/2119; Downstream on demand
        Up time: 02:31:38
        TDP discovery sources:
          ATM0/1/0.18

Step 2   Check the Peer TDP Ident field. This field indicates the TDP identifier of the neighbor (peer device) for this session.

Step 3   Check the Local TDP Ident field. This field indicates the TDP identifier for the local tag switching switch router or router for this session.

Step 4   Check the TCP connection field. This field indicates the TCP connection used to support the TDP session. The format for displaying the TCP connection is peer IP address.peer port local IP address.local port.

Step 5   Check the PIEs sent/rcvd (Protocol Information Element sent or received) field. This field indicates the number of TDP PIEs sent to and received from the session peer device. The count includes the transmission and receipt of periodic keepalive PIEs, which are required for maintenance of the TDP session.

Step 6   Check the Up time field. This field indicates the length of time the TDP session has existed.





Follow these steps to confirm the tag switching interface configuration on the switch router:


Step 1   Enter the show tag-switching interfaces command to confirm the configuration and connection of the tag switching interfaces.

AdminFl1Ls1# show tag-switching interfaces
Interface              IP    Tunnel   Operational
ATM1/0/0               Yes   No       Yes
ATM3/0/0               Yes   No       Yes
AdminFl1Ls1#

Step 2   Check the IP field. This field indicates whether the interface is configured to tag IP packets.

Step 3   Check the Operational field. This field shows whether the packets are being tagged.

Step 4   Enter the show tag-switching interfaces detail command to confirm the tag switching VPI range on an interface.

AdminFl1Ls1# show tag-switching interfaces detail
Interface ATM1/0/0:
        IP tagging enabled
        TSP Tunnel tagging not enabled
        Tagging not operational
        MTU = 4470
        ATM tagging: Tag VPI = 1, Control VC = 0/32
Interface ATM3/0/0:
        IP tagging enabled
        TSP Tunnel tagging not enabled
        Tagging not operational
        MTU = 4470
              ATM tagging: Tag VPI range = 5 - 6, Control VC = 6/32
<Additional text omitted.>

Step 5   Check the IP tagging enabled field. This field indicates whether tag switching is enabled on this interface.

Step 6   Check the ATM tagging field. This field indicates the VPI range of the interface.

For detailed interface configuration information about tag switching, refer to the "Configuring Tag Switching" chapter in the ATM Switch Router Software Configuration Guide .





Follow these steps to confirm the loopback interface 0 configuration on the switch router:


Step 1   Enter the show interfaces loopback 0 command to confirm the loopback interface 0 configuration on the switch router.

AdminFl1Ls1# show interfaces loopback 0
Loopback0 is up, line protocol is up
  Hardware is Loopback
Internet address is 2.2.2.2/24
  MTU 1500 bytes, BW 8000000 Kbit, DLY 5000 usec, rely 255/255, load 1/255
  Encapsulation LOOPBACK, loopback not set, keepalive set (10 sec)
  Last input 00:00:03, output never, output hang never
  Last clearing of "show interface" counters never
  Queueing strategy: fifo
  Output queue 0/0, 0 drops; input queue 0/75, 0 drops
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     0 packets input, 0 bytes, 0 no buffer
     Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
     73 packets output, 0 bytes, 0 underruns
     0 output errors, 0 collisions, 0 interface resets
     0 output buffer failures, 0 output buffers swapped out
AdminFl1Ls1#

Step 2   Check the Loopback 0 status field. It should be up.

Step 3   Check the line protocol field. It should be up.

Step 4   Check the Internet address field. It should display the IP address of the loopback interface on this switch router.





For detailed information, refer to the "Configuring Tag Switching" chapter in the
ATM Switch Router Software Configuration Guide .

Follow these steps to confirm the OSPF configuration on the switch router:


Step 1   Enter the show ip ospf command to confirm the OSPF configuration of the switch router.

AdminFl1Ls1# show ip ospf
 Routing Process "ospf 10000" with ID 150.0.0.0
 Supports only single TOS(TOS0) routes
 SPF schedule delay 5 secs, Hold time between two SPFs 10 secs
 Number of DCbitless external LSA 0
 Number of DoNotAge external LSA 0
 Number of areas in this router is 1. 1 normal 0 stub 0 nssa
    Area BACKBONE(0) (Inactive)
        Number of interfaces in this area is 3
        Area has no authentication
        SPF algorithm executed 2 times
        Area ranges are
        Link State Update Interval is 00:30:00 and due in 00:28:44
        Link State Age Interval is 00:20:00 and due in 00:18:44
        Number of DCbitless LSA 0
        Number of indication LSA 0
        Number of DoNotAge LSA 0
 
AdminFl1Ls1#

Step 2   Check the Routing Process field. The ospf field and ID fields should match the configured numbers. If they do not, refer to the "Configuring Tag Switching" chapter in the
ATM Switch Router Software Configuration Guide .





Troubleshooting TDP Neighbors

This section describes how to troubleshoot TDP control channel VPI and virtual channel identifier (VCI).

Although not necessary for most configurations, you can change the default VPI and VCI of the TDP control channel if you want to use a nondefault value.


Note   The default TDP control channel is on VPI 0 and VCI 32. TDP control channels exchange TDP hellos and PIEs to establish two-way TDP sessions. Tag virtual channels (TVCs) are created by the exchange of PIEs through TDP control circuit.

Use the following command to check the tag switching TDP neighbor connections:

Command  Purpose 

show tag-switching tdp neighbor

Confirms the tag switching TDP neighbor connection.

Follow these steps to check the tag switching TDP neighbor connections:


Step 1   Enter the show tag-switching tdp neighbor command to confirm the tag switching TDP neighbor connections.

Step 2   Check the peer TDP identifier field. This field indicates the TDP identifier of the neighbor (peer device) for this session.

Step 3   Check the local TDP identifier field. This field indicates the TDP identifier for the local tag switching switch router or router for this session.

Step 4   Check the TCP connection field. This field indicates the TCP connection used to support the TDP session. The format for displaying the TCP connection is peer IP address.peer port local IP address.

Step 5   Check the PIEs sent/rcvd (sent or received) field. This field indicates the number of TDP PIEs sent to and received from the session peer device. The count includes the transmission and receipt of periodic keepalive PIEs, which are required for maintenance of the TDP session.

Step 6   Check the Up time field. This field indicates the length of time the TDP session has existed.





Follow these steps to confirm the VPI and VCI configuration of the tag switching interface on the switch router interface:


Step 1   Enter the show tag-switching interfaces atm card/subcard/port detail command to confirm the configuration and connection of the tag switching interface VPI and VCI.

AdminFl1Ls1# show tag-switching interfaces atm 0/0/1 detail
Interface ATM0/0/1:
IP tagging enabled
        TSP Tunnel tagging not enabled
Tagging operational
        MTU = 8940
ATM tagging: Tag VPI range = 2 - 5, Control VC = 6/32

AdminFl1Ls1# 

Step 2   Check the IP tagging field. This field shows whether the interface is configured to tag IP packets.

Step 3   Check the Tagging operational field. This field shows whether the packets are being tagged.

Step 4   Check the ATM tagging field. This field indicates the VPI range of the interface.





For detailed information, refer to the "Configuring Tag Switching" chapter in the
ATM Switch Router Software Configuration Guide .

Troubleshooting Tag Switching on VP Tunnels

This section describes how to troubleshoot a tag switching connection configured on a VP tunnel.

For detailed information, refer to the "Configuring Tag Switching" chapter in the
ATM Switch Router Software Configuration Guide .

To confirm VP tunnel configuration of tag switching, perform the following tasks in EXEC mode:

Command  Purpose 

show atm vp

Confirms the VP tunnel configuration on an interface.

show tag-switching tsp-tunnels [ip-address | all | head | middle | tail | remote] [interface-num] [brief]

Confirms the TSP1 tunnel status and configuration.

TSP = tag switching path

Follow these steps to confirm the VP tunnel configuration of tag switching:


Step 1   Enter the show atm vp command to confirm VP tunnel configuration.

EngFl1Ls1# show atm vp
Interface    VPI    Type  X-Interface     X-VPI     Status
ATM4/0/0     51      PVP     ATM1/1/0     101       UP
ATM1/1/0     101     PVP     ATM3/0/0     51        UP
EngFl1Ls1#

Step 2   Check the Status field. The PVP status should be UP. If it is not, check the VP tunnel configuration. Refer to "Configuring Tag Switching" chapter in the ATM  Switch Router Software Configuration Guide.





Follow these steps to confirm the tag switching VP tunnel configuration:


Step 1   Enter the show tag-switching interfaces command to confirm VP tunnel configuration on each router or switch router in the network. The following example starts at the head end:

EngFl1Rt1# show tag-switching tsp-tunnels
Signalling Summary:
            TSP Tunnels Process:            running
            RSVP Process:                   running
            Forwarding:                     enabled
TUNNEL ID               DESTINATION      STATUS           CONNECTION
10.106.0.6 0            10.2.0.12        up               up

EngFl1Rt1# 

Step 2   Enter the show tag-switching tsp-tunnels command to confirm VP tunnel configuration at the middle switch routers or routers:

AdminFl1Ls1# show tag-switching tsp-tunnels
Signalling Summary:
            TSP Tunnels Process:            running
            RSVP Process:                   running
            Forwarding:                     enabled
TUNNEL ID               DESTINATION      STATUS           CONNECTION
10.106.0.6 0            10.2.0.12        up               up

AdminFl1Ls1# 

Step 3   Enter the show tag-switching tsp-tunnels command to confirm VP tunnel configuration at the tail-end switch router or router:

AdminFl1Rt1# show tag-switching tsp-tunnels
Signalling Summary:
TSP Tunnels Process:            running
RSVP Process:                   running
Forwarding:                     enabled
TUNNEL ID               DESTINATION      STATUS           CONNECTION
10.106.0.6 0            10.2.0.12        up               up

AdminFl1Rt1# 

Step 4   Check whether the TSP Tunnels Process is running. If it is not, enter the tag-switching tsp-tunnels command to enable the process globally on the switch router or router.

Step 5   Check whether the RSVP Process is running. If it is not, enter the tag-switching tsp-tunnels command on the interfaces used by the tunnel to enable the process on the interface.

Step 6   If this is a router connection, check whether Forwarding is enabled on the router. If it is not, enter the ip cef distributed switch command or ip cef switch command to enable IP Cisco Express Forwarding (CEF) globally on the router.

Step 7   Enter the show tag-switching interfaces command to check the VP tunnel interface configuration at each switch router or router in the tunnel. The following example starts at the head end:

EngFl1Rt1# show tag-switching interfaces
          Interface              IP    Tunnel   Operational
          ATM4/0/0               Yes   No       Yes
          ATM1/1/0               Yes   No       Yes
EngFl1Rt1#

Step 8   Enter the show tag-switching interfaces command to check the VP tunnel interface configuration at the middle switch router or routers:

AdminFl1Ls1# show tag-switching interfaces
          Interface              IP    Tunnel   Operational
          ATM3/0/0               Yes   Yes      Yes
          ATM1/0/0               Yes   Yes      Yes
AdminFl1Ls1#

Step 9   Enter the show tag-switching interfaces command to confirm VP tunnel configuration at the tail end switch router or router:

AdminFl1Rt1# show tag-switching interfaces
          Interface              IP    Tunnel   Operational
          ATM0/0                 Yes   Yes      Yes
          Ethernet 2/3           Yes   Yes      Yes
AdminFl1Rt1#

Step 10   Check whether the interfaces used by the tunnel have "Yes" in the Tunnel column. If they do not, use the tag-switching tsp-tunnels command on the interfaces used by the tunnel to enable TSP tunnels, and refer to the "Configuring Tag Switching" chapter in the ATM Switch Router Software Configuration Guide. Verify that the interfaces used by the tunnel are operational. The interfaces should have "Yes" in the Operational column.

If they do not, check the interface configuration and refer to the "Configuring Tag Switching" chapter in the ATM Switch Router Software Configuration Guide .





Troubleshooting Tag Switching Using debug Commands

This section describes debug commands that you can use to troubleshoot tag switching connections on a switch router.

Use the following commands to debug tag switching connections on a switch router:

Command  Purpose 

debug tag-switching adjacency

Debugs tag switching adjacency database events.

debug tag-switching atm-tdp {api | routes | states | failure}

Debugs tag switching ATM Tag Distribution Protocol (TDP) events.

debug tag-switching packets {atm card/subcard/port | atm-p card/subcard/port | cbr card/subcard/port | ethernet card/subcard/port | loopback 0 | null}

Debugs tag switching packets.

debug tag-switching tdp {advertisements | bindings | directed-neighbors |
pies [received | sent] | session [io | state] | transport [connections | events | timers]}

Debugs TDP switching events.

debug tag-switching tfib {cef | enc | state | struct | tsp}

Debugs tag switching TFIB1.

debug tag-switching traffic-eng {events | interfaces | metrics | routing-table}

Debugs tag switching traffic engineering.

debug tag-switching tsp-tunnels {events | signalling | tagging}

Debugs tag switching TSP tunnels.

no debug all

Turns off all debugging.

TFIB = Tag Forwarding Information Base

For detailed interface configuration information, refer to the "Configuring Tag Switching" chapter in the ATM Switch Router Software Configuration Guide .

MPLS Overview

MPLS Label Distribution Protocol (LDP), as standardized by the Internet Engineering Task Force (IETF), and as enabled by Cisco IOS software, allows the construction of highly scalable and flexible IP Virtual Private Networks (VPNs) that support multiple levels of service.

This section includes the following:

From an historical and functional standpoint, LDP is a superset of Cisco's prestandard Tag Distribution Protocol (TDP), which also supports MPLS forwarding along normally routed paths. For those features supported by both LDP and TDP the pattern of protocol exchanges between network routing platforms is identical. The differences between LDP and TDP for those features supported by both protocols are largely embedded in their respective implementation details, such as the encoding of protocol messages.

Table 8-1 provides a conversion from the tag switching designations to the equivalent MPLS designations.

Table 8-1   Equivalency Table for Tag Switching and MPLS Terms

Old Tag Switching Terminology  New MPLS IETF Terminology 

Tag Switching

MPLS, Multiprotocol Label Switching

Tag (short for Tag Switching)

MPLS

Tag (item or packet)

Label

TDP (Tag Distribution Protocol)

LDP (Label Distribution Protocol)

Cisco TDP and LDP (MPLS Label Distribution Protocol) are nearly identical in function, but use incompatible message formats and some different procedures.

Tag Switched

Label Switched

TFIB (Tag Forwarding Information Base)

LFIB (Label Forwarding Information Base)

TSR (Tag Switching Router)

LSR (Label Switching Router)

TSC (Tag Switch Controller)

LSC (Label Switch Controller)

ATM-TSR (ATM Tag Switch Router)

ATM-LSR (ATM Label Switch Router, such as the Cisco BPX 8650 switch)

TVC (Tag VC, Tag Virtual Circuit)

LVC (Label VC, Label Virtual Circuit)

TSP (Tag Switch Path)

LSP (Label Switch Path)

XTag ATM (extended Tag ATM port)

XmplsATM (extended MPLS ATM port)

How MPLS Works

As a packet traverses the network in conventional Layer 3 forwarding mechanisms, each router extracts from the Layer 3 header all the information needed to forward the packet. This information is then used as an index for a routing table lookup to determine the next hop for the packet.

In the most common case, the only needed field in the header is the destination address. But, in some cases, other fields might also be needed. This means at each router, as the packet traverses the network, all the header analysis must be independently completed. Additionally, a complicated table lookup must be done at each router.

In label switching, the analysis of the Layer 3 header is done only once, when the packet enters the network at the ingress LSR (label switching router). This LSR reads the Layer 3 header and inserts a small fixed-format label in front of each data packet. For ATM MPLS connections the label used is the VPI/VCI of the virtual circuit.

Many different headers can map to the same label, as long as those headers always result in the same choice of the next hop. A label represents an FEC (forwarding equivalence class) or a set of packets which might be of different types, but are the same with respect to the forwarding function.

The selection of the label to be inserted is not based exclusively on the contents of the Layer 3 packet header. Forwarding decisions might be based on routing policy.

Once a label is assigned, and added at the front of the Layer 3 packet, it is carried across the network as part of the packet. The labels are swapped at each LSR and forwarding decisions are made using the LFIB (label forwarding information base).

The 32-bit MPLS label is located after the Layer 2, header and before the IP header. The MPLS label contains the following fields:

  • Label field (20-bits)—Carries the actual value of the MPLS label.
  • CoS field (3-bits)—Can affect the queuing and discard algorithms applied to the packet as it is transmitted through the network.
  • Stack (S) field (1-bit)—Supports a hierarchical label stack.
  • TTL (time-to-live) field (8-bits)—Provides conventional IP TTL functionality.

This entire MPLS label is also called a "Shim" header.

Distribution of Label Bindings

Each label switching router (LSR) in the network makes an independent, local decision as to which label value to use to represent an FEC. This association is known as a label binding. Each LSR informs its neighbors of the label bindings it has made. This awareness of label bindings by neighboring routers and switches facilitates the following protocols:

  • Tag Distribution Protocol (TDP)—Used to support MPLS forwarding along normally routed paths
  • Resource Reservation Protocol (RSVP)—Used to support MPLS traffic engineering
  • Border Gateway Protocol (BGP)—Used to support MPLS virtual private networks (VPNs)

The MPLS LDP (label distribution protocol) provides a standard methodology for hop-by-hop, or dynamic label, distribution in an MPLS network by assigning labels to routes that have been chosen by the underlying Interior Gateway Protocol (IGP) routing protocols. The resulting labeled paths, called label switch paths or LSPs, forward label traffic across an MPLS backbone to particular destinations. These capabilities enable service providers to implement Cisco MPLS-based IP VPNs and IP+ATM services across multivendor MPLS networks.

LDP allows label switching routers (LSRs) to request, distribute, and release label prefix binding information to peer routers in a network. LDP enables LSRs to discover potential peers, and to establish LDP sessions with those peers to order to exchange label binding information.

An LDP label binding is an association between a destination prefix and a label. The label used in a label binding is allocated from a set of possible labels called a label space.

LDP supports two types of label spaces:

  • Interface-specific—An interface-specific label space uses interface resources for labels. For example, LC-ATM interfaces use VPIs/VCIs for labels. Depending on its configuration, an LDP platform may support zero, one, or more interface-specific label spaces.
  • Platform-wide—An LDP platform supports a single platform-wide label space for use by interfaces that can share the same labels. For Cisco platforms, all interface types except LC-ATM use the platform-wide label space.

Figure 8-2 shows the summary route propagation between four LSRs in an MPLS network.


Figure 8-2   Summary Route Propagation Between LSRs


Figure 8-2 shows the LDP discover mechanism used to periodically transmit LDP Hello messages, and to signal it is ready to advertise label bindings. The LSR sends the LDP Hello messages as UDP packets to the well known LDP port (646).

The Hello messages carry the LDP identifier, or "ID", of the label space that the sending LSR wants to advertise, as well as other information. In Figure 8-2, SalesLSR4 sends a hello packet with the VPI and VCI used to connect to FEC 172.68.0.0. Each LSR then propagates that FEC, replacing the VPI and VCI used to connect to its ingress interface.

When a labeled packet is being sent from an LSR to its neighbor LSR, the label value carried by the packet is the label value that the egress LSR assigned to represent the FEC of the packet. This causes the label value (VPI/VCI) to be swapped as the packet traverses the network.

Figure 8-3 shows the packet transmission and LFIB table look up process used between a source and destination over an ATM MPLS network.


Figure 8-3   ATM MPLS LFIB Table Update


In Figure 8-3, AdminLSR1 is the ingress point for packets from the router AdminRt1. When the LSR receives the packet, it determines the FEC and determines the LSP to use by looking in the LFIB table.


Note   The LFIB table is propagated using the LDP discover mechanism shown in Figure 8-2.

AdminLSR1 then adds the label (VPI/VCI) 65,180 to the packet, and forwards the packet out ATM interface 0/1/0.

The intermediate LSR (NetLSR2) takes the labeled packet, and pairs the incoming interface and label, using a lookup table to determine the outgoing interface and label. After swapping the incoming label with the new outgoing label, the packet is forwarded out to the next LSR.

The label swapping process is continued at each LSR, up to the last LSR. The egress LSR performs the same look up as the intermediate LSRs, but the outgoing label is stripped off and the packet is either routed, or switched using a Layer 3 protocol to its destination.

MPLS Example

This section provides a description of a packet being transmitted across an MLPS enabled network, and of the process used to switch the packets.

When a packet is received at an MPLS ingress interface, the interface driver uses the IDB (interface descriptor block) to start the following MPLS processes on the packet:

  • Packet encapsulation is checked and verified
  • The packet is checked for QoS or policing limitations.
  • Label and ingress interface data are used to check the TFIB trying to determine the egress label and interface number.

  • Note   If an MPLS header and label are not found in the packet, the lookup process reverts to the Layer 3 process. See "Troubleshooting Layer 3 Network Connections."

  • The TTL field is updated and the label is either replaced with the next-hop label or, if this is the MPLS edge exit LSR, is deleted ("popped") from the stack.
  • The packet is transmitted to the next hop.

Figure 8-4 shows a packet as it traverses a network from its source on network 130.0.0.0 to its destination on network 180.0.0.0.


Figure 8-4   ATM MPLS Example Network Packet Transmission


The packet from network 130.0.0.0 enters router AdminRt1 at Ethernet interface 2/3 with a destination IP address on network 180.0.0.0. The router performs a standard routing table lookup and determines the packet should be routed out ATM interface 0/0 to the next hop interface 140.0.0.1 on interface ATM 1/0/0. By using CEF (Cisco Express Forwarding) the Layer 3 switched packet interface FIB (Forwarding Information Base) is queried and the next hop is determined to be reached through ATM MPLS interface 3/0/0. Prior to transmission to the next LSR, an MPLS label (or VPI/VCI) is appended to the packet just before the destination IP address.

From this point on, through the MPLS network, the only information that is checked by the successive LSRs is the label information in the packet. When the packet reaches the edge LSR, the MPLS label is "popped off" (deleted) the stack and subsequent switching is completed using Layer 3 protocols and standard routing practices.

Troubleshooting MPLS Connections

This section describes troubleshooting MPLS connections, and uses an OSPF sample configuration.

Before you start troubleshooting the MPLS connection, confirm that you have configured the following:

  • An IP address, and a routing protocol such as Open Shortest Path First (OSPF) or Intermediate System-to-Intermediate System (IS-IS).
  • Cisco Express Forwarding (CEF) or distributed CEF switching on all routers and ATM switch routers.
  • General Multiprotocol Label Switching (MPLS) or tag switching on all routers and ATM switch routers.
  • MPLS or tag switching on all required interfaces.

Troubleshooting MPLS interface connections is described in the following sections:

To troubleshoot MPLS interface configurations, use the following commands:

Command  Purpose 

show ip protocols

Shows the parameters and current state of the active routing protocol process.

show ip route

Shows the current state of the routing table.

show ip cef [summary]

Shows the entries in the Forwarding Information Base (FIB) table based on the IP address, to verify that CEF has the correct precedence value for the prefix.

show mpls interfaces

Shows the MPLS forwarding information.

show mpls ip binding

Shows the MPLS IP Label Information Base (LIB) table.

traceroute

Used to discover the routes that packets actually take when traveling to their destination

show mpls forwarding-table

Shows the MPLS Forwarding Information Base (FIB) table.

Figure 8-5 shows a customer VPN connection over an MPLS Fast Ethernet backbone connection.


Figure 8-5   ATM Switch Router Fast Ethernet MPLS VPN Example Network


In Figure 8-5, all of the routers and ATM switch routers have loopback 0 interfaces configured with an IP address. Each LSR uses these interfaces as the LDP router ID and LSR LDP ID. The display representation for an LDP ID uses the following form:

[LDP router ID] : [Local label space ID]

The LDP ID "222.2.1.1/32" is an example of a "ProvEdge1" loopback 0 interface. In this example, 111.0.1.1/30 is the IP address of the "ProvEdge1" interface to "8540-P" the provider switch router.

The MPLS example network shown in Figure 8-5 is used in the following examples of troubleshooting MPLS network connections.

Verifying CEF Switching

Follow these steps to troubleshoot CEF on the MPLS interface connections:


Step 1   Enter the show ip protocols command to confirm the protocol routes and MPLS networks, and all neighbors, are present.

8540-PE1# show ip protocols
Routing Protocol is "ospf 222"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Router ID 222.2.1.1
  It is an autonomous system boundary router
  Redistributing External Routes from,
    connected
  Number of areas in this router is 1. 1 normal 0 stub 0 nssa
  Maximum path: 4
  Routing for Networks:
    111.0.1.0 0.0.0.255 area 0
    111.0.2.0 0.0.0.255 area 0
    222.2.1.1 0.0.0.0 area 0
  Routing Information Sources:
    Gateway         Distance      Last Update
    222.2.1.1            110      01:35:09
    222.2.1.3            110      01:35:09
    222.2.1.2            110      01:35:09
  Distance: (default is 110)

Routing Protocol is "bgp 222"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  IGP synchronization is disabled
  Automatic route summarization is enabled
  Redistributing: connected
  Maximum path: 1
  Routing for Networks:
  Routing Information Sources:
    Gateway         Distance      Last Update
  Distance: external 20 internal 200 local 200

8540-PE1#

Step 2   Check the Routing for Networks field to verify the correct networks are configured and present. If they are not, reconfigure the network protocol.

Step 3   Check the Routing Information Sources field to see whether the correct neighbors are present in the table. The neighbors are the routing sources the Cisco IOS software uses to build its routing table. If the correct neighbor is not included, verify the interfaces are up and configured correctly.

Step 4   Enter the show ip route command to confirm the IP route addresses are in the routing table.

8540-P# show ip route 
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 - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     171.69.0.0/24 is subnetted, 1 subnets
S       171.69.1.0 is directly connected, Ethernet0
     222.2.1.0/32 is subnetted, 3 subnets
C       222.2.1.1 is directly connected, Loopback0
O       222.2.1.3 [110/2] via 111.0.1.2, 01:35:51, FastEthernet11/0/1
O       222.2.1.2 [110/3] via 111.0.1.2, 01:35:51, FastEthernet11/0/1
     172.20.0.0/24 is subnetted, 1 subnets
C       172.20.42.0 is directly connected, Ethernet0
     111.0.0.0/30 is subnetted, 2 subnets
C       111.0.1.0 is directly connected, FastEthernet11/0/1
O       111.0.1.16 [110/2] via 111.0.1.2, 01:35:52, FastEthernet11/0/1

Step 5   Verify the router(s) or route(s) are listed in the display. If they are not, check the routing protocol configuration.

Step 6   Enter the show ip cef summary command to display specific entries in the Forwarding Information Base (FIB), based on IP address information.

8540-P# show ip cef summary 
IP CEF with switching (Table Version 33), flags=0x0
  25 routes, 0 reresolve, 0 unresolved (0 old, 0 new), peak 1
  49 leaves, 54 nodes, 60080 bytes, 57 inserts, 8 invalidations
  0 load sharing elements, 0 bytes, 0 references
  universal per-destination load sharing algorithm, id D95A5EB6
  2 CEF resets, 0 revisions of existing leaves
  Resolution Timer: Exponential (currently 1s, peak 1s)
  0 in-place/0 aborted modifications
  refcounts:  1406 leaf, 1389 node

Adjacency Table has 9 adjacencies
  2 incomplete adjacencies

Verify the show ip cef command output does not display "%CEF not running" as shown in the following example.

Switch# show ip cef 
%CEF not running
Prefix              Next Hop             Interface
Switch#

If the CEF is not running, re-enable Cisco Express Forwarding using the ip cef global configuration command.

Enter the show ip cef command to display Prefix and Next Hop information.

8540-P# show ip cef 
Prefix              Next Hop             Interface
0.0.0.0/32          receive
4.4.4.0/24          attached             ATM9/0/0
4.4.4.0/32          receive
4.4.4.1/32          receive
4.4.4.255/32        receive
6.6.6.0/24          attached             ATM9/0/1
6.6.6.0/32          receive
6.6.6.1/32          receive
6.6.6.255/32        receive
11.0.0.0/8          4.4.4.2              ATM9/0/0
100.1.0.0/16        4.4.4.2              ATM9/0/0
111.0.1.0/30        attached             FastEthernet11/0/0
111.0.1.0/32        receive
111.0.1.1/32        111.0.1.1            FastEthernet11/0/0
111.0.1.2/32        receive
111.0.1.3/32        receive
111.0.1.16/30       attached             FastEthernet11/0/1
111.0.1.16/32       receive
111.0.1.17/32       receive
111.0.1.18/32       111.0.1.18           FastEthernet11/0/1
111.0.1.19/32       receive
171.69.1.0/24       attached             Ethernet0
Prefix              Next Hop             Interface
172.20.42.0/24      attached             Ethernet0
172.20.42.0/32      receive
172.20.42.123/32    receive
172.20.42.206/32    172.20.42.206        Ethernet0
172.20.42.255/32    receive
200.1.0.0/16        6.6.6.2              ATM9/0/1
222.2.1.1/32        111.0.1.1            FastEthernet11/0/0
222.2.1.2/32        111.0.1.18           FastEthernet11/0/1
222.2.1.3/32        receive
224.0.0.0/4         drop
224.0.0.0/24        receive
255.255.255.255/32  receive

The information displayed by entering the show ip cef command is built from the IP routing table, and resides on the route processor.

The following is an explanation of the information in the Next Hop column:

  • Attached—This is a directly connected interface subnet. For example, 10.85.40.0/24 is the IP subnet assigned to interface Fast Ethernet1/0/15 with a 24-bit mask.
  • Received—These entries are ARP entries for the directly connected interfaces. You will see three entries here for each directly connected interface. For example, prefix 10.85.40.254/32 is the IP address for interface Fast Ethernet 1/0/15. Prefix 10.85.40.0/32, using IP conventions means that this specific interface, combined with prefix 10.85.40.255/32, is the broadcast address.
  • xxxx.yyyy.zzzz.aaaa—These IP addresses belong to either the end station connected to the interface (ARP entries), or to the next-hop router for a specific subnet. For example, prefix 111.0.1.1/32 is the address of the provider edge switch router. The prefix entry and next-hop entry are the same. Prefix entry 222.2.1.1/32 is a route learned via next-hop 111.0.1.1.




Verifying MPLS

Follow these steps to verify the MPLS interface connections:


Step 1   Verify that a label distribution protocol is running on the requested interfaces, using the show mpls interfaces command.

8540-P# show mpls interfaces 
Interface              IP            Tunnel   Operational
FastEthernet11/0/0     Yes (tdp)     No       Yes         
FastEthernet11/0/1     Yes (tdp)     No       Yes         
FastEthernet11/0/4     Yes           No       No          
FastEthernet11/0/5     Yes           No       No 

Step 2   Verify the contents of the following fields:

  • IP Field—Shows that MPLS IP is configured for an interface. The label distribution protocol (LDP) appears in parenthesis to the right of the IP status. The LDP is either TDP, defined in the Cisco Tag Switching architecture, or LDP, as defined by IETF in RFC 3036.
  • Tunnel Field—Indicates the traffic-engineered capacity on the interface.
  • Operational Field—Shows the status of the LDP.




Pinging Neighbors

Follow these steps to verify the neighbor MPLS interface connections:


Step 1   Enter the ping command to verify that the connection is up between the provider-edge ATM switch router and the customer-edge router.

8540-PE2# ping vrf Red 222.2.2.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 222.2.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
8540-PE2#

This ping command example provides verification of the connections shown in Figure 8-5.

Step 2   Enter the debug mpls packet command or the MPLS-aware traceroute vrf command to verify the MPLS labels are set.

8540-PE2# traceroute vrf Red 222.2.2.1

Type escape sequence to abort.
Tracing the route to 222.2.2.1

  1 111.0.1.17 4 msec 0 msec 4 msec
  2 111.0.1.101 0 msec 0 msec 0 msec
  3 111.0.1.102 4 msec *  0 msec
8540-PE2#

Verify that the interfaces that appear in the traceroute command output display are the correct cross-connect addresses. This traceroute vrf command example shows verification of the connections, shown in Figure 8-5.





Verifying Label Distribution

Follow these steps to verify the label distribution between MPLS interface connections:


Step 1   Enter the show mpls forwarding-table command to display the discovered neighbors.

8540-P# show mpls forwarding-table
Local  Outgoing    Prefix              Bytes tag  Outgoing   Next Hop    
tag    tag or VC   or Tunnel Id        switched   interface              
16     Untagged    100.1.0.0/16        0          AT9/0/0    4.4.4.2      
17     Untagged    11.0.0.0/8          0          AT9/0/0    4.4.4.2      
18     Untagged    200.1.0.0/16        0          AT9/0/1    6.6.6.2      
19     Pop tag     222.2.1.1/32        624        Fa11/0/0   111.0.1.1    
20     Pop tag     222.2.1.2/32        0          Fa11/0/1   111.0.1.18   

The Local tag field displays the label assigned by this switch router.

The Outgoing tag or VC field displays the label assigned by the next hop, or VPI/VCI used to get to the next hop.

  • [T]—Means forwarding through a TSP tunnel.
  • Untagged—Means there is no label for the destination from the next hop, or label switching is not enabled on the outgoing interface.
  • Pop tag—Means that the next hop advertised an implicit NULL label for the destination, and that this router deleted the top label from the stack.
  • Aggregate—Means directly connected VRF routes.

Step 2   Check the Prefix or Tunnel Id field. It should displays the address (Loopback 0 interface IP address) or tunnel to which packets with this label are going. If it does not, check the interface configuration.

The Bytes tag switched field displays the number of bytes switched with this incoming label.

Step 3   Check the Outgoing interface field. It should display the correct interface configured to the next hop on either side of the switch router.

Step 4   Check the Next Hop field. It should display the correct IP address to the next hop interface.





Verifying Label Bindings

Follow these steps to verify the label bindings on MPLS interface connections:


Step 1   Verify that labels are assigned to each destination by entering the show mpls ip bindings command. Other commands such as the show tag-switching forwarding-table {ip address | prefix} detail command can be used to verify the different routes, and the labels associated with the routes.

8540-P# show mpls ip bindings 
  4.4.4.0/24 
        in label:     imp-null  
        out label:    imp-null  lsr: 111.0.1.18:0    
  6.6.6.0/24 
        in label:     imp-null  
        out label:    imp-null  lsr: 111.0.1.18:0    
  11.0.0.0/8 
        in label:     17        
  12.0.0.0/8 
        out label:    16        lsr: 111.0.1.18:0    
  100.1.0.0/16 
        in label:     16        
  111.0.1.0/30 
        in label:     imp-null  
        out label:    imp-null  lsr: 222.2.1.1:0     
        out label:    20        lsr: 111.0.1.18:0    
  111.0.1.16/30 
        in label:     imp-null  
        out label:    16        lsr: 222.2.1.1:0     
        out label:    imp-null  lsr: 111.0.1.18:0    
  171.69.0.0/16 
        out label:    imp-null  lsr: 111.0.1.18:0    
  171.69.1.0/24 
        in label:     imp-null  
        out label:    imp-null  lsr: 222.2.1.1:0     
  172.20.42.0/24 
        in label:     imp-null  
        out label:    imp-null  lsr: 222.2.1.1:0     
        out label:    imp-null  lsr: 111.0.1.18:0    
  200.1.0.0/16 
        in label:     18        
  222.2.1.1/32 
        in label:     19        
        out label:    imp-null  lsr: 222.2.1.1:0      inuse
        out label:    21        lsr: 111.0.1.18:0    
  222.2.1.2/32 
        in label:     20        
        out label:    19        lsr: 222.2.1.1:0     
        out label:    imp-null  lsr: 111.0.1.18:0     inuse
  222.2.1.3/32 
        in label:     imp-null  
        out label:    21        lsr: 222.2.1.1:0     
        out label:    22        lsr: 111.0.1.18:0    

This display contains label bindings for 111.0.1.X/30 networks that are the interfaces for each Label Switch Router (LSR). Notice there are multiple labels for each LSR. Each label corresponds to a different path. For example, the connection to the Loopback 0 interface 222.2.1.1/32 on the 8540-PE1 switch router uses the following labels:

  • in label 19
  • out label 22 to LSR interface 111.0.1.18 on the 8540-PE2 switch router




Troubleshooting MPLS VPN

This section provides troubleshooting steps for MPLS Virtual Private Networks (VPNs) over ATM connections.

When used with MPLS, the VPN allows several sites to interconnect transparently through a service provider network. One service provider network can support several different IP VPNs. Each of these appears to its users as a private network, separate from all other networks. Within a VPN, each site can send IP packets to any other site in the same VPN.

Each VPN is associated with one or more VPN routing or forwarding instances (VRFs). A VRF consists of an IP routing table, a derived Cisco Express Forwarding (CEF) table, and a set of interfaces that use this forwarding table.

The ATM switch router maintains a separate routing and CEF table for each VRF. This prevents information from being sent outside the VPN, and allows the same subnet to be used in several VPNs without causing duplicate IP address problems.

The ATM switch router distributes the VPN routing information using the MP-BGP extended communities.

Troubleshooting MPLS VPN Fast Ethernet Example

Figure 8-5 shows a customer VPN connection over a Fast Ethernet MPLS backbone connection, and is used in the following examples of troubleshooting MPLS VPN network connections.

To troubleshoot an MPLS Ethernet configuration, use the following commands:

Command  Purpose 

show ip vrf detail [vrf-name] [interfaces]

Shows detailed information on the VRF(s) and associated interfaces.

show ip route vrf [detail] [vrf-name] [interfaces]

Shows IP routing table associated with a VRF.

show ip bgp vpnv4 vrf [all] [vrf-name] [interfaces]

Shows VPN address information from the BGP table.

show ip [protocol] database vrf [vrf-name]

Show the protocol database information associated with the VRF.

traceroute vrf [vrf-name] [interfaces]

Shows data path between two MPLS nodes.

Verifying VRF Configurations

Follow these steps to verify the VRF on MPLS VPN interface connections:


Step 1   Verify the VRFs are present on the ATM switch routers, and on their associated route-indicators and interface(s), by entering the show ip vrf commands.

8540-PE2# show ip vrf
Name                             Default RD          Interfaces
  Green                            200:1               FastEthernet2/0/1.2
  Red                              100:1               FastEthernet2/0/1.1
8540-PE2#

Step 2   Verify existence of the VRFs and their names are valid.

Step 3   Verify that each Default RD (route-indicator) field is the same at each provider edge ATM switch router. If it is not, check the configuration of the interfaces.

Step 4   Enter the show ip vrf detail command to check the VRFs more closely.

8540-PE2# show ip vrf detail Red  
VRF Red; default RD 100:1
  Interfaces:
    FastEthernet2/0/1.1     
  Connected addresses are not in global routing table
  Export VPN route-target communities
    RT:100:1                
  Import VPN route-target communities
    RT:100:1                
  No import route-map
  No export route-map
8540-PE2#


Note   Remember that VPN routing/forwarding instance (VRF) names are case sensitive: "Red" is not the same as "red".

Step 5   Enter the show ip vrf interface command to check the VRFs for a specific interface.

8540-PE2# show ip vrf interfaces      
Interface              IP-Address      VRF                              Protocol
FastEthernet2/0/1.2    111.0.2.117     Green                            up      
FastEthernet2/0/1.1    111.0.1.117     Red                              up      
8540-PE2#

Step 6   Verify the Interface field matches the configuration of the target interface.

Step 7   Verify the VRF names and routing attributes.

Step 8   Verify the Protocol field is up.





Verifying Routing Information

Follow these steps to verify the routing tables for MPLS VPN interface connections:


Step 1   To check routing tables or routing protocol databases, use the same commands you would use to check the global routing table. For example, enter the show ip route vrf command with the VRF-name to display only the MPLS VPN connections.

8540-PE2# show ip route vrf Green 
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 - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     111.0.0.0/30 is subnetted, 2 subnets
B       111.0.2.100 [200/0] via 222.2.1.1, 02:07:41
C       111.0.2.116 is directly connected, FastEthernet2/0/1.2
8540-PE2#

Step 2   Check the destination for a particular address by using the show ip route vrf command with the VRF-name and IP-address variables.

8540-PE2# show ip route vrf Green 111.0.2.116
Routing entry for 111.0.2.116/30
  Known via "connected", distance 0, metric 0 (connected, via interface)
  Redistributing via bgp 222
  Advertised by bgp 222
  Routing Descriptor Blocks:
  * directly connected, via FastEthernet2/0/1.2
      Route metric is 0, traffic share count is 1

8540-PE2#

Border Gateway Protocol (BGP) is used between the PE routers and is necessary for inter-site connectivity. In the following example, we use internal BGP (iBGP). You can also use external BGP (eBGP) as an external routing protocol for Provider Edge-to-Customer Equipment route propagation.

You can use the following commands to troubleshoot BGP:

Command  Purpose 

show ip bgp neighbors

Shows detailed information on the BGP and TCP connections to individual neighbors.

show ip bgp vpnv4 all

Shows the VPN address information from the BGP table.

show ip bgp vpnv4 vrf VRF-name

Shows network layer reachability information (NLRI) associated with the named VRF.

show ip bgp vpnv4 vrf VRF name [ip-address]

Shows NLRI associated with the named VRF and a specific connection.

Step 3   Check the destination for a BGP address by entering the show ip bgp vpnv4 vrf command with the VRF-name.

8540-PE2# show ip bgp vpnv4 vrf Green
BGP table version is 17, local router ID is 222.2.1.2
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 Path
Route Distinguisher: 200:1 (default for vrf Green)
*>i111.0.2.100/30   222.2.1.1                0    100      0 ?
*> 111.0.2.116/30   0.0.0.0                  0         32768 ?
8540-PE2#

Step 4   Check the destination for a BGP address by using the show ip bgp vpnv4 vrf command with the VRF-name and IP-address.

8540-PE2# show ip bgp vpnv4 vrf Green 111.0.2.116
BGP routing table entry for 200:1:111.0.2.116/30, version 7
Paths: (1 available, best #1, table Green)
  Advertised to non peer-group peers:
  222.2.1.1 
  Local
    0.0.0.0 from 0.0.0.0 (222.2.1.2)
      Origin incomplete, metric 0, localpref 100, weight 32768, valid, sourced,t
      Extended Community: RT:200:1
8540-PE2#

Step 5   If the routing protocol used on the customer side does not use BGP, you can use traditional show commands, and apply them to the correct VRF.

For example, if your network is using the Routing Information Protocol (RIP), enter the show ip rip database vrf command.

Switch# show ip rip database vrf vrf101
   0.0.0.0/0 auto-summary  
   0.0.0.0/0
   [2] via 150.150.0.2, 00:00:12, Ethernet1/1
   6.0.0.0/8 auto-summary
   6.6.6.6/32 redistributed
   [1] via 223.0.0.21,
   7.0.0.0/8 auto-summary
   7.7.7.0/24
   [1] via 150.150.0.2, 00:00:12, Ethernet1/1 
   10.0.0.0/8 auto-summary
   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

Step 6   If you are using OSPF, you must enter the show ip ospf [process-id area-id] database command, and specify the correct process number. For example:

Switch# show ip ospf 2 database

     OSPF Router with ID (222.0.0.10) (Process ID 2)

   Router Link States (Area 1)

     Link ID   ADV RouterAge   Seq# Checksum Link count
     222.0.0.1 222.0.0.1 1364  0x80000013 0x7369   3
     222.0.0.10222.0.0.101363  0x80000002 0xFEFE   2

   Net Link States (Area 1)

     Link ID   ADV RouterAge   Seq# Checksum
     150.150.0.1     222.0.0.101363  0x80000001 0xEC6D  

   Summary Net Link States (Area 1)

     Link ID   ADV RouterAge   Seq# Checksum
     6.6.6.6   222.0.0.101328  0x80000001 0x4967  
     69.69.0.0 222.0.0.101268  0x80000001 0x2427  
     222.0.0.3 222.0.0.101328  0x80000001 0xEEF7  
     222.0.0.30222.0.0.101268  0x80000001 0x7B5A 

Step 7   Verify:

  • That the routing table is correct (from a customer point of view), or determine what is missing from the routing table.
  • That BGP is up and working, or determine which neighbor is missing.




Verifying Labels

MPLS VPN uses a two-level label stack. One of the labels is used to identify the VRF, and is set up between the two provider edge ATM switch routers. The other label (on the top of the stack) is the "backbone" label, and is set up by the standard MPLS network.

Follow these steps to verify the labels on MPLS VPN interface connections:


Step 1   Enter the traceroute VRF [vrf-name] ip-address command to verify the transport addresses.


Note   This command only works with an MPLS-aware traceroute, and only if the backbone ATM switch routers are configured to propagate and generate IP Time to Live (TTL) information.

8540-PE2# traceroute vrf Red 222.2.2.1

Type escape sequence to abort.
Tracing the route to 222.2.2.1

  1 111.0.1.17 4 msec 0 msec 4 msec
  2 111.0.1.101 0 msec 0 msec 0 msec
  3 111.0.1.102 4 msec *  0 msec
8540-PE2#


Note   More precise outputs, such as the table of the labels for a particular VRF, can be seen by entering the show ip bgp vpnv4 all tags command.

Step 2   Enter the show ip bgp vpnv4 all command to display a more precise output of the table of the labels for a particular VRF.

8540-PE2# show ip bgp vpnv4 all
BGP table version is 17, local router ID is 222.2.1.2
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 Path
Route Distinguisher: 100:1 (default for vrf Red)
*>i2.1.1.0/24       222.2.1.1                0    100      0 101 ?
*>i111.0.1.100/30   222.2.1.1                0    100      0 ?
*> 111.0.1.116/30   0.0.0.0                  0         32768 ?
*>i172.20.42.0/24   222.2.1.1                0    100      0 101 ?
*>i222.2.2.1/32     222.2.1.1                0    100      0 101 i
*> 222.2.5.1/32     111.0.1.118              0             0 202 i
Route Distinguisher: 200:1 (default for vrf Green)
*>i111.0.2.100/30   222.2.1.1                0    100      0 ?
*> 111.0.2.116/30   0.0.0.0                  0         32768 ?
8540-PE2#
^
% Invalid input detected at '^' marker.

8540-PE2#

Step 3   Enter the show ip cef vrf command with the VRF name and summary keyword to display a summary of the CEF table associated with a VRF.

8540-ATM-PE2# show ip cef vrf 1 summary 
IP CEF with switching (Table Version 18), flags=0x0
  12 routes, 0 reresolve, 0 unresolved (0 old, 0 new), peak 4
  35 leaves, 45 nodes, 48704 bytes, 84 inserts, 49 invalidations
  0 load sharing elements, 0 bytes, 0 references
  universal per-destination load sharing algorithm, id 61FD1177
  2 CEF resets, 0 revisions of existing leaves
  Resolution Timer: Exponential (currently 1s, peak 1s)
  0 in-place/0 aborted modifications
  refcounts:  4930 leaf, 4922 node

Adjacency Table has 10 adjacencies
8540-ATM-PE2#

Step 4   Enter the show ip cef vrf command with the VRF name and detail keyword to display greater detail of the CEF table associated with a VRF.

8540-ATM-PE2# show ip cef vrf 1 detail
IP CEF with switching (Table Version 18), flags=0x0
  12 routes, 0 reresolve, 0 unresolved (0 old, 0 new), peak 4
  35 leaves, 45 nodes, 48704 bytes, 84 inserts, 49 invalidations
  0 load sharing elements, 0 bytes, 0 references
  universal per-destination load sharing algorithm, id 61FD1177
  2 CEF resets, 0 revisions of existing leaves
  Resolution Timer: Exponential (currently 1s, peak 1s)
  0 in-place/0 aborted modifications
  refcounts:  4930 leaf, 4922 node

Adjacency Table has 10 adjacencies
0.0.0.0/32, version 0, receive
11.0.0.0/8, version 8, cached adjacency to ATM1/0/1
0 packets, 0 bytes
  tag information set
    local tag: VPN-route-head
    fast tag rewrite with AT1/0/1, point2point, tags imposed: {51(vcd=51) 19}
  via 102.0.0.2, 0 dependencies, recursive
    next hop 3.0.0.1, ATM1/0/1 via 102.0.0.2/32
    valid cached adjacency
    tag rewrite with AT1/0/1, point2point, tags imposed: {51(vcd=51) 19}
14.0.0.0/8, version 14, attached, connected
0 packets, 0 bytes
  tag information set
    local tag: 18
  via GigabitEthernet2/0/1, 0 dependencies
    valid glean adjacency
    tag rewrite with , , tags imposed: {}
14.0.0.0/32, version 12, receive
14.0.0.1/32, version 11, receive
14.0.0.2/32, version 15, connected, cached adjacency 14.0.0.2
0 packets, 0 bytes
  via 14.0.0.2, GigabitEthernet2/0/1, 2 dependencies
    next hop 14.0.0.2, GigabitEthernet2/0/1
    valid cached adjacency
14.255.255.255/32, version 13, receive
101.0.0.0/8, version 9, cached adjacency to ATM1/0/1
0 packets, 0 bytes
  tag information set
    local tag: VPN-route-head
    fast tag rewrite with AT1/0/1, point2point, tags imposed: {51(vcd=51) 20}
  via 102.0.0.2, 0 dependencies, recursive
    next hop 3.0.0.1, ATM1/0/1 via 102.0.0.2/32
    valid cached adjacency
    tag rewrite with AT1/0/1, point2point, tags imposed: {51(vcd=51) 20}
105.0.0.0/8, version 16, cached adjacency 14.0.0.2
0 packets, 0 bytes
  tag information set
    local tag: 19
  via 14.0.0.2, 0 dependencies, recursive
    next hop 14.0.0.2, GigabitEthernet2/0/1 via 14.0.0.2/32
    valid cached adjacency
    tag rewrite with Gi2/0/1, 14.0.0.2, tags imposed: {}
172.20.0.0/16, version 17, cached adjacency 14.0.0.2
0 packets, 0 bytes
  tag information set
    local tag: 20
  via 14.0.0.2, 0 dependencies, recursive
    next hop 14.0.0.2, GigabitEthernet2/0/1 via 14.0.0.2/32
    valid cached adjacency
    tag rewrite with Gi2/0/1, 14.0.0.2, tags imposed: {}
224.0.0.0/24, version 2, receive
255.255.255.255/32, version 1, receive
8540-ATM-PE2#

Step 5   Verify:

  • That the tag information set with the local tag field confirms that the labels are used effectively.
  • That the fast tag rewrite field displays a stack of (at least) two labels that are used for VPN destinations.




Pinging VPN Connection Neighbors

Follow these steps to verify the MPLS VPN connections:


Note   Before establishing an MPLS VPN, you must be able to ping, for example, the "8540-PE1" ATM switch router (111.0.1.18) from "8540-PE2" (111.0.1.1), and vice-versa. (See Figure 8-5.)

To see if the VRF works, use the ping command.


Note   If you are checking a provider edge ATM switch router, you must add the specific VRF name.

Follow these steps to verify the neighbor MPLS interface connections:


Step 1   Enter the ping command to verify that the connection is up between the provider-edge ATM switch routers and the customer-edge routers

8540-PE2# ping vrf Red 222.2.2.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 222.2.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
8540-PE2#

This ping command example confirms the connections, shown in Figure 8-5.

Step 2   Enter the debug mpls packet command or the MPLS-aware traceroute vrf command to verify the MPLS labels are set.

8540-PE2# traceroute vrf Red 222.2.2.1

Type escape sequence to abort.
Tracing the route to 222.2.2.1

  1 111.0.1.17 4 msec 0 msec 4 msec
  2 111.0.1.101 0 msec 0 msec 0 msec
  3 111.0.1.102 4 msec *  0 msec
8540-PE2#

Step 3   Verify that the interfaces that appear in the traceroute command output displays the correct cross-connect addresses. This traceroute vrf command example shows verification of the connections, shown in Figure 8-5.





Troubleshooting MPLS ATM Connections

This section provides steps used to troubleshoot and verify MPLS over ATM routing and interface connections.

Troubleshooting MPLS VPN ATM Example

Figure 8-6 shows customer VPN connections over ATM MPLS backbone connections, and is used in the following examples of troubleshooting MPLS VPN ATM network connections.


Figure 8-6   ATM Switch Router ATM MPLS VPN Example Network


In Figure 8-6, all of the routers and ATM switch routers have loopback 0 interfaces configured with an IP address. Each LSR uses these interfaces as the LDP router ID and LSR LDP ID. The display representation for an LDP ID uses the following form:

[LDP router ID] : [Local label space ID]

The LDP ID "102.0.0.0/32" is an example of an "8540-ATM-PE1" loopback 0 interface. In this example, 2.0.0.1/8 is the IP address of the "8540-ATM-PE1" interface to "8540-ATM-P", the provider switch router.

The ATM MPLS interfaces are configured from the PE (provider edge) ATM switch router (8540-ATM-PE1) through the provider core ATM switch router (8540-ATM-P) to the PE (provider edge) ATM switch router (8540-ATM-PE2). The CE (customer edge) routers use these connections to communicate between IP networks 11.1.0.0 and 14.0.0.0.

The MPLS example network shown in Figure 8-6 is used in the following examples of troubleshooting MPLS VPN ATM network connections.

Verifying ATM Interface VRF Configurations

This section describes troubleshooting and verifying the VRF (VPN routing and forwarding instance) over ATM interfaces on a ATM switch router.

To troubleshoot the VRF configuration, use the following commands:

Command  Purpose 

show mpls interfaces

Shows the MPLS forwarding information.

show mpls ldp discovery

Shows the status of the LDP discovery process.

show ip vrf [detail]

Shows the set of defined VRFs and associated interfaces.

show ip route vrf [vrf-name] [protocol]

Shows the IP routing table associated with a VRF.

Follow these steps to verify the VRF on MPLS VPN ATM interface connections:


Step 1   Enter the show mpls interfaces command to verify the MPLS ATM interfaces on the ATM switch routers, and enter the applicable show ip vrf commands to verify their associated route-indicators and interface(s).


8540-ATM-PE1# show mpls interfaces 
Interface              IP            Tunnel   Operational
ATM1/0/0               Yes (tdp)     No       Yes          (ATM labels)

Step 2   Verify that the neighbor attached to the MPLS interface is configured as (tdp) and the Operational field indicates Yes. If it does not, check the interface MPLS configuration.

Step 3   Verify the Interface field matches the configuration of the target interface.

Step 4   Verify the VRF names routing attributes.

Step 5   Verify the Protocol field is up.

Step 6   Enter the show mpls ldp discovery command to verify the interface is sending TDP Hello messages.

8540-ATM-PE1# show mpls ldp discovery
Local LDP Identifier:
    102.0.0.2:0
Discovery Sources:
8540-ATM-PE1#

The Local LDP Identifier should display the Loopback 0 IP address.

Step 7   Enter the show ip vrf command to verify the VRFs are present on the ATM switch routers and on their associated route-indicators and interface(s).

8540-ATM-PE1# show ip vrf
  Name                             Default RD          Interfaces
  1                                1:1                 GigabitEthernet2/0/1
8540-ATM-PE1#

Step 8   Verify the existence of the VRFs, and their names are valid.

Step 9   Verify that each Default RD (route-descriptor) field is the same at each provider edge ATM switch router. If not, check the configuration of the interfaces.

Step 10   Enter the show ip vrf detail command to examine the VRFs more closely.

8540-ATM-PE1# show ip vrf detail
VRF 1; default RD 1:1
  Interfaces:
    GigabitEthernet2/0/1    
  Connected addresses are not in global routing table
  Export VPN route-target communities
    RT:1:1                  
  Import VPN route-target communities
    RT:1:1                  
  No import route-map
  No export route-map
8540-ATM-PE1#

Note   Remember that VPN routing/forwarding instance (VRF) names are case sensitive. For example, a VRF named "Red" is not the same as one named "red".





Verifying Routing Information

This section describes the process you can use to verify the routing configuration associated with an MPLS VPN.

To troubleshoot the MPLS VPN routing configuration, use the following commands:

Command  Purpose 

show ip route vrf vrf_name

Shows the IP routing table associated with a VRF.

show ip route vrf vrf_name protocol

Shows the IP routing table associated with a VRF and a specific protocol.

Follow these steps to verify the routing tables for MPLS VPN interface connections:


Step 1   To check routing tables or routing protocol databases, use the same commands you would use to check the global routing table. For example, enter the show ip route vrf command with the VRF name to display only the MPLS VPN connections.

8540-ATM-PE1# show ip route vrf 1 
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 - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

B    101.0.0.0/8 [20/0] via 11.0.0.1, 1w1d
B    172.20.0.0/16 [20/0] via 11.0.0.1, 1w1d
C    11.0.0.0/8 is directly connected, GigabitEthernet2/0/1
B    14.0.0.0/8 [200/0] via 104.0.0.4, 1d20h
B    105.0.0.0/8 [200/0] via 104.0.0.4, 1d20h
8540-ATM-PE1#

Step 2   Check the destination for a particular address by entering the show ip route vrf command with the VRF-name and the bgp routing protocol keyword.

8540-ATM-PE1# show ip route vrf 1 bgp
B    101.0.0.0/8 [20/0] via 11.0.0.1, 1w1d
B    172.20.0.0/16 [20/0] via 11.0.0.1, 1w1d
B    14.0.0.0/8 [200/0] via 104.0.0.4, 1d21h
B    105.0.0.0/8 [200/0] via 104.0.0.4, 1d21h
8540-ATM-PE1#

Border Gateway Protocol (BGP) is used between the PE routers and is necessary for inter-site connectivity. In the following example, we use internal BGP (iBGP). You can also use external BGP (eBGP) as an external routing protocol for Provider Edge-to-Customer Equipment route propagation.

Use the following commands to troubleshoot BGP:

Command  Purpose 

show ip bgp neighbors

Shows detailed information on the BGP and TCP connections to individual neighbors.

show ip bgp vpnv4 all

Shows VPN address information from the BGP table.

show ip bgp vpnv4 vrf VRF-name

Shows network layer reachability information (NLRI) associated with the named VRF.

show ip bgp vpnv4 vrf VRF name [ip-address]

Shows NLRI associated with the named VRF and a specific connection.

Step 3   Check the destination for a BGP address by entering the show ip bgp vpnv4 vrf command with the VRF name.

8540-ATM-PE1# show ip bgp vpnv4 vrf 1 
BGP table version is 164, local router ID is 102.0.0.2
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 Path
Route Distinguisher: 1:1 (default for vrf 1)
*> 11.0.0.0         11.0.0.1                 0             0 1 ?
*>i14.0.0.0         104.0.0.4                0    100      0 3 ?
*> 101.0.0.0        11.0.0.1                 0             0 1 ?
*>i105.0.0.0        104.0.0.4                0    100      0 3 ?
* i172.20.0.0       104.0.0.4                0    100      0 3 ?
*>                  11.0.0.1                 0             0 1 ?
8540-ATM-PE1#

Step 4   If the routing protocol used on the customer side does not use BGP, enter traditional show commands, and apply them to the correct VRF.

For example, if your network is using the Routing Information Protocol (RIP), enter the show ip rip database vrf command.

Switch# show ip rip database vrf vrf101
   0.0.0.0/0 auto-summary  
   0.0.0.0/0
   [2] via 150.150.0.2, 00:00:12, Ethernet1/1
   6.0.0.0/8 auto-summary
   6.6.6.6/32 redistributed
   [1] via 223.0.0.21,
   7.0.0.0/8 auto-summary
   7.7.7.0/24
   [1] via 150.150.0.2, 00:00:12, Ethernet1/1 
   10.0.0.0/8 auto-summary
   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

Step 5   If you are using OSPF, you must enter the show ip ospf [process-id area-id] database command and specify the correct process number. For example:

Switch# show ip ospf 2 database

     OSPF Router with ID (222.0.0.10) (Process ID 2)

   Router Link States (Area 1)

     Link ID   ADV RouterAge   Seq# Checksum Link count
     222.0.0.1 222.0.0.1 1364  0x80000013 0x7369   3
     222.0.0.10222.0.0.101363  0x80000002 0xFEFE   2

   Net Link States (Area 1)

     Link ID   ADV RouterAge   Seq# Checksum
     150.150.0.1     222.0.0.101363  0x80000001 0xEC6D  

   Summary Net Link States (Area 1)

     Link ID   ADV RouterAge   Seq# Checksum
     6.6.6.6   222.0.0.101328  0x80000001 0x4967  
     69.69.0.0 222.0.0.101268  0x80000001 0x2427  
     222.0.0.3 222.0.0.101328  0x80000001 0xEEF7  
     222.0.0.30222.0.0.101268  0x80000001 0x7B5A 

Step 6   Verify:

  • That the routing table is correct (from a customer point of view), or what is missing from the routing table.
  • That protocol is up and working (or you can see which neighbor is missing).




Verifying Labels

MPLS VPN uses a two-level label stack. One of the labels is used to identify the VRF, and is set up between the two provider edge ATM switch routers. The other label (on the top of the stack) is the "backbone" label, and is set up by the standard MPLS network.

To verify the MPLS VPN label configuration, use the following commands:

Command  Purpose 

show mpls ip bindings

Shows the contents of the label information base (LIB).

show ip bgp vpnv4 all tags

Shows the VPN address information from the BGP table.

show ip protocols vrf

Shows the routing protocol information associated with a VRF.

show ip cef vrf

Shows the CEF forwarding table associated with a VRF.

Follow these steps to verify the labels on MPLS VPN interface connections:


Step 1   Enter the show mpls ip bindings command to display the contents of the label information base (LIB).

8540-ATM-PE1# show mpls ip binding     
  3.0.0.0/8 
        in label:     17        
  100.0.0.2/32 
        in label:     16        
  102.0.0.2/32 
        in label:     imp-null  
  104.0.0.4/32 
        in label:     18        
  171.69.0.0/16 
        in label:     imp-null  
  172.20.0.0/16 
        in label:     imp-null  
  172.20.72.0/26 
        in label:     imp-null  
8540-ATM-PE1#

Note   More precise outputs like the table of the labels for a particular VRF can be seen using the show ip bgp vpnv4 all tags command.

Step 2   Enter the show ip bgp vpnv4 all command to display the next hop connections in the VPN.

8540-ATM-PE1# show ip bgp vpnv4 all
BGP table version is 164, local router ID is 102.0.0.2
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 Path
Route Distinguisher: 1:1 (default for vrf 1)
*> 11.0.0.0         11.0.0.1                 0             0 1 ?
*>i14.0.0.0         104.0.0.4                0    100      0 3 ?
*> 101.0.0.0        11.0.0.1                 0             0 1 ?
*>i105.0.0.0        104.0.0.4                0    100      0 3 ?
* i172.20.0.0       104.0.0.4                0    100      0 3 ?
*>                  11.0.0.1                 0             0 1 ?
8540-ATM-PE1#

Step 3   Check the Next Hop column. It should display the IP addresses of the directly connected CE node and the PE node of the VPN.

Step 4   Enter the show ip protocols vrf command to display the routing protocol information associated with a VRF.

8540-ATM-PE1# show ip protocols vrf 1
Routing Protocol is "bgp 2"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  IGP synchronization is disabled
  Automatic route summarization is disabled
  Neighbor(s):
    Address          FiltIn FiltOut DistIn DistOut Weight RouteMap
    11.0.0.1                                             
  Maximum path: 1
  Routing for Networks:
  Routing Information Sources:
    Gateway         Distance      Last Update
    11.0.0.1              20      1d15h
    104.0.0.4            200      1d14h
  Distance: external 20 internal 200 local 200

8540-ATM-PE1# 

Step 5   Check the Neighbor(s) field. It should display the IP address of the next node in the VPN.

Step 6   Check the Routing Information Sources field. It should display the interface IP addresses used to update the MPLS label binding information.

Step 7   Enter the show ip cef vrf command with the VRF name to display the entries in the FIB table based on the IP address, and to verify that the CEF table has the correct precedence value for the prefix.

8540-ATM-PE1# show ip cef vrf 1
Prefix              Next Hop             Interface
0.0.0.0/32          receive
11.0.0.0/8          attached             GigabitEthernet2/0/1
11.0.0.0/32         receive
11.0.0.1/32         11.0.0.1             GigabitEthernet2/0/1
11.0.0.2/32         receive
11.255.255.255/32   receive
14.0.0.0/8          100.0.0.2            POS10/0/0
101.0.0.0/8         11.0.0.1             GigabitEthernet2/0/1
105.0.0.0/8         100.0.0.2            POS10/0/0
172.20.0.0/16       11.0.0.1             GigabitEthernet2/0/1
224.0.0.0/24        receive
255.255.255.255/32  receive
8540-ATM-PE1#

Step 8   Enter the show ip cef vrf command with the VRF name and the detail keyword to display the entries in the FIB table in greater detail.

8540-ATM-PE1# show ip cef vrf 1 detail
IP CEF with switching (Table Version 67), flags=0x0
  12 routes, 0 reresolve, 0 unresolved (0 old, 0 new), peak 2
  35 leaves, 39 nodes, 42464 bytes, 208 inserts, 173 invalidations
  0 load sharing elements, 0 bytes, 0 references
  universal per-destination load sharing algorithm, id 57B35947
  2 CEF resets, 0 revisions of existing leaves
  Resolution Timer: Exponential (currently 1s, peak 1s)
  0 in-place/0 aborted modifications
  refcounts:  3400 leaf, 3386 node

Adjacency Table has 13 adjacencies
0.0.0.0/32, version 0, receive
11.0.0.0/8, version 6, attached, connected
0 packets, 0 bytes
  tag information set
    local tag: 19
  via GigabitEthernet2/0/1, 0 dependencies
    valid glean adjacency
    tag rewrite with , , tags imposed: {}
11.0.0.0/32, version 4, receive
11.0.0.1/32, version 7, connected, cached adjacency 11.0.0.1
0 packets, 0 bytes
  via 11.0.0.1, GigabitEthernet2/0/1, 2 dependencies
    next hop 11.0.0.1, GigabitEthernet2/0/1
    valid cached adjacency
11.0.0.2/32, version 3, receive
11.255.255.255/32, version 5, receive
14.0.0.0/8, version 65, cached adjacency to POS10/0/0
0 packets, 0 bytes
  tag information set
    local tag: VPN-route-head
    fast tag rewrite with 
        Recursive rewrite via 104.0.0.4/32, tags imposed {18}
  via 104.0.0.4, 0 dependencies, recursive
    next hop 100.0.0.2, POS10/0/0 via 104.0.0.4/32
    valid cached adjacency
    tag rewrite with 
        Recursive rewrite via 104.0.0.4/32, tags imposed {18}
101.0.0.0/8, version 8, cached adjacency 11.0.0.1
0 packets, 0 bytes
  tag information set
    local tag: 20
  via 11.0.0.1, 0 dependencies, recursive
    next hop 11.0.0.1, GigabitEthernet2/0/1 via 11.0.0.1/32
    valid cached adjacency
    tag rewrite with Gi2/0/1, 11.0.0.1, tags imposed: {}
105.0.0.0/8, version 66, cached adjacency to POS10/0/0
0 packets, 0 bytes
  tag information set
    local tag: VPN-route-head
    fast tag rewrite with 
        Recursive rewrite via 104.0.0.4/32, tags imposed {19}
  via 104.0.0.4, 0 dependencies, recursive
    next hop 100.0.0.2, POS10/0/0 via 104.0.0.4/32
    valid cached adjacency
    tag rewrite with 
        Recursive rewrite via 104.0.0.4/32, tags imposed {19}
172.20.0.0/16, version 9, cached adjacency 11.0.0.1
0 packets, 0 bytes
  tag information set
    local tag: 21
  via 11.0.0.1, 0 dependencies, recursive
    next hop 11.0.0.1, GigabitEthernet2/0/1 via 11.0.0.1/32
    valid cached adjacency
    tag rewrite with Gi2/0/1, 11.0.0.1, tags imposed: {}
224.0.0.0/24, version 2, receive
255.255.255.255/32, version 1, receive
8540-ATM-PE1#

Step 9   Verify:

  • That the tag information set with the local tag field confirms that the labels are used effectively.
  • That the fast tag rewrite field displays a stack of (at least) two labels used for VPN destinations.

Step 10   Check the Adjacency Table fields. They should show connections to the IP address of the CE (customer equipment) router and the PE (provider edge) switch router. If they do not, check the MPLS connection configurations.





Pinging ATM VPN Connections

Follow these steps to verify the ATM MPLS VPN connections:


Note   Before establishing an MPLS VPN, you must be able to ping, for example, the "8540-ATM-PE1" ATM switch router (2.0.0.1) from "8540-ATM-PE2" (3.0.0.2), and vice-versa.

To see whether the VRF works, use the ping command.


Note   If you are checking a provider edge ATM switch router, you must add the specific VRF name.


Step 1   Enter the ping command to verify that the connection is up between the provider-edge ATM switch routers and the customer-edge routers.

8540-ATM-PE2# ping vrf 1 101.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 101.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
8540-ATM-PE2#

This ping command example shows verification of the connections, shown in Figure 8-6.

Step 2   Enter the traceroute vrf command to verify the MPLS labels are set.

8540-ATM-PE2# traceroute vrf R1 101.0.0.1

Type escape sequence to abort.
Tracing the route to 101.0.0.1

  1 2.0.0.2 4 msec 0 msec 4 msec
  2 11.0.0.2 0 msec 0 msec 0 msec
  3 11.1.0.0 4 msec *  0 msec
8540-ATM-PE2#

Step 3   Verify that the interfaces that appear in the traceroute command output display are the correct cross-connect addresses. This traceroute vrf command example shows verification of the connections shown in Figure 8-6.





Debugging MPLS

This section outlines the debug commands used to troubleshoot the MPLS interface configuration.

Use the following debug commands to check the MPLS configuration and setup processes:

Command  Purpose 

debug mpls ldp advertisements

Incorporates two new keywords/parameters; displays information about the advertisement of labels and interface addresses to LDP peers.

debug mpls ldp bindings

Shows information about addresses and label bindings learned from LDP peers by means of LDP Downstream Unsolicited label distribution. This command incorporates two new keywords/parameters.

debug mpls ldp messages

Shows specific information (such as message type, source, and destination) regarding LDP messages sent to and received from LDP peers. This command incorporates several new keywords/parameters.

debug mpls ldp session io

Shows the contents of LDP messages sent to and received from LDP peers. This command incorporates two new keywords/parameters.

debug mpls ldp session state-machine

Incorporates one new keyword/parameter; displays information about state transitions for LDP sessions.

debug mpls ldp transport connections

Incorporates two new keywords/parameters; displays information about the TCP connections used to support LDP sessions.

debug mpls ldp transport events

Shows information about events related to the LDP peer discovery mechanism. This command incorporates two new keywords/parameters.

debug mpls atm-tdp {api | routes | states}

Shows information related to routing events, states and Label VC establishment and release.

no debug all

Turns off all debugging.