Feedback
|
Table Of Contents
MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels
Prerequisites for MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels
Restrictions for MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels
Information About MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels
MPLS VPN Inter-AS Introduction
Information About Using MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels
Benefits of MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels
How the Inter-AS Works When ASBRs Exchange IPv4 Routes with MPLS Labels
Types of BGP Messages and MPLS Labels
How BGP Sends MPLS Labels with Routes
How to Configure MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels
Configuring the ASBRs to Exchange IPv4 Routes and MPLS Labels
Configuring the Route Reflectors to Exchange VPN-IPv4 Routes
Configuring the Route Reflector to Reflect Remote Routes in Its Autonomous System
Verifying the MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels Configuration
Verifying the Route Reflector Configuration
Verifying that CE1 Can Communicate with CE2
Verifying that PE1 Can Communicate with CE2
Verifying that PE2 Can Communicate with CE2
Verifying the ASBR Configuration
Configuration Examples for MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels
Route Reflector 1 Configuration Example (MPLS VPN Service Provider)
ASBR1 Configuration Example (MPLS VPN Service Provider)
Route Reflector 2 Configuration Example (MPLS VPN Service Provider)
ASBR2 Configuration Example (MPLS VPN Service Provider)
Route Reflector 1 Configuration Example (Non-MPLS VPN Service Provider)
ASBR1 Configuration Example (Non-MPLS VPN Service Provider)
Route Reflector 2 Configuration Example (Non-MPLS VPN Service Provider)
ASBR2 Configuration Example (Non-MPLS VPN Service Provider)
ASBR3 Configuration Example (Non-MPLS VPN Service Provider)
Route Reflector 3 Configuration Example (Non-MPLS VPN Service Provider)
ASBR4 Configuration Example (Non-MPLS VPN Service Provider)
Feature Information for MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels
MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels
First Published: May 2, 2005Last Updated: February 27, 2009
The MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels feature allows a Multiprotocol Label Switching (MPLS) Virtual Private Network (VPN) to span service providers and autonomous systems. This module explains how to configure an MPLS VPN Inter-AS network so that the Autonomous System Boundary Routers (ASBRs) exchange IPv4 routes with MPLS labels of the provider edge (PE) routers. Route reflectors (RRs) exchange VPN-IPv4 routes by using multihop, multiprotocol, external Border Gateway Protocol (eBGP).
Finding Feature Information
Your software release may not support all the features documented in this module. For the latest feature information and caveats, see the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the "Feature Information for MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels" section.
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 Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels
•
Restrictions for MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels
•
Information About MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels
•
How to Configure MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels
•
Configuration Examples for MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels
•
Feature Information for MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels
Prerequisites for MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels
The network must be properly configured for MPLS VPN operation before you configure MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels.
Table 1 lists the Cisco 12000 series line card support in Cisco IOS S releases.
Restrictions for MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels
This feature includes the following restrictions:
•
For networks configured with eBGP multihop, you must configure a label switched path (LSP) between nonadjacent routers.
•
The physical interfaces that connect the BGP speakers must support Cisco Express Forwarding or distributed Cisco Express Forwarding and MPLS.
Information About MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels
Before configuring MPLS VPN Inter-AS, you should understand the following concepts:
•
MPLS VPN Inter-AS Introduction
•
Benefits of MPLS VPN Inter-AS
•
Information About Using MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels
•
Benefits of MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels
•
How the Inter-AS Works When ASBRs Exchange IPv4 Routes with MPLS Labels
MPLS VPN Inter-AS Introduction
An autonomous system is a single network or group of networks that is controlled by a common system administration group and that uses a single, clearly defined routing protocol.
As VPNs grow, their requirements expand. In some cases, VPNs need to reside on different autonomous systems in different geographic areas. Also, some VPNs need to extend across multiple service providers (overlapping VPNs). Regardless of the complexity and location of the VPNs, the connection between autonomous systems must be seamless to the customer.
Benefits of MPLS VPN Inter-AS
MPLS VPN Inter-AS provides the following benefits:
•
Allows a VPN to cross more than one service provider backbone
Service providers running separate autonomous systems, can jointly offer MPLS VPN services to the same customer. A VPN can begin at one site and traverse different VPN service provider backbones before arriving at another site of the same customer. Previously, MPLS VPNs could traverse only a single BGP autonomous system service provider backbone. This feature allows multiple autonomous systems to form a continuous (and seamless) network between customer sites of a service provider.
•
Allows a VPN to exist in different areas
A service provider can create a VPN in different geographic areas. Having all VPN traffic flow through one point (between the areas) allows for better rate control of network traffic between the areas.
•
Allows confederations to optimize iBGP meshing
Internal Border Gateway Protocol (iBGP) meshing in an autonomous system is more organized and manageable. This feature can divide an autonomous system into multiple, separate subautonomous systems and then classify them into a single confederation (even though the entire VPN backbone appears as a single autonomous system). This capability allows a service provider to offer MPLS VPNs across the confederation because it supports the exchange of labeled VPN-IPv4 Network Layer Reachability Information (NLRI) between the subautonomous systems that form the confederation.
Information About Using MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels
This feature can configure a MPLS VPN Inter-AS network so that the ASBRs exchange IPv4 routes with MPLS labels of the PE routers. RRs exchange VPN-IPv4 routes by using multihop, multiprotocol, External Border Gateway Protocol (eBGP). This method of configuring the Inter-AS system is often called MPLS VPN Inter-AS—IPv4 BGP Label Distribution.
Benefits of MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels
An Inter-AS system can be configured so that the ASBRs exchange the IPv4 routes and MPLS labels has the following benefits:
•
Saves the ASBRs from having to store all the VPN-IPv4 routes. Using the route reflectors to store the VPN-IPv4 routes and forward them to the PE routers results in improved scalability compared wtih configurations where the ASBR holds all of the VPN-IPv4 routes and forwards the routes based on VPN-IPv4 labels.
•
Simplifies the configuration at the border of the network by having the route reflectors hold the VPN-IPv4 routes.
•
Enables a non-VPN core network to act as a transit network for VPN traffic. You can transport IPv4 routes with MPLS labels over a non-MPLS VPN service provider.
•
Eliminates the need for any other label distribution protocol between adjacent LSRs. If two adjacent label switch routers (LSRs) are also BGP peers, BGP can handle the distribution of the MPLS labels. No other label distribution protocol is needed between the two LSRs.
How the Inter-AS Works When ASBRs Exchange IPv4 Routes with MPLS Labels
A VPN service provider network to exchange IPv4 routes with MPLS labels can be configured. The VPN service provider network can be configured as follows:
•
Route reflectors exchange VPN-IPv4 routes by using multihop, multiprotocol eBGP. This configuration also preserves the next-hop information and the VPN labels across the autonomous systems.
•
A local PE router (for example, PE1 in Figure 1) needs to know the routes and label information for the remote PE router (PE2). This information can be exchanged between the PE routers and ASBRs in one of two ways:
–
Internal Gateway Protocol (IGP) and Label Distribution Protocol (LDP): The ASBR can redistribute the IPv4 routes and MPLS labels it learned from eBGP into IGP and LDP and vice versa.
–
Internal Border Gateway Protocol (iBGP) IPv4 label distribution: The ASBR and PE router can use direct iBGP sessions to exchange VPN-IPv4 and IPv4 routes and MPLS labels.
Alternatively, the route reflector can reflect the IPv4 routes and MPLS labels learned from the ASBR to the PE routers in the VPN. This is accomplished by the ASBR exchanging IPv4 routes and MPLS labels with the route reflector. The route reflector also reflects the VPN-IPv4 routes to the PE routers in the VPN. For example, in VPN1 of Figure 1, RR1 reflects to PE1 the VPN-IPv4 routes it learned and IPv4 routes and MPLS labels learned from ASBR1. Using the route reflectors to store the VPN-IPv4 routes and forward them through the PE routers and ASBRs allows for a scalable configuration.
Figure 1 VPNs Using eBGP and iBGP to Distribute Routes and MPLS Labels
BGP Routing Information
BGP routing information includes the following items:
•
A network number (prefix), which is the IP address of the destination.
•
Autonomous system path, which is a list of the other autonomous systems through which a route passes on its way to the local router. The first autonomous system in the list is closest to the local router; the last autonomous system in the list is farthest from the local router and usually the autonomous system where the route began.
•
Path attributes, which provide other information about the autonomous system path, for example, the next hop.
Types of BGP Messages and MPLS Labels
MPLS labels are included in the update messages that a router sends. Routers exchange the following types of BGP messages:
•
Keepalive messages—Routers exchange keepalive messages to determine if a neighboring router is still available to exchange routing information. The router sends these messages at regular intervals. (Sixty seconds is the default for Cisco routers.) The keepalive message does not contain routing data; it contains only a message header.
•
Notification messages—When a router detects an error, it sends a notification message.
•
Open messages—After a router establishes a TCP connection with a neighboring router, the routers exchange open messages. This message contains the number of the autonomous system to which the router belongs and the IP address of the router that sent the message.
•
Update messages—When a router has a new, changed, or broken route, it sends an update message to the neighboring router. This message contains the NLRI, which lists the IP addresses of the usable routes. The update message includes any routes that are no longer usable. The update message also includes path attributes and the lengths of both the usable and unusable paths. Labels for VPN-IPv4 routes are encoded in the update message as specified in RFC 2858. The labels for the IPv4 routes are encoded in the update message as specified in RFC 3107.
How BGP Sends MPLS Labels with Routes
When BGP (eBGP and iBGP) distributes a route, it can also distribute an MPLS label that is mapped to that route. The MPLS label mapping information for the route is carried in the BGP update message that contains the information about the route. If the next hop is not changed, the label is preserved.
When you issue the neighbor send-label command on both BPG routers, the routers advertise to each other that they can then send MPLS labels with the routes. If the routers successfully negotiate their ability to send MPLS labels, the routers add MPLS labels to all outgoing BGP updates.
How to Configure MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels
To configure MPLS VPN Inter-AS with ASBRs exchanging IPv4 routes and MPLS labels, perform the tasks in the following sections:
•
Configuring the ASBRs to Exchange IPv4 Routes and MPLS Labels
•
Configuring the Route Reflectors to Exchange VPN-IPv4 Routes
•
Configuring the Route Reflector to Reflect Remote Routes in Its Autonomous System
•
Verifying the MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels Configuration
Figure 2 shows the following sample configuration:
•
The configuration consists of two VPNs.
•
The ASBRs exchange the IPv4 routes with MPLS labels.
•
The route reflectors exchange the VPN-IPv4 routes using multihop MPLS eBGP.
•
The route reflectors reflect the IPv4 and VPN-IPv4 routes to the other routers in their autonomous system.
Figure 2 Configuring Two VPN Service Providers to Exchange IPv4 Routes and MPLS Labels
Configuring the ASBRs to Exchange IPv4 Routes and MPLS Labels
Perform this task to configure the ASBRs to exchange IPv4 routes and MPLS labels. This configuration procedure uses ASBR1 as an example.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
router bgp as-number
4.
neighbor {ip-address | peer-group-name} remote-as as-number
5.
address-family ipv4 [multicast | unicast | vrf vrf-name]
6.
neighbor {ip-address | peer-group-name} activate
7.
neighbor ip-address send-label
8.
exit-address-family
9.
end
DETAILED STEPS
Configuring the Route Reflectors to Exchange VPN-IPv4 Routes
Perform this task to enable the route reflectors to exchange VPN-IPv4 routes by using multihop, multiprotocol eBGP.
This procedure also specifies that the next hop information and the VPN label are to be preserved across the autonomous systems. This procedure uses RR1 as an example of the route reflector.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
router bgp as-number
4.
neighbor {ip-address | peer-group-name} remote-as as-number
5.
address-family vpnv4 [unicast]
6.
neighbor {ip-address | peer-group-name} ebgp-multihop [ttl]
7.
neighbor {ip-address | peer-group-name} activate
8.
neighbor
{ip-address | peer-group-name} next-hop unchanged9.
exit-address-family
10.
end
DETAILED STEPS
Configuring the Route Reflector to Reflect Remote Routes in Its Autonomous System
Perform this task to enable the RR to reflect the IPv4 routes and labels learned by the ASBR to the PE routers in the autonomous system.
This is accomplished by making the ASBR and PE router route reflector clients of the RR. This procedure also explains how to enable the RR to reflect the VPN-IPv4 routes.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
router bgp as-number
4.
address-family ipv4 [multicast | unicast | vrf vrf-name]
5.
neighbor {ip-address | peer-group-name} activate
6.
neighbor ip-address route-reflector-client
7.
neighbor ip-address send-label
8.
exit-address-family
9.
address-family vpnv4 [unicast]
10.
neighbor {ip-address | peer-group-name} activate
11.
neighbor
ip-address route-reflector-client12.
exit-address-family
13.
end
DETAILED STEPS
Verifying the MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels Configuration
If you use ASBRs to distribute the IPv4 labels and route reflectors to distribute the VPN-IPv4 routes, use the following procedures to help verify the configuration:
•
Verifying the Route Reflector Configuration
•
Verifying that CE1 Can Communicate with CE2
•
Verifying that PE1 Can Communicate with CE2
•
Verifying that PE2 Can Communicate with CE2
•
Verifying the ASBR Configuration
Figure 3 shows the configuration that is referred to in the next several sections.
Figure 3 Configuring Two VPN Service Providers to Exchange IPv4 Routes and MPLS Labels
Verifying the Route Reflector Configuration
Perform this task to verify the route reflector configuration.
SUMMARY STEPS
1.
enable
2.
show ip bgp vpnv4 {all | rd route-distinguisher | vrf vrf-name} [summary] [labels]
3.
disable
DETAILED STEPS
Verifying that CE1 Can Communicate with CE2
Perform this task to verify that router CE1 has NLRI for router CE2.
SUMMARY STEPS
1.
enable
2.
show ip route [ip-address [mask] [longer-prefixes]] | [protocol [process-id]] | [list access-list-number | access-list-name]
3.
disable
DETAILED STEPS
Verifying that PE1 Can Communicate with CE2
Perform this task to verify that router PE1 has NLRI for router CE2.
SUMMARY STEPS
1.
enable
2.
show ip route vrf vrf-name [connected] [protocol [as-number] [tag] [output-modifiers]] [list number [output-modifiers]] [profile] [static [output-modifiers]] [summary [output-modifiers]] [supernets-only [output-modifiers]] [traffic-engineering [output-modifiers]]
3.
show ip bgp vpnv4 {all | rd route-distinguisher | vrf vrf-name} [ip-prefix | length [longer-prefixes] [output-modifiers]] [network-address [mask] [longer-prefixes] [output-modifiers]] [cidr-only] [community] [community-list] [dampened-paths] [filter-list] [flap-statistics] [inconsistent-as] [neighbors] [paths [line]] [peer-group] [quote-regexp] [regexp] [summary] [tags]
4.
show ip cef [vrf vrf-name] [network [mask]] [longer-prefixes] [detail]
5.
show mpls forwarding-table [{network {mask | length} | labels label [-label] | interface interface | next-hop address | lsp-tunnel [tunnel-id]}] [detail]
6.
show ip bgp [network] [network-mask] [longer-prefixes]
7.
show ip bgp vpnv4 {all | rd route-distinguisher | vrf vrf-name} [summary] [labels]
8.
disable
DETAILED STEPS
Verifying that PE2 Can Communicate with CE2
Perform this task to ensure that PE2 can access CE2.
SUMMARY STEPS
1.
enable
2.
show ip route vrf vrf-name [connected] [protocol [as-number] [tag] [output-modifiers]] [list number [output-modifiers]] [profile] [static [output-modifiers]] [summary [output-modifiers]] [supernets-only [output-modifiers]] [traffic-engineering [output-modifiers]]
3.
show mpls forwarding-table [vrf vrf-name] [{network {mask | length} | labels label [-label] | interface interface | next-hop address | lsp-tunnel [tunnel-id]}] [detail]
4.
show ip bgp vpnv4 {all | rd route-distinguisher | vrf vrf-name} [summary] [labels]
5.
show ip cef [vrf vrf-name] [network [mask]] [longer-prefixes] [detail]
6.
disable
DETAILED STEPS
Verifying the ASBR Configuration
Perform this task to verify that the ASBRs exchange IPv4 routes with MPLS labels or IPv4 routes without labels as prescribed by a route map.
SUMMARY STEPS
1.
enable
2.
show ip bgp [network] [network-mask] [longer-prefixes]
3.
show ip cef [vrf vrf-name] [network [mask]] [longer-prefixes] [detail]
4.
disable
DETAILED STEPS
Configuration Examples for MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels
Configuration examples for MPLS VPN Inter-AS are as follows:
Configuring MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels over an MPLS VPN Service Provider: Examples
Configuration examples for Inter-AS using BGP to distribute routes and MPLS labels over an MPLS VPN service provider included in this section are as follows:
•
Route Reflector 1 Configuration Example (MPLS VPN Service Provider)
•
ASBR1 Configuration Example (MPLS VPN Service Provider)
•
Route Reflector 2 Configuration Example (MPLS VPN Service Provider)
•
ASBR2 Configuration Example (MPLS VPN Service Provider)
Figure 4 shows two MPLS VPN service providers. The service provider distributes the VPN-IPv4 routes between the route reflectors. The MPLS VPN service providers distribute the IPv4 routes with MPLS labels between the ASBRs.
The configuration example shows the following two techniques you can use to distribute the VPN-IPv4 routes and the IPv4 routes with MPLS labels of the remote RRs and PEs to the local RRs and PEs:
•
Autonomous system 100 uses the RRs to distribute the VPN-IPv4 routes learned from the remote RRs. The RRs also distribute the remote PE address and label learned from ASBR1 using IPv4 labels.
•
In Autonomous system 200, the IPv4 routes that ASBR2 learned are redistributed into IGP.
Figure 4 Distributing IPv4 Routes and MPLS Labels Between MPLS VPN Service Providers
Route Reflector 1 Configuration Example (MPLS VPN Service Provider)
The configuration example for RR1 specifies the following:
•
RR1 exchanges VPN-IPv4 routes with RR2 using multiprotocol, multihop eBGP.
•
The VPN-IPv4 next-hop information and the VPN label are preserved across the autonomous systems.
•
RR1 reflects to PE1:
–
The VPN-IPv4 routes learned from RR2
–
The IPv4 routes and MPLS labels learned from ASBR1
ip subnet-zeroip cef!interface Loopback0ip address aa.aa.aa.aa 255.255.255.255!interface Ethernet0/3ip address dd.0.0.2 255.0.0.0!router ospf 10log-adjacency-changesauto-cost reference-bandwidth 1000network aa.aa.aa.aa 0.0.0.0 area 100network dd.0.0.0 0.255.255.255 area 100!router bgp 100bgp cluster-id 1bgp log-neighbor-changestimers bgp 10 30neighbor ee.ee.ee.ee remote-as 100neighbor ee.ee.ee.ee update-source Loopback0neighbor ww.ww.ww.ww remote-as 100neighbor ww.ww.ww.ww update-source Loopback0neighbor bb.bb.bb.bb remote-as 200neighbor bb.bb.bb.bb ebgp-multihop 255neighbor bb.bb.bb.bb update-source Loopback0no auto-summary!address-family ipv4neighbor ee.ee.ee.ee activateneighbor ee.ee.ee.ee route-reflector-client !IPv4+labels session to PE1neighbor ee.ee.ee.ee send-labelneighbor ww.ww.ww.ww activateneighbor ww.ww.ww.ww route-reflector-client !IPv4+labels session to ASBR1neighbor ww.ww.ww.ww send-labelno neighbor bb.bb.bb.bb activateno auto-summaryno synchronizationexit-address-family!address-family vpnv4neighbor ee.ee.ee.ee activateneighbor ee.ee.ee.ee route-reflector-client !VPNv4 session with PE1neighbor ee.ee.ee.ee send-community extendedneighbor bb.bb.bb.bb activateneighbor bb.bb.bb.bb next-hop-unchanged !MH-VPNv4 session with RR2neighbor bb.bb.bb.bb send-community extended !with next hop unchangedexit-address-family!ip default-gateway 3.3.0.1no ip classless!snmp-server engineID local 00000009020000D0584B25C0snmp-server community public ROsnmp-server community write RWno snmp-server ifindex persistsnmp-server packetsize 2048!endASBR1 Configuration Example (MPLS VPN Service Provider)
ASBR1 exchanges IPv4 routes and MPLS labels with ASBR2.
In this example, ASBR1 uses route maps to filter routes:
•
A route map called OUT specifies that ASBR1 should distribute the PE1 route (ee.ee) with labels and the RR1 route (aa.aa) without labels.
•
A route map called IN specifies that ASBR1 should accept the PE2 route (ff.ff) with labels and the RR2 route (bb.bb) without labels.
ip subnet-zerompls label protocol ldp!interface Loopback0ip address ww.ww.ww.ww 255.255.255.255!interface Ethernet0/2ip address hh.0.0.2 255.0.0.0!interface Ethernet0/3ip address dd.0.0.1 255.0.0.0mpls label protocol ldpmpls ip!router ospf 10log-adjacency-changesauto-cost reference-bandwidth 1000redistribute connected subnetspassive-interface Ethernet0/2network ww.ww.ww.ww 0.0.0.0 area 100network dd.0.0.0 0.255.255.255 area 100router bgp 100bgp log-neighbor-changestimers bgp 10 30neighbor aa.aa.aa.aa remote-as 100neighbor aa.aa.aa.aa update-source Loopback0neighbor hh.0.0.1 remote-as 200no auto-summary!!address-family ipv4 ! Redistributing IGP into BGPredistribute ospf 10 ! so that PE1 & RR1 loopbacksneighbor aa.aa.aa.aa activate ! get into the BGP tableneighbor aa.aa.aa.aa send-labelneighbor hh.0.0.1 activateneighbor hh.0.0.1 advertisement-interval 5neighbor hh.0.0.1 send-labelneighbor hh.0.0.1 route-map IN in ! accepting routes in route map IN.neighbor hh.0.0.1 route-map OUT out ! distributing routes in route map OUT.neighbor kk.0.0.1 activateneighbor kk.0.0.1 advertisement-interval 5neighbor kk.0.0.1 send-labelneighbor kk.0.0.1 route-map IN in ! accepting routes in route map IN.neighbor kk.0.0.1 route-map OUT out ! distributing routes in route map OUT.no auto-summaryno synchronizationexit-address-family!ip default-gateway 3.3.0.1ip classless!access-list 1 permit ee.ee.ee.ee log !Setting up the access listsaccess-list 2 permit ff.ff.ff.ff logaccess-list 3 permit aa.aa.aa.aa logaccess-list 4 permit bb.bb.bb.bb logroute-map IN permit 10 !Setting up the route mapsmatch ip address 2match mpls-label!route-map IN permit 11match ip address 4!route-map OUT permit 12match ip address 3!route-map OUT permit 13match ip address 1set mpls-label!endRoute Reflector 2 Configuration Example (MPLS VPN Service Provider)
RR2 exchanges VPN-IPv4 routes with RR1 through multihop, multiprotocol eBGP. This configuration also specifies that the next-hop information and the VPN label are preserved across the autonomous systems:
ip subnet-zeroip cef!interface Loopback0ip address bb.bb.bb.bb 255.255.255.255!interface Serial1/1ip address ii.0.0.2 255.0.0.0!router ospf 20log-adjacency-changesnetwork bb.bb.bb.bb 0.0.0.0 area 200network ii.0.0.0 0.255.255.255 area 200!router bgp 200bgp cluster-id 1bgp log-neighbor-changestimers bgp 10 30neighbor aa.aa.aa.aa remote-as 100neighbor aa.aa.aa.aa ebgp-multihop 255neighbor aa.aa.aa.aa update-source Loopback0neighbor ff.ff.ff.ff remote-as 200neighbor ff.ff.ff.ff update-source Loopback0no auto-summary!address-family vpnv4neighbor aa.aa.aa.aa activateneighbor aa.aa.aa.aa next-hop-unchanged !Multihop VPNv4 session with RR1neighbor aa.aa.aa.aa send-community extended !with next-hop-unchangedneighbor ff.ff.ff.ff activateneighbor ff.ff.ff.ff route-reflector-client !VPNv4 session with PE2neighbor ff.ff.ff.ff send-community extendedexit-address-family!ip default-gateway 3.3.0.1no ip classless!endASBR2 Configuration Example (MPLS VPN Service Provider)
ASBR2 exchanges IPv4 routes and MPLS labels with ASBR1. However, in contrast to ASBR1, ASBR2 does not use the RR to reflect IPv4 routes and MPLS labels to PE2. ASBR2 redistributes the IPv4 routes and MPLS labels learned from ASBR1 into IGP. PE2 can now reach these prefixes.
ip subnet-zeroip cef!mpls label protocol ldp!interface Loopback0ip address xx.xx.xx.xx 255.255.255.255!interface Ethernet1/0ip address hh.0.0.1 255.0.0.0!interface Ethernet1/2ip address jj.0.0.1 255.0.0.0mpls label protocol ldpmpls ip!router ospf 20log-adjacency-changesauto-cost reference-bandwidth 1000redistribute connected subnetsredistribute bgp 200 subnets ! Redistributing the routes learned frompassive-interface Ethernet1/0 ! ASBR1(eBGP+labels session) into IGPnetwork xx.xx.xx.xx 0.0.0.0 area 200 ! so that PE2 will learn themnetwork jj..0.0 0.255.255.255 area 200!router bgp 200bgp log-neighbor-changestimers bgp 10 30neighbor bb.bb.bb.bb remote-as 200neighbor bb.bb.bb.bb update-source Loopback0neighbor hh.0.0.2 remote-as 100no auto-summary!address-family ipv4redistribute ospf 20 ! Redistributing IGP into BGPneighbor hh.0.0.2 activate ! so that PE2 & RR2 loopbacksneighbor hh.0.0.2 advertisement-interval 5 ! will get into the BGP-4 table.neighbor hh.0.0.2 route-map IN inneighbor hh.0.0.2 route-map OUT outneighbor hh.0.0.2 send-labelneighbor kk.0.0.2 activateneighbor kk.0.0.2 advertisement-interval 5neighbor kk.0.0.2 route-map IN inneighbor kk.0.0.2 route-map OUT outneighbor kk.0.0.2 send-labelno auto-summaryno synchronizationexit-address-family!address-family vpnv4neighbor bb.bb.bb.bb activateneighbor bb.bb.bb.bb send-community extendedexit-address-family!ip default-gateway 3.3.0.1ip classless!access-list 1 permit ff.ff.ff.ff log !Setting up the access listsaccess-list 2 permit ee.ee.ee.ee logaccess-list 3 permit bb.bb.bb.bb logaccess-list 4 permit aa.aa.aa.aa logroute-map IN permit 11 !Setting up the route mapsmatch ip address 2match mpls-label!route-map IN permit 12match ip address 4!route-map OUT permit 10match ip address 1set mpls-label!route-map OUT permit 13match ip address 3endConfiguring MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels over a Non-MPLS VPN Service Provider: Examples
Configuration examples for Inter-AS using BGP to distribute routes and MPLS labels over a non MPLS VPN service provider included in this section are as follows:
•
Route Reflector 1 Configuration Example (Non-MPLS VPN Service Provider)
•
ASBR1 Configuration Example (Non-MPLS VPN Service Provider)
•
Route Reflector 2 Configuration Example (Non-MPLS VPN Service Provider)
•
ASBR2 Configuration Example (Non-MPLS VPN Service Provider)
•
ASBR3 Configuration Example (Non-MPLS VPN Service Provider)
•
Route Reflector 3 Configuration Example (Non-MPLS VPN Service Provider)
•
ASBR4 Configuration Example (Non-MPLS VPN Service Provider)
Figure 5 shows two MPLS VPN service providers that are connected through a non MPLS VPN service provider. The autonomous system in the middle of the network is configured as a backbone autonomous system that uses LDP or Tag Distribution Protocol (TDP) to distribute MPLS labels. Traffic engineering tunnels can also be used instead of TDP or LDP to build the LSP across the non MPLS VPN service provider.
Figure 5 Distributing Routes and MPLS Labels over a Non-MPLS VPN Service Provider
Route Reflector 1 Configuration Example (Non-MPLS VPN Service Provider)
The configuration example for RR1 specifies the following:
•
RR1 exchanges VPN-IPv4 routes with RR2 using multiprotocol, multihop eBGP.
•
The VPN-IPv4 next-hop information and the VPN label are preserved across the autonomous systems.
•
RR1 reflects to PE1:
–
The VPN-IPv4 routes learned from RR2
–
The IPv4 routes and MPLS labels learned from ASBR1
ip subnet-zeroip cef!interface Loopback0ip address aa.aa.aa.aa 255.255.255.255!interface Serial1/2ip address dd.0.0.2 255.0.0.0clockrate 124061!router ospf 10log-adjacency-changesauto-cost reference-bandwidth 1000network aa.aa.aa.aa 0.0.0.0 area 100network dd.0.0.0 0.255.255.255 area 100!router bgp 100bgp cluster-id 1bgp log-neighbor-changestimers bgp 10 30neighbor ee.ee.ee.ee remote-as 100neighbor ee.ee.ee.ee update-source Loopback0neighbor ww.ww.ww.ww remote-as 100neighbor ww.ww.ww.ww update-source Loopback0neighbor bb.bb.bb.bb remote-as 200neighbor bb.bb.bb.bb ebgp-multihop 255neighbor bb.bb.bb.bb update-source Loopback0no auto-summary!address-family ipv4neighbor ee.ee.ee.ee activateneighbor ee.ee.ee.ee route-reflector-client !IPv4+labels session to PE1neighbor ee.ee.ee.ee send-labelneighbor ww.ww.ww.ww activateneighbor ww.ww.ww.ww route-reflector-client !IPv4+labels session to ASBR1neighbor ww.ww.ww.ww send-labelno neighbor bb.bb.bb.bb activateno auto-summaryno synchronizationexit-address-family!address-family vpnv4neighbor ee.ee.ee.ee activateneighbor ee.ee.ee.ee route-reflector-client !VPNv4 session with PE1neighbor ee.ee.ee.ee send-community extendedneighbor bb.bb.bb.bb activateneighbor bb.bb.bb.bb next-hop-unchanged !MH-VPNv4 session with RR2neighbor bb.bb.bb.bb send-community extended with next-hop-unchangedexit-address-family!ip default-gateway 3.3.0.1no ip classless!snmp-server engineID local 00000009020000D0584B25C0snmp-server community public ROsnmp-server community write RWno snmp-server ifindex persistsnmp-server packetsize 2048!endASBR1 Configuration Example (Non-MPLS VPN Service Provider)
ASBR1 exchanges IPv4 routes and MPLS labels with ASBR2.
In this example, ASBR1 uses route maps to filter routes:
•
A route map called OUT specifies that ASBR1 should distribute the PE1 route (ee.ee) with labels and the RR1 route (aa.aa) without labels.
•
A route map called IN specifies that ASBR1 should accept the PE2 route (ff.ff) with labels and the RR2 route (bb.bb) without labels.
ip subnet-zeroip cef distributedmpls label protocol ldp!interface Loopback0ip address ww.ww.ww.ww 255.255.255.255!interface Serial3/0/0ip address kk.0.0.2 255.0.0.0ip route-cache distributed!interface Ethernet0/3ip address dd.0.0.1 255.0.0.0mpls label protocol ldpmpls ip!router ospf 10log-adjacency-changesauto-cost reference-bandwidth 1000redistribute connected subnetspassive-interface Serial3/0/0network ww.ww.ww.ww 0.0.0.0 area 100network dd.0.0.0 0.255.255.255 area 100router bgp 100bgp log-neighbor-changestimers bgp 10 30neighbor aa.aa.aa.aa remote-as 100neighbor aa.aa.aa.aa update-source Loopback0neighbor kk.0.0.1 remote-as 200no auto-summary!address-family ipv4redistribute ospf 10 ! Redistributing IGP into BGPneighbor aa.aa.aa.aa activate ! so that PE1 & RR1 loopbacksneighbor aa.aa.aa.aa send-label ! get into BGP tableneighbor kk.0.0.1 activateneighbor kk.0.0.1 advertisement-interval 5neighbor kk.0.0.1 send-labelneighbor kk.0.0.1 route-map IN in ! Accepting routes specified in route map INneighbor kk.0.0.1 route-map OUT out ! Distributing routes specified in route map OUTno auto-summaryno synchronizationexit-address-family!ip default-gateway 3.3.0.1ip classless!access-list 1 permit ee.ee.ee.ee logaccess-list 2 permit ff.ff.ff.ff logaccess-list 3 permit aa.aa.aa.aa logaccess-list 4 permit bb.bb.bb.bb log!route-map IN permit 10match ip address 2match mpls-label!route-map IN permit 11match ip address 4!route-map OUT permit 12match ip address 3!route-map OUT permit 13match ip address 1set mpls-label!endRoute Reflector 2 Configuration Example (Non-MPLS VPN Service Provider)
RR2 exchanges VPN-IPv4 routes with RR1 using multihop, multiprotocol eBGP. This configuration also specifies that the next-hop information and the VPN label are preserved across the autonomous systems:
ip subnet-zeroip cef!interface Loopback0ip address bb.bb.bb.bb 255.255.255.255!interface Serial1/1ip address ii.0.0.2 255.0.0.0!router ospf 20log-adjacency-changesnetwork bb.bb.bb.bb 0.0.0.0 area 200network ii.0.0.0 0.255.255.255 area 200!router bgp 200bgp cluster-id 1bgp log-neighbor-changestimers bgp 10 30neighbor aa.aa.aa.aa remote-as 100neighbor aa.aa.aa.aa ebgp-multihop 255neighbor aa.aa.aa.aa update-source Loopback0neighbor ff.ff.ff.ff remote-as 200neighbor ff.ff.ff.ff update-source Loopback0no auto-summary!address-family vpnv4neighbor aa.aa.aa.aa activateneighbor aa.aa.aa.aa next-hop-unchanged !MH vpnv4 session with RR1neighbor aa.aa.aa.aa send-community extended !with next-hop-unchangedneighbor ff.ff.ff.ff activateneighbor ff.ff.ff.ff route-reflector-client !vpnv4 session with PE2neighbor ff.ff.ff.ff send-community extendedexit-address-family!ip default-gateway 3.3.0.1no ip classless!endASBR2 Configuration Example (Non-MPLS VPN Service Provider)
ASBR2 exchanges IPv4 routes and MPLS labels with ASBR1. However, in contrast to ASBR1, ASBR2 does not use the RR to reflect IPv4 routes and MPLS labels to PE2. ASBR2 redistributes the IPv4 routes and MPLS labels learned from ASBR1 into IGP. PE2 can now reach these prefixes.
ip subnet-zeroip cef!mpls label protocol ldp!interface Loopback0ip address xx.xx.xx.xx 255.255.255.255!interface Ethernet0/1ip address qq.0.0.2 255.0.0.0!interface Ethernet1/2ip address jj.0.0.1 255.0.0.0mpls label protocol ldpmpls ip!router ospf 20log-adjacency-changesauto-cost reference-bandwidth 1000redistribute connected subnetsredistribute bgp 200 subnets !redistributing the routes learned frompassive-interface Ethernet0/1 !ASBR2 (eBGP+labels session) into IGPnetwork xx.xx.xx.xx 0.0.0.0 area 200 !so that PE2 will learn themnetwork jj.0.0.0 0.255.255.255 area 200!router bgp 200bgp log-neighbor-changestimers bgp 10 30neighbor bb.bb.bb.bb remote-as 200neighbor bb.bb.bb.bb update-source Loopback0neighbor qq.0.0.1 remote-as 100no auto-summary!address-family ipv4 ! Redistributing IGP into BGP redistribute ospf 20 ! so that PE2 & RR2 loopbacksneighbor qq.0.0.1 activate ! will get into the BGP-4 tableneighbor qq.0.0.1 advertisement-interval 5neighbor qq.0.0.1 route-map IN inneighbor qq.0.0.1 route-map OUT outneighbor qq.0.0.1 send-labelno auto-summaryno synchronizationexit-address-family!address-family vpnv4neighbor bb.bb.bb.bb activateneighbor bb.bb.bb.bb send-community extendedexit-address-family!ip default-gateway 3.3.0.1ip classless!access-list 1 permit ff.ff.ff.ff logaccess-list 2 permit ee.ee.ee.ee logaccess-list 3 permit bb.bb.bb.bb logaccess-list 4 permit aa.aa.aa.aa log!route-map IN permit 11match ip address 2match mpls-label!route-map IN permit 12match ip address 4!route-map OUT permit 10match ip address 1set mpls-label!route-map OUT permit 13match ip address 3!endASBR3 Configuration Example (Non-MPLS VPN Service Provider)
ASBR3 belongs to a non MPLS VPN service provider. ASBR3 exchanges IPv4 routes and MPLS labels with ASBR1. ASBR3 also passes the routes learned from ASBR1 to ASBR4 through RR3.
Note
Do not redistribute eBGP routes learned into iBGP if you are using iBGP to distribute the routes and labels. This is not a supported configuration.
ip subnet-zeroip cef!interface Loopback0ip address yy.yy.yy.yy 255.255.255.255interface Hssi4/0ip address mm.0.0.0.1 255.0.0.0mpls iphssi internal-clock!interface Serial5/0ip address kk.0.0.1 255.0.0.0load-interval 30clockrate 124061!router ospf 30log-adjacency-changesauto-cost reference-bandwidth 1000redistribute connected subnetsnetwork yy.yy.yy.yy 0.0.0.0 area 300network mm.0.0.0 0.255.255.255 area 300!router bgp 300bgp log-neighbor-changestimers bgp 10 30neighbor cc.cc.cc.cc remote-as 300neighbor cc.cc.cc.cc update-source Loopback0neighbor kk.0.0.2 remote-as 100no auto-summary!address-family ipv4neighbor cc.cc.cc.cc activate ! iBGP+labels session with RR3neighbor cc.cc.cc.cc send-labelneighbor kk.0.0.2 activate ! eBGP+labels session with ASBR1neighbor kk.0.0.2 advertisement-interval 5neighbor kk.0.0.2 send-labelneighbor kk.0.0.2 route-map IN inneighbor kk.0.0.2 route-map OUT outno auto-summaryno synchronizationexit-address-family!ip classless!access-list 1 permit ee.ee.ee.ee logaccess-list 2 permit ff.ff.ff.ff logaccess-list 3 permit aa.aa.aa.aa logaccess-list 4 permit bb.bb.bb.bb log!route-map IN permit 10match ip address 1match mpls-label!route-map IN permit 11match ip address 3!route-map OUT permit 12match ip address 2set mpls-label!route-map OUT permit 13match ip address 4!ip default-gateway 3.3.0.1ip classless!endRoute Reflector 3 Configuration Example (Non-MPLS VPN Service Provider)
RR3 is a non MPLS VPN RR that reflects IPv4 routes with MPLS labels to ASBR3 and ASBR4.
ip subnet-zerompls label protocol ldpmpls traffic-eng auto-bw timersno mpls ip!interface Loopback0ip address cc.cc.cc.cc 255.255.255.255!interface POS0/2ip address pp.0.0.1 255.0.0.0crc 16clock source internal!router ospf 30log-adjacency-changesnetwork cc.cc.cc.cc 0.0.0.0 area 300network pp.0.0.0 0.255.255.255 area 300!router bgp 300bgp log-neighbor-changesneighbor zz.zz.zz.zz remote-as 300neighbor zz.zz.zz.zz update-source Loopback0neighbor yy.yy.yy.yy remote-as 300neighbor yy.yy.yy.yy update-source Loopback0no auto-summary!address-family ipv4neighbor zz.zz.zz.zz activateneighbor zz.zz.zz.zz route-reflector-clientneighbor zz.zz.zz.zz send-label ! iBGP+labels session with ASBR3neighbor yy.yy.yy.yy activateneighbor yy.yy.yy.yy route-reflector-clientneighbor yy.yy.yy.yy send-label ! iBGP+labels session with ASBR4no auto-summaryno synchronizationexit-address-family!ip default-gateway 3.3.0.1ip classless!endASBR4 Configuration Example (Non-MPLS VPN Service Provider)
ASBR4 belongs to a non MPLS VPN service provider. ASBR4 and ASBR3 exchange IPv4 routes and MPLS labels by means of RR3.
Note
Do not redistribute eBGP routes learned into iBGP if you are using iBGP to distribute the routes and labels. This is not a supported configuration.
ip subnet-zeroip cef distributed!interface Loopback0ip address zz.zz.zz.zz 255.255.255.255!interface Ethernet0/2ip address qq.0.0.1 255.0.0.0!interface POS1/1/0ip address pp.0.0.2 255.0.0.0ip route-cache distributed!interface Hssi2/1/1ip address mm.0.0.2 255.0.0.0ip route-cache distributedmpls label protocol ldpmpls iphssi internal-clock!router ospf 30log-adjacency-changesauto-cost reference-bandwidth 1000redistribute connected subnetspassive-interface Ethernet0/2network zz.zz.zz.zz 0.0.0.0 area 300network pp.0.0.0 0.255.255.255 area 300network mm.0.0.0 0.255.255.255 area 300!router bgp 300bgp log-neighbor-changestimers bgp 10 30neighbor cc.cc.cc.cc remote-as 300neighbor cc.cc.cc.cc update-source Loopback0neighbor qq.0.0.2 remote-as 200no auto-summary!address-family ipv4neighbor cc.cc.cc.cc activateneighbor cc.cc.cc.cc send-labelneighbor qq.0.0.2 activateneighbor qq.0.0.2 advertisement-interval 5neighbor qq.0.0.2 send-labelneighbor qq.0.0.2 route-map IN inneighbor qq.0.0.2 route-map OUT outno auto-summaryno synchronizationexit-address-family!ip classless!access-list 1 permit ff.ff.ff.ff logaccess-list 2 permit ee.ee.ee.ee logaccess-list 3 permit bb.bb.bb.bb logaccess-list 4 permit aa.aa.aa.aa log!route-map IN permit 10match ip address 1match mpls-label!route-map IN permit 11match ip address 3!route-map OUT permit 12match ip address 2set mpls-label!route-map OUT permit 13match ip address 4!ip default-gateway 3.3.0.1ip classless!endCommand Reference
This feature uses no new or modified commands.Additional References
The following sections provide references related to MPLS VPNs.
Related Documents
Standards
Standard 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
Feature Information for MPLS VPN Inter-AS with ASBRs Exchanging IPv4 Routes and MPLS Labels
Table 2 lists the features in this module and provides links to specific configuration information.
Not all commands may be available in your Cisco IOS software release. For details on when support for specific commands was introduced, see the command reference documents.
Use Cisco Feature Navigator to find information about platform support and software image support. Cisco Feature Navigator enables you to determine which Cisco IOS and Catalyst OS software images support a specific software release, feature set, or platform. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn. An account on Cisco.com is not required.
Note
Table 2 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.
CCDE, CCENT, Cisco Eos, Cisco HealthPresence, the Cisco logo, Cisco Lumin, Cisco Nexus, Cisco StadiumVision, Cisco TelePresence, Cisco WebEx, DCE, and Welcome to the Human Network are trademarks; Changing the Way We Work, Live, Play, and Learn and Cisco Store are service marks; and Access Registrar, Aironet, AsyncOS, Bringing the Meeting To You, Catalyst, CCDA, CCDP, CCIE, CCIP, CCNA, CCNP, CCSP, CCVP, Cisco, the Cisco Certified Internetwork Expert logo, Cisco IOS, Cisco Press, Cisco Systems, Cisco Systems Capital, the Cisco Systems logo, Cisco Unity, Collaboration Without Limitation, EtherFast, EtherSwitch, Event Center, Fast Step, Follow Me Browsing, FormShare, GigaDrive, HomeLink, Internet Quotient, IOS, iPhone, iQuick Study, IronPort, the IronPort logo, LightStream, Linksys, MediaTone, MeetingPlace, MeetingPlace Chime Sound, MGX, Networkers, Networking Academy, Network Registrar, PCNow, PIX, PowerPanels, ProConnect, ScriptShare, SenderBase, SMARTnet, Spectrum Expert, StackWise, The Fastest Way to Increase Your Internet Quotient, TransPath, WebEx, and the WebEx logo 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. (0812R)
© 2005-2008 Cisco Systems, Inc. All rights reserved.
Feedback


