![]() |
Table Of Contents
MPLS VPN—Explicit Null Label Support with BGP IPv4 Label Session
Prerequisites for MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
Restrictions for MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
Information About MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
Feature Design of MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
Benefits of MPLS—VPN Explicit Null Label Support BGP IPv4 Label Session
How to Configure MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
Verifying Explicit Null Configuration
Configuration Examples for MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
Configuring CSC-CE with BGP: Example
Verifying Explicit Null Configuration: Example
neighbor send-label explicit-null
Feature Information for MPLS VPN—Explicit Null Label Support with BGP IPv4 Label Session
MPLS VPN—Explicit Null Label Support with BGP IPv4 Label Session
First Published: January 20, 2004Last Updated: June 29, 2007The MPLS VPN—Explicit Null Label Support with BGP IPv4 Label Session feature provides a method to advertise explicit null in a Border Gateway Protocol (BGP) label session for a carrier supporting carrier (CSC) customer edge (CE) router.
Finding Feature Information in This Module
Your Cisco IOS software release may not support all of the features documented in this module. To reach links to specific feature documentation in this module and to see a list of the releases in which each feature is supported, use the "Feature Information for MPLS VPN—Explicit Null Label Support with BGP IPv4 Label Session" section.
Finding Support Information for Platforms and Cisco IOS and Catalyst OS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS and Catalyst OS software image support. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn. An account on Cisco.com is not required.
Contents
•
Prerequisites for MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
•
Restrictions for MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
•
Information About MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
•
How to Configure MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
•
Configuration Examples for MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
•
Feature Information for MPLS VPN—Explicit Null Label Support with BGP IPv4 Label Session
Prerequisites for MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
•
You must configure your network for MPLS VPN.
•
You must configure BGP to distribute labels between the CSC-CE and CSC-provider edge (PE) routers.
Restrictions for MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
•
Configure an explicit null label only in a CSC-CE topology.
•
Configure an explicit null label only on a per-neighbor basis.
Information About MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
To configure MPLS—VPN Explicit Null Label Support BGP IPv4 Label Session, you need to understand the following concepts:
•
Feature Design of MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
•
Benefits of MPLS—VPN Explicit Null Label Support BGP IPv4 Label Session
Feature Design of MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
On a CSC-CE with BGP IPv4 label distribution, BGP advertises an implicit null label for directly connected routes. This causes the previous hop (penultimate) router to do penultimate hop popping (PHP).
The MPLS—VPN Explicit Null Label Support BGP IPv4 Label Session feature makes the penultimate router swap the incoming label for (or impose) the explicit null label. This action forces the egress router to process the explicit null label by popping it and inspecting the packet that remains.
Benefits of MPLS—VPN Explicit Null Label Support BGP IPv4 Label Session
Improved Quality of Service
The explicit null label helps to preserve quality of service (QoS) bits from one service level agreement (SLA) to another until the packets reach their CSC-CE destination.
How to Configure MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
This section contains the following procedures:
•
Configuring CSC with BGP (required)
•
Verifying Explicit Null Configuration (optional)
Configuring CSC with BGP
Perform this task to configure CSC with BGP.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
router bgp autonomous system-number
4.
address-family ipv4 [unicast]
5.
neighbor ip-address send-label explicit-null
6.
neighbor {ip-address | peer-group-name | ipv6-address} activate
7.
exit
DETAILED STEPS
Verifying Explicit Null Configuration
Perform this task to verify that the explicit null option is configured.
SUMMARY STEPS
1.
enable
2.
show ip bgp neighbors [ip-address [advertised-routes | dampened-routes | flap-statistics |
paths [regexp] | received prefix-filter | received-routes | routes]]DETAILED STEPS
Configuration Examples for MPLS—VPN Explicit Null Label Support with BGP IPv4 Label Session
This section provides the following configuration examples:
•
Configuring CSC-CE with BGP: Example
•
Verifying Explicit Null Configuration: Example
Configuring CSC-CE with BGP: Example
In the following CSC-CE example, CSC is configured with BGP to distribute labels and to advertise explicit null for all its connected routes:
Router(config-router-af)# neighbor 10.0.0.0 send-label explicit-nullrouter bgp 100bgp log-neighbor-changesneighbor 10.0.0.0 remote-as 200!address-family ipv4neighbor 10.0.0.0 activateneighbor 10.0.0.0 send-label explicit-nullno auto-summaryno synchronizationexit-address-familyVerifying Explicit Null Configuration: Example
This section provides sample output for the show ip bgp neighbors command.
•
Sample Output for the show ip bgp neighbors Command
Sample Output for the show ip bgp neighbors Command
In this example, the show ip bgp neighbors command displays information about connected BGP neighbors, including IP addresses, version numbers, neighbor capabilities, message statistics, and address family statistics that show if explicit null is configured.
Router# show ip bgp neighborsBGP neighbor is 10.0.0.2, remote AS 300, external linkBGP version 4, remote router ID 10.0.0.20BGP state = Established, up for 00:45:16Last read 00:00:16, hold time is 180, keepalive interval is 60 secondsNeighbor capabilities:Route refresh: advertised and received(new)Address family IPv4 Unicast: advertised and receivedipv4 MPLS Label capability: advertised and receivedMessage statistics:InQ depth is 0OutQ depth is 0Sent RcvdOpens: 1 1Notifications: 0 0Updates: 1 2Keepalives: 47 47Route Refresh: 0 0Total: 49 50Default minimum time between advertisement runs is 30 secondsFor address family: IPv4 UnicastBGP table version 9, neighbor version 9/0Output queue sizes : 0 self, 0 replicatedIndex 1, Offset 0, Mask 0x2Member of update-group 1My AS number is allowed for 3 number of timesAF-dependant capabilities:Outbound Route Filter (ORF) type (128) Prefix-list:Sending Prefix & Label(advertise explicit-null set) !Explicit null is configuredSent RcvdPrefix activity: ---- ----Prefixes Current: 3 3 (Consumes 144 bytes)Prefixes Total: 3 6Implicit Withdraw: 0 3Explicit Withdraw: 0 0..................Additional References
The following sections provide references related to the MPLS—VPN Explicit Null Label with BGP IPv4 Label Session feature.
Related Documents
Related Topic Document TitleBGP configuration tasks
Cisco IOS IP Routing Protocols Configuration Guide, Release 12.4
BGP commands
•
Cisco IOS IP Routing Protocols Command Reference, Release 12.4T
•
Cisco IOS IP Routing Protocols Command Reference, Release 12.2SB
•
Cisco IOS IP Routing Protocols Command Reference, Release 12.2SR
IPv4 BGP label distribution
•
MPLS VPN—InterAS—IPv4 BGP Label Distribution
•
MPLS VPN—Carrier Supporting Carrier—IPv4 BGP Label Distribution
Standards
Standards TitleNo new or modified standards are supported by this feature, and support for existing standards has not been modified by this feature.
—
MIBs
RFCs
Technical Assistance
Command Reference
This section documents only commands that are new or modified.
•
neighbor send-label explicit-null
debug ip bgp
To display information related to processing of the Border Gateway Protocol (BGP), use the debug ip bgp command in privileged EXEC mode. To disable debugging output, use the no form of this command.
debug ip bgp [A.B.C.D. | dampening | events | in | keepalives | out | updates | vpnv4 | mpls]
no debug ip bgp [A.B.C.D. | dampening | events | in | keepalives | out | updates | vpnv4 | mpls]
Cisco 10000 Series Router
debug ip bgp [A.B.C.D. | dampening | events | in | keepalives | out | updates | vpnv4 | mpls | all | groups | import | ipv4 | ipv6]
no debug ip bgp [A.B.C.D. | dampening | events | in | keepalives | out | updates | vpnv4 | mpls | all | groups | import | ipv4 | ipv6]
Syntax Description
Command Modes
Privileged EXEC (#)
Command History
Usage Guidelines
Use this command with the updates and mpls keywords to display explicit-null label information.
Examples
The following is sample output from the debug ip bgp command:
Router# debug ip bgp vpnv4
03:47:14:vpn:bgp_vpnv4_bnetinit:100:2:10.0.0.0/803:47:14:vpn:bnettable add:100:2:10.0.0.0/803:47:14:vpn:bestpath_hook route_tag_change for vpn2:10.0.0.0/255.0.0.0(ok)03:47:14:vpn:bgp_vpnv4_bnetinit:100:2:10.0.0.0/803:47:14:vpn:bnettable add:100:2:10.0.0.0/803:47:14:vpn:bestpath_hook route_tag_change for vpn2:10.0.0.0/255.0.0.0(ok)03:47:14:vpn:bgp_vpnv4_bnetinit:100:2:10.0.0.0/803:47:14:vpn:bnettable add:100:2:10.0.0.0/803:47:14:vpn:bestpath_hook route_tag_chacle ip bgp *nge for vpn2:10.0.0.0/255.0.0.0(ok)The following example shows sample output, including the explicit-null label, from the debug ip bgp updates and the debug ip bgp mpls commands:
Router# debug ip bgp updatesBGP updates debugging is onRouter# debug ip bgp mplsBGP MPLS labels debugging is onRouter#01:33:53: BGP(0): route 10.10.10.10/32 up01:33:53: BGP(0): nettable_walker 10.10.10.10/32 route sourced locally01:33:53: BGP: adding MPLS label to 10.10.10.10/3201:33:53: BGP: check on 10.10.10.10/8 in LDP - ok01:33:53: BGP: label imp-null allocated via LDP01:33:53: BGP-IPv4: send exp-null label for 10.10.10.10/3201:33:53: BGP-IPv4: Send prefix 10.10.10.10/32, label exp-null !explicit-null label being sent
01:33:53: BGP(0): 10.10.10.11 send UPDATE (format) 10.10.10.10/32, next 10.10.10.12, metric 0, path , mpls label 0 !label value is 0
01:33:53: BGP(0): updgrp 1 - 10.10.10.12 enqueued 1 updates, average/maximum size (bytes) 61/61neighbor send-label explicit-null
To enable a Border Gateway Protocol (BGP) router to send Multiprotocol Label Switching (MPLS) labels with explicit-null information for a CSC-CE router and BGP routes to a neighboring CSC-PE router, use the neighbor send-label explicit-null command in address family configuration mode or router configuration mode. To disable a BGP router from sending MPLS labels with explicit-null information, use the no form of this command.
neighbor ip-address send-label explicit-null
no neighbor ip-address send-label explicit-null
Syntax Description
Command Default
None
Command Modes
Address family configuration (config-router-af)
Router configuration (config-router)Command History
Usage Guidelines
This command enables a CSC-CE router to use BGP to distribute MPLS labels with a value of zero for explicit-null instead of implicit-null along with IPv4 routes to a CSC-PE peer router.
You must issue this command only on the local CSC-CE router.
You can use this command only with IPv4 addresses.
Examples
In the following CSC-CE example, CSC is configured with BGP to distribute labels and to advertise explicit null for all its connected routes:
Router# configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)# router bgp 100Router(config-router)# neighbor 10.0.0.2 remote-as 300Router(config-router)# address-family ipv4Router(config-router-af)# neighbor 10.0.0.2 send-label explicit-nullIn the following CSC-PE example, CSC is configured with BGP to distribute labels:
Router# configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)# router bgp 300Router(config-router)# neighbor 10.0.0.1 remote-as 100Router(config-router)# address-family ipv4 vrf v1Router(config-router-af)# neighbor 10.0.0.1 send-label
Note
Explicit null is not applicable on a CSC-PE router.
Related Commands
show ip bgp neighbors
To display information about Border Gateway Protocol (BGP) and TCP connections to neighbors, use the show ip bgp neighbors command in user or privileged EXEC mode.
show ip bgp neighbors [ip-address [advertised-routes | dampened-routes | flap-statistics |
paths [reg-exp] | received prefix-filter | received-routes | routes | policy [detail]]]Syntax Description
Command Default
The output of this command displays information for all neighbors.
Command Modes
User EXEC (>)
Privileged EXEC (#)Command History
Usage Guidelines
Use the show ip bgp neighbors command to display BGP and TCP connection information for neighbor sessions. For BGP, this includes detailed neighbor attribute, capability, path, and prefix information. For TCP, this includes statistics related to BGP neighbor session establishment and maintenance.
Prefix activity is displayed based on the number of prefixes that are advertised and withdrawn. Policy denials display the number of routes that were advertised but then ignored based the function or attribute that is displayed in the output.
Cisco IOS Release 12.0(25)S, 12.4(11)T, 12.2(33)SRB, and Later Releases
When BGP neighbors use multiple levels of peer templates it can be difficult to determine which policies are applied to the neighbor.
In Cisco IOS Release 12.0(25)S, 12.4(11)T, 12.2(33)SRB and later releases, the policy and detail keywords were added to display the inherited policies and the policies configured directly on the specified neighbor. Inherited policies are policies that the neighbor inherits from a peer-group or a peer-policy template.
Examples
Example output is different for the various keywords available for the show ip bgp neighbors command. To view the appropriate output, choose one of the following sections:
•
show ip bgp neighbors: Example
•
show ip bgp neighbors advertised-routes: Example
•
show ip bgp neighbors paths: Example
•
show ip bgp neighbors received prefix-filter: Example
•
show ip bgp neighbors policy: Example
•
Cisco IOS Release 12.0(31)S and 12.4(4)T: Example
•
Cisco IOS Release 12.2(33)SRA: Example
show ip bgp neighbors: Example
The following example shows output for the BGP neighbor at 10.108.50.2. This neighbor is an internal BGP (iBGP) peer. This neighbor supports the route refresh and graceful restart capabilities.
Router# show ip bgp neighbors 10.108.50.2
BGP neighbor is 10.108.50.2, remote AS 1, internal linkBGP version 4, remote router ID 192.168.252.252BGP state = Established, up for 00:24:25Last read 00:00:24, last write 00:00:24, hold time is 180, keepalive interval is 60 secondsNeighbor capabilities:Route refresh: advertised and received(old & new)MPLS Label capability: advertised and receivedGraceful Restart Capability:advertised and receivedAddress family IPv4 Unicast: advertised and receivedMessage statistics:InQ depth is 0OutQ depth is 0Sent RcvdOpens: 3 3Notifications: 0 0Updates: 0 0Keepalives: 113 112Route Refresh: 0 0Total: 116 115Default minimum time between advertisement runs is 5 secondsFor address family: IPv4 UnicastBGP table version 1, neighbor version 1/0Output queue size : 0Index 1, Offset 0, Mask 0x21 update-group memberSent RcvdPrefix activity: ---- ----Prefixes Current: 0 0Prefixes Total: 0 0Implicit Withdraw: 0 0Explicit Withdraw: 0 0Used as bestpath: n/a 0Used as multipath: n/a 0Outbound InboundLocal Policy Denied Prefixes: -------- -------Total: 0 0Number of NLRIs in the update sent: max 0, min 0Connections established 3; dropped 2Last reset 00:24:26, due to Peer closed the sessionExternal BGP neighbor may be up to 2 hops away.Connection state is ESTAB, I/O status: 1, unread input bytes: 0Connection is ECN DisabledLocal host: 10.108.50.1, Local port: 179Foreign host: 10.108.50.2, Foreign port: 42698Enqueued packets for retransmit: 0, input: 0 mis-ordered: 0 (0 bytes)Event Timers (current time is 0x68B944):Timer Starts Wakeups NextRetrans 27 0 0x0TimeWait 0 0 0x0AckHold 27 18 0x0SendWnd 0 0 0x0KeepAlive 0 0 0x0GiveUp 0 0 0x0PmtuAger 0 0 0x0DeadWait 0 0 0x0iss: 3915509457 snduna: 3915510016 sndnxt: 3915510016 sndwnd: 15826irs: 233567076 rcvnxt: 233567616 rcvwnd: 15845 delrcvwnd: 539SRTT: 292 ms, RTTO: 359 ms, RTV: 67 ms, KRTT: 0 msminRTT: 12 ms, maxRTT: 300 ms, ACK hold: 200 msFlags: passive open, nagle, gen tcbsIP Precedence value : 6Datagrams (max data segment is 1460 bytes):Rcvd: 38 (out of order: 0), with data: 27, total data bytes: 539Sent: 45 (retransmit: 0, fastretransmit: 0, partialack: 0, Second Congestion: 08Table 1 describes the significant fields shown in the display. Fields that are preceded by the asterisk character are displayed only when the counter has a nonzero value.
show ip bgp neighbors advertised-routes: Example
The following example displays routes advertised for only the 172.16.232.178 neighbor:
Router# show ip bgp neighbors 172.16.232.178 advertised-routes
BGP table version is 27, local router ID is 172.16.232.181Status codes: s suppressed, d damped, h history, * valid, > best, i - internalOrigin codes: i - IGP, e - EGP, ? - incompleteNetwork Next Hop Metric LocPrf Weight Path*>i10.0.0.0 172.16.232.179 0 100 0 ?*> 10.20.2.0 10.0.0.0 0 32768 iTable 2 describes the significant fields shown in the display.
show ip bgp neighbors paths: Example
The following is example output from the show ip bgp neighbors command entered with the paths keyword:
Router# show ip bgp neighbors 172.29.232.178 paths ^10Address Refcount Metric Path0x60E577B0 2 40 10 ?Table 3 describes the significant fields shown in the display.
show ip bgp neighbors received prefix-filter: Example
The following example shows that a prefix-list the filters all routes in the 10.0.0.0 network has be received from the 192.168.20.72 neighbor:
Router# show ip bgp neighbors 192.168.20.72 received prefix-filterAddress family:IPv4 Unicastip prefix-list 192.168.20.72:1 entriesseq 5 deny 10.0.0.0/8 le 32Table 4 describes the significant fields shown in the display.
show ip bgp neighbors policy: Example
The following sample output shows the policies applied to the neighbor at 192.168.1.2. The output displays both inherited policies and policies configured on the neighbor device. Inherited polices are policies that the neighbor inherits from a peer-group or a peer-policy template.
Router# show ip bgp neighbors 192.168.1.2 policyNeighbor: 192.168.1.2, Address-Family: IPv4 UnicastLocally configured policies:route-map ROUTE inInherited polices:prefix-list NO-MARKETING inroute-map ROUTE inweight 300maximum-prefix 10000Cisco IOS Release 12.0(31)S and 12.4(4)T: Example
The following is sample output from the show ip bgp neighbors command that verifies that BFD is being used to detect fast fallover for the BGP neighbor that is a BFD peer.
Router# show ip bgp neighborsBGP neighbor is 172.16.10.2, remote AS 45000, external link...Using BFD to detect fast falloverCisco IOS Release 12.2(33)SRA: Example
The following is sample output from the show ip bgp neighbors command that verifies that BGP TCP path MTU discovery is enabled for the BGP neighbor at 172.16.1.2.
Router# show ip bgp neighbors 172.16.1.2BGP neighbor is 172.16.1.2, remote AS 45000, internal linkBGP version 4, remote router ID 172.16.1.99...For address family: IPv4 UnicastBGP table version 5, neighbor version 5/0...Address tracking is enabled, the RIB does have a route to 172.16.1.2Address tracking requires at least a /24 route to the peerConnections established 3; dropped 2Last reset 00:00:35, due to Router ID changedTransport(tcp) path-mtu-discovery is enabled...SRTT: 146 ms, RTTO: 1283 ms, RTV: 1137 ms, KRTT: 0 msminRTT: 8 ms, maxRTT: 300 ms, ACK hold: 200 msFlags: higher precedence, retransmission timeout, nagle, path mtu capableRelated Commands
show ip bgp vpnv4
To display Virtual Private Network Version 4 (VPNv4) address information from the Border Gateway Protocol (BGP) table, use the show ip bgp vpnv4 command in user EXEC or privileged EXEC mode.
show ip bgp vpnv4 {all | rd route-distinguisher | vrf vrf-name} [rib-failure] [ip-prefix/length [longer-prefixes]] [network-address [mask] [longer-prefixes]] [cidr-only] [community] [community-list] [dampened-paths] [filter-list] [flap-statistics] [inconsistent-as] [neighbors] [paths [line]] [peer-group] [quote-regexp] [regexp] [summary] [labels]
Syntax Description
Command Modes
User EXEC (>)
Privileged EXEC (#)Command History
Usage Guidelines
Use this command to display VPNv4 information from the BGP database. The show ip bgp vpnv4 all command displays all available VPNv4 information. The show ip bgp vpnv4 summary command displays BGP neighbor status. The show ip bgp vpnv4 all labels command displays explicit-null label information.
Examples
The following example shows output for all available VPNv4 information in a BGP routing table:
Router# show ip bgp vpnv4 allBGP table version is 18, local router ID is 10.14.14.14Status codes: s suppressed, d damped, h history, * valid, > best, i - internalOrigin codes: i - IGP, e - EGP,? - incompleteNetwork Next Hop Metric LocPrf Weight PathRoute Distinguisher: 1:101 (default for vrf vpn1)*>i10.6.6.6/32 10.0.0.21 11 100 0 ?*> 10.7.7.7/32 10.150.0.2 11 32768 ?*>i10.69.0.0/30 10.0.0.21 0 100 0 ?*> 10.150.0.0/24 10.0.0.0 0 32768 ?Table 5 describes the significant fields shown in the display.
The following example shows how to display a table of labels for NLRI prefixes that have a route distinguisher value of 100:1.
Router# show ip bgp vpnv4 rd 100:1 labelsNetwork Next Hop In label/Out labelRoute Distinguisher: 100:1 (vrf1)10.0.0.0 10.20.0.60 34/nolabel10.0.0.0 10.20.0.60 35/nolabel10.0.0.0 10.20.0.60 26/nolabel10.20.0.60 26/nolabel10.0.0.0 10.15.0.15 nolabel/26Table 6 describes the significant fields shown in the display.
The following example shows VPNv4 routing entries for the VRF named vpn1:
Router# show ip bgp vpnv4 vrf vpn1BGP table version is 18, local router ID is 10.14.14.14Status codes: s suppressed, d damped, h history, * valid, > best, i - internalOrigin codes: i - IGP, e - EGP,? - incompleteNetwork Next Hop Metric LocPrf Weight PathRoute Distinguisher: 1:101 (default for vrf vpn1)*>i10.6.6.6/32 10.0.0.21 11 100 0 ?*> 10.7.7.7/32 10.150.0.2 11 32768 ?*>i10.69.0.0/30 10.0.0.21 0 100 0 ?*> 10.150.0.0/24 10.0.0.0 0 32768 ?*> 10.0.0.1/32 10.150.0.2 11 32768 ?*>i10.0.0.3/32 10.0.0.21 11 100 0 ?Table 7 describes the significant fields shown in the display.
The following example shows attributes for network 10.22.22.0 that include multipaths and a best path:
Router# show ip bgp vpnv4 all 10.22.22.0BGP routing table entry for 10:1:10.22.22.0/24, version 50Paths:(6 available, best #1)Multipath:iBGPAdvertised to non peer-group peers:10.1.12.122210.22.7.8 (metric 11) from 10.11.3.4 (10.0.0.8)Origin IGP, metric 0, localpref 100, valid, internal, multipath, bestExtended Community:RT:100:1Originator:10.0.0.8, Cluster list:10.1.1.442210.22.1.9 (metric 11) from 10.11.1.2 (10.0.0.9)Origin IGP, metric 0, localpref 100, valid, internal, multipathExtended Community:RT:100:1Originator:10.0.0.9, Cluster list:10.1.1.22Table 8 describes the significant fields shown in the display.
The following example shows routes that BGP could not install in the VRF table:
Router# show ip bgp vpnv4 vrf xyz rib-failureNetwork Next Hop RIB-failure RIB-NH MatchesRoute Distinguisher: 2:2 (default for vrf bar)10.1.1.2/32 10.100.100.100 Higher admin distance No10.111.111.112/32 10.9.9.9 Higher admin distance YesTable 9 describes the significant fields shown in the display.
The following example shows the information displayed on the active and standby Route Processors when they are configured for MPLS VPN nonstop forwarding.
Active Route Processor
Router# show ip bgp vpnv4 all labelsNetwork Next Hop In label/Out labelRoute Distinguisher: 100:1 (vpn1)10.12.12.12/32 10.0.0.0 16/aggregate(vpn1)10.0.0.0/8 10.0.0.0 17/aggregate(vpn1)Route Distinguisher: 609:1 (vpn0)10.13.13.13/32 10.0.0.0 18/aggregate(vpn0)Router# show ip bgp vpnv4 vrf vpn1 labelsNetwork Next Hop In label/Out labelRoute Distinguisher: 100:1 (vpn1)10.12.12.12/32 10.0.0.0 16/aggregate(vpn1)10.0.0.0/8 10.0.0.0 17/aggregate(vpn1)Standby Route Processor
Router# show ip bgp vpnv4 all labelsNetwork Masklen In labelRoute Distinguisher: 100:110.12.12.12 /32 1610.0.0.0 /8 17Route Distinguisher: 609:110.13.13.13 /32 18Router# show ip bgp vpnv4 vrf vpn1 labelsNetwork Masklen In labelRoute Distinguisher: 100:110.12.12.12 /32 1610.0.0.0 /8 17Table 10 describes the significant fields shown in the display.
The following example displays output, including the explicit-null label, from the show ip bgp vpnv4 all labels command on a CSC-PE router:
Router# show ip bgp vpnv4 all labelsNetwork Next Hop In label/Out labelRoute Distinguisher: 100:1 (v1)10.0.0.0/24 10.0.0.0 19/aggregate(v1)10.0.0.1/32 10.0.0.0 20/nolabel10.1.1.1/32 10.0.0.0 21/aggregate(v1)10.10.10.10/32 10.0.0.1 25/exp-null10.168.100.100/3210.0.0.1 23/exp-null10.168.101.101/3210.0.0.1 22/exp-nullTable 11 describes the significant fields shown in the display.
The following example displays separate router IDs for each VRF in the output from an image in Cisco IOS Release 12.2(33)SRA, 12.2(31)SB2 and later releases with the Per-VRF Assignment of BGP Router ID feature configured. The router ID is shown next to the VRF name.
Router# show ip bgp vpnv4 allBGP table version is 5, local router ID is 172.17.1.99Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP, ? - incompleteNetwork Next Hop Metric LocPrf Weight PathRoute Distinguisher: 1:1 (default for vrf vrf_trans) VRF Router ID 10.99.1.2*> 192.168.4.0 10.0.0.0 0 32768 ?Route Distinguisher: 42:1 (default for vrf vrf_user) VRF Router ID 10.99.1.1*> 192.168.5.0 10.0.0.0 0 32768 ?Table 12 describes the significant fields shown in the display.
Related Commands
show mpls forwarding-table
To display the contents of the Multiprotocol Label Switching (MPLS) Label Forwarding Information Base (LFIB), use the show mpls forwarding-table command in privileged EXEC mode.
show mpls forwarding-table [network {mask | length} | labels label [- label] | interface interface | next-hop address | lsp-tunnel [tunnel-id]] [vrf vrf-name] [detail]
Syntax Description
Command Modes
Privileged EXEC (#)
Command History
Examples
The following is sample output from the show mpls forwarding-table command:
Router# show mpls forwarding-tableLocal Outgoing Prefix Bytes label Outgoing Next HopLabel Label or VC or Tunnel Id switched interface26 No Label 10.253.0.0/16 0 Et4/0/0 10.27.32.428 1/33 10.15.0.0/16 0 AT0/0.1 point2point29 Pop Label 10.91.0.0/16 0 Hs5/0 point2point1/36 10.91.0.0/16 0 AT0/0.1 point2point30 32 10.250.0.97/32 0 Et4/0/2 10.92.0.732 10.250.0.97/32 0 Hs5/0 point2point34 26 10.77.0.0/24 0 Et4/0/2 10.92.0.726 10.77.0.0/24 0 Hs5/0 point2point35 No Label[T] 10.100.100.101/32 0 Tu301 point2point36 Pop Label 10.1.0.0/16 0 Hs5/0 point2point1/37 10.1.0.0/16 0 AT0/0.1 point2point[T] Forwarding through a TSP tunnel.View additional labeling info with the 'detail' optionThe following is sample output from the show mpls forwarding-table command when the IPv6 Provider Edge Router over MPLS feature is configured to allow IPv6 traffic to be transported across an IPv4 MPLS backbone. The labels are aggregated because there are several prefixes for one local label, and the prefix column contains "IPv6" instead of a target prefix.
Router# show mpls forwarding-tableLocal Outgoing Prefix Bytes label Outgoing Next HopLabel Label or VC or Tunnel Id switched interface16 Aggregate IPv6 017 Aggregate IPv6 018 Aggregate IPv6 019 Pop Label 192.168.99.64/30 0 Se0/0 point2point20 Pop Label 192.168.99.70/32 0 Se0/0 point2point21 Pop Label 192.168.99.200/32 0 Se0/0 point2point22 Aggregate IPv6 542423 Aggregate IPv6 357624 Aggregate IPv6 2600The following is sample output from the show mpls forwarding-table command when you specify the detail keyword. If the MPLS EXP level is used as a selection criterion for packet forwarding, a bundle adjacency exp (vcd) field is included in the display. This field includes the EXP value and the corresponding virtual circuit descriptor (VCD) in parentheses. The line in the output that reads "No output feature configured" indicates that the MPLS egress NetFlow accounting feature is not enabled on the outgoing interface for this prefix.
Router# show mpls forwarding-table detailLocal Outgoing Prefix Bytes label Outgoing Next Hoplabel label or VC or Tunnel Id switched interface16 Pop label 10.0.0.6/32 0 AT1/0.1 point2pointBundle adjacency exp(vcd)0(1) 1(1) 2(1) 3(1) 4(1) 5(1) 6(1) 7(1)MAC/Encaps=12/12, MTU=4474, label Stack{}00010000AAAA030000008847No output feature configured17 18 10.0.0.9/32 0 AT1/0.1 point2pointBundle adjacency exp(vcd)0(1) 1(1) 2(1) 3(1) 4(1) 5(1) 6(1) 7(1)MAC/Encaps=12/16, MTU=4470, label Stack{18}00010000AAAA030000008847 00012000No output feature configured18 19 10.0.0.10/32 0 AT1/0.1 point2pointBundle adjacency exp(vcd)0(1) 1(1) 2(1) 3(1) 4(1) 5(1) 6(1) 7(1)MAC/Encaps=12/16, MTU=4470, label Stack{19}00010000AAAA030000008847 00013000No output feature configured19 17 10.0.0.0/8 0 AT1/0.1 point2pointBundle adjacency exp(vcd)0(1) 1(1) 2(1) 3(1) 4(1) 5(1) 6(1) 7(1)MAC/Encaps=12/16, MTU=4470, label Stack{17}00010000AAAA030000008847 00011000No output feature configured20 20 10.0.0.0/8 0 AT1/0.1 point2pointBundle adjacency exp(vcd)0(1) 1(1) 2(1) 3(1) 4(1) 5(1) 6(1) 7(1)MAC/Encaps=12/16, MTU=4470, label Stack{20}00010000AAAA030000008847 00014000No output feature configured21 Pop label 10.0.0.0/24 0 AT1/0.1 point2pointBundle adjacency exp(vcd)0(1) 1(1) 2(1) 3(1) 4(1) 5(1) 6(1) 7(1)MAC/Encaps=12/12, MTU=4474, label Stack{}00010000AAAA030000008847No output feature configured22 Pop label 10.0.0.4/32 0 Et2/3 10.0.0.4MAC/Encaps=14/14, MTU=1504, label Stack{}000427AD10430005DDFE043B8847No output feature configuredThe following is sample output from the show mpls forwarding-table command when you use the detail keyword. In this example, the MPLS egress NetFlow accounting feature is enabled on the first three prefixes, as indicated by the line in the output that reads "Feature Quick flag set."
Router# show mpls forwarding-table detailLocal Outgoing Prefix Bytes label Outgoing Next Hoplabel label or VC or Tunnel Id switched interface16 Aggregate 10.0.0.0/8[V] 0MAC/Encaps=0/0, MTU=0, label Stack{}VPN route: vpn1Feature Quick flag setPer-packet load-sharing, slots: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1517 No label 10.0.0.0/8[V] 0 Et0/0/2 10.0.0.1MAC/Encaps=0/0, MTU=1500, label Stack{}VPN route: vpn1Feature Quick flag setPer-packet load-sharing, slots: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1518 No label 10.42.42.42/32[V] 4185 Et0/0/2 10.0.0.1MAC/Encaps=0/0, MTU=1500, label Stack{}VPN route: vpn1Feature Quick flag setPer-packet load-sharing, slots: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1519 2/33 10.41.41.41/32 0 AT1/0/0.1 point2pointMAC/Encaps=4/8, MTU=4470, label Stack{2/33(vcd=2)}00028847 00002000No output feature configuredCisco 10000 Series Examples
The following is sample output from the show mpls forwarding-table command:
Router# show mpls forwarding-tableLocal Outgoing Prefix Bytes Label Outgoing Next HopLabel Label or VC or Tunnel Id Switched interface16 Pop Label 10.0.0.0/8 0 Fa1/0/0 10.0.0.2Pop Label 10.0.0.0/8 0 Fa1/1/0 10.0.0.217 Aggregate 10.0.0.0/8[V] 570 vpn221 Pop Label 10.11.11.11/32 0 Fa1/0/0 10.0.0.222 Pop Label 10.12.12.12/32 0 Fa1/1/0 10.0.0.223 No Label 10.3.0.0/16[V] 0 Fa4/1/0 10.0.0.2The following is Cisco 10000 series sample output from the show mpls forwarding-table command when you specify the detail keyword:
Router# show mpls forwarding-table detailLocal Outgoing Prefix Bytes Label Outgoing Next HopLabel Label or VC or Tunnel Id Switched interface16 Pop Label 10.0.0.0/8 0 Fa1/0/0 10.0.0.2MAC/Encaps=14/14, MRU=1500, Label Stack{}000B45C93889000B45C930218847No output feature configuredPop Label 10.0.0.0/8 0 Fa1/1/0 10.0.0.2MAC/Encaps=14/14, MRU=1500, Label Stack{}000B45C92881000B45C930288847No output feature configured17 Aggregate 10.0.0.0/8[V] 570 vpn2MAC/Encaps=0/0, MRU=0, Label Stack{}VPN route: vpn2No output feature configured21 Pop Label 10.11.11.11/32 0 Fa1/0/0 10.0.0.2MAC/Encaps=14/14, MRU=1500, Label Stack{}000B45C93889000B45C930218847No output feature configuredTable 13 describes the significant fields shown in the displays.
Explicit-Null Label Example
The following example shows output, including the explicit-null label = 0 (commented in bold), from the show mpls forwarding-table command on a CSC-PE router:
Router# show mpls forwarding-tableLocal Outgoing Prefix Bytes label Outgoing Next Hoplabel label or VC or Tunnel Id switched interface17 Pop label 10.10.0.0/32 0 Et2/0 10.10.0.118 Pop label 10.10.10.0/24 0 Et2/0 10.10.0.119 Aggregate 10.10.20.0/24[V] 020 Pop label 10.10.200.1/32[V] 0 Et2/1 10.10.10.121 Aggregate 10.10.1.1/32[V] 022 0 192.168.101.101/32[V] \0 Et2/1 192.168.101.10123 0 192.168.101.100/32[V] \0 Et2/1 192.168.101.10025 0 192.168.102.125/32[V] 0 Et2/1 192.168.102.125 !outlabel value 0
Table 14 describes the significant fields shown in the display.
Related Commands
Feature Information for MPLS VPN—Explicit Null Label Support with BGP IPv4 Label Session
Table 15 lists the release history for this feature.
Not all commands may be available in your Cisco IOS software release. For release information about a specific command, see the command reference documentation.
Cisco IOS software images are specific to a Cisco IOS software release, a feature set, and a platform. Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at the login dialog box and follow the instructions that appear.
Note
Table 15 lists only the Cisco IOS software release that introduced support for a given feature in a given Cisco IOS software release train. Unless noted otherwise, subsequent releases of that Cisco IOS software release train also support that feature.
Glossary
BGP—Border Gateway Protocol. The exterior Border Gateway Protocol used to exchange routing information between routers in separate autonomous systems. BGP uses Transmission Control Protocol (TCP). Because TCP is a reliable protocol, BGP does not experience problems with dropped or fragmented data packets.
CE router—customer edge router. A router on the border between a VPN provider and a VPN customer that belongs to the customer.
BGP—external Border Gateway Protocol. A BGP session between routers in different autonomous systems. When a pair of routers in different autonomous systems are more than one IP hop away from each other, an external BGP session between those two routers is called multihop external BGP.
label—A short, fixed-length data identifier that tells switching nodes how to forward data (packets or cells).
label distribution—The techniques and processes used to cause routed traffic to travel through the network on a path other than the one that would have been chosen if standard routing methods had been used.
LDP—Label Distribution Protocol. The protocol that supports MPLS hop-by-hop forwarding by distributing bindings between labels and network prefixes. The Cisco proprietary version of this protocol is the Tag Distribution Protocol (TDP).
LSP—label-switched path. A configured connection between two routers, in which MPLS is used to carry packets. A path created by the concatenation of one or more label switched hops, allowing a packet to be forwarded by swapping labels from an MPLS node to another MPLS node.
MPLS—Multiprotocol Label Switching. A method for directing packets primarily through Layer 2 switching rather than Layer 3 routing. In MPLS, packets are assigned short, fixed-length labels at the ingress to an MPLS cloud by using the concept of forwarding equivalence classes. Within the MPLS domain, the labels are used to make forwarding decisions mostly without recourse to the original packet headers; formerly known as tag switching.
NLRI—Network Layer Reachability Information. BGP sends routing update messages containing NLRI, which describes the route. In this context, an NLRI is a prefix. A BGP update message carries one or more NLRI prefixes and the attributes of a route for the NLRI prefixes. The route attributes include a BGP next hop gateway address, community values, and other information.
PE router—provider edge router. A router on the border between a VPN provider and a VPN customer that belongs to the provider.
QoS—quality of service. A measure of performance for a transmission system that reflects its transmission quality and service availability.
router—A network layer device that uses one or more metrics to determine the optimal path along which network traffic should be forwarded. Routers forward packets from one network to another based on network layer information.
VPN—Virtual Private Network. A secure IP-based network that shares resources on one or more physical networks. A VPN contains geographically dispersed sites that can communicate securely over a shared backbone.
CCVP, the Cisco logo, and the Cisco Square Bridge logo are trademarks of Cisco Systems, Inc.; Changing the Way We Work, Live, Play, and Learn is a service mark of Cisco Systems, Inc.; and Access Registrar, Aironet, BPX, Catalyst, CCDA, CCDP, CCIE, CCIP, CCNA, CCNP, CCSP, Cisco, the Cisco Certified Internetwork Expert logo, Cisco IOS, Cisco Press, Cisco Systems, Cisco Systems Capital, the Cisco Systems logo, Cisco Unity, Enterprise/Solver, EtherChannel, EtherFast, EtherSwitch, Fast Step, Follow Me Browsing, FormShare, GigaDrive, HomeLink, Internet Quotient, IOS, iPhone, IP/TV, iQ Expertise, the iQ logo, iQ Net Readiness Scorecard, iQuick Study, LightStream, Linksys, MeetingPlace, MGX, Networking Academy, Network Registrar, Packet, PIX, ProConnect, ScriptShare, SMARTnet, StackWise, The Fastest Way to Increase Your Internet Quotient, and TransPath are registered trademarks of Cisco Systems, Inc. and/or its affiliates in the United States and certain other countries.
All other trademarks mentioned in this document or Website are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (0705R)
Any Internet Protocol (IP) addresses used in this document are not intended to be actual addresses. Any examples, command display output, and figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses in illustrative content is unintentional and coincidental.
© 2004, 2006-2007 Cisco Systems, Inc. All rights reserved.