
- •Acknowledgments
- •Introduction
- •Assessment Test
- •Answers to Assessment Test
- •Service Provider Networks
- •Scalability
- •Traffic Engineering
- •Quality of Service
- •MPLS Label Stack
- •Shim Header
- •MPLS Architecture
- •Control
- •Forwarding
- •MPLS Label Switching
- •MPLS Network Components
- •Device Output
- •Label-Switched Paths
- •MPLS Applications
- •MPLS and ATM
- •Overlay
- •Quality of Service
- •Traffic Engineering
- •Summary
- •Exam Essentials
- •Key Terms
- •Review Questions
- •Answers to Review Questions
- •Routing Review
- •Frame-Mode MPLS Working Example
- •Network Routing Protocol Examples
- •MPLS Step by Step
- •Label Distribution
- •Assigning Labels
- •Troubleshooting and Verification
- •Device Configuration
- •IGP Verification
- •CEF Verification
- •MPLS Verification
- •Label Distribution and Bindings
- •Binding Verification
- •Troubleshooting the Network
- •Hiding Service Provider Devices
- •Summary
- •Exam Essentials
- •Key Terms
- •Review Questions
- •Answers to Review Questions
- •Frame-Mode MPLS and ATM
- •Frame-Mode MPLS and ATM Configuration
- •Cell-Mode MPLS
- •Label Binding with ATM
- •Cell-Mode Label Switching
- •VC Merge
- •Loop Prevention
- •Cell-Mode MPLS Configuration
- •Summary
- •Exam Essentials
- •Key Terms
- •Review Questions
- •Answers to Review Questions
- •VPNs 101
- •Point-to-Point Connections
- •Virtual Private Networks
- •Categories of VPNs
- •VPN Routing
- •Peer-to-Peer VPNs
- •Optimal Routing
- •Peer-to-Peer Security
- •Peer-to-Peer VPN Routing
- •Summary
- •Exam Essentials
- •Key Terms
- •Review Questions
- •Answers to Review Questions
- •Service Provider Configuration
- •MPLS VPNs
- •Virtual Router
- •Virtual Routing and Forwarding Tables
- •MPLS Operational Overview
- •MP-BGP Configuration
- •An MPLS VPN Example
- •Route Distinguisher
- •MP-IBGP Configuration Example
- •Initial Network Configuration
- •MP-IBGP Configuration
- •Verification
- •Summary
- •Exam Essentials
- •Key Terms
- •Review Questions
- •Answers to Review Questions
- •A Review of VPNs
- •Configuring a Simple MPLS VPN
- •Configuring VRF Interfaces
- •Running RIP in an MPLS VPN
- •Configuring RIPv2 with Address-Family ipv4
- •Configuring Redistribution
- •Route Targets
- •Configuring Route Targets
- •A Review of Simple VPN Configuration
- •Configuring MPLS in the Service Provider Network
- •Simple VPN Configuration
- •Configuring the PE-CE Routing Protocol
- •Lab: Configuring an MPLS VPN
- •Configuring POP Routers
- •VPN Configuration
- •Raleigh Running-Config
- •Atlanta Running-Config
- •Peer 1 Running-Config
- •Peer 2 Running-Config
- •Verification with Ping
- •Routing Table Isolation
- •Verifying VRF Routes
- •Summary
- •Exam Essentials
- •Key Terms
- •Review Questions
- •Answers to Review Questions
- •MP-BGP and OSPF
- •A Review of OSPF
- •OSPF Router Types
- •Link State Advertisements
- •OSPF for MPLS VPNs
- •OSPF Super-Backbone
- •Preventing Routing Loops
- •Path Selection
- •MPLS VPN OSPF Lab
- •Summary
- •Exam Essentials
- •Key Terms
- •Review Questions
- •Answers to Review Questions
- •Static Routing
- •Device Configuration
- •VPN Configuration
- •Raleigh Running-Config
- •Atlanta Running-Config
- •Peer Router Configuration
- •Verification with Ping
- •Verifying Static VRF Routes
- •E-BGP and MPLS VPNs
- •Device Configuration
- •E-BGP Operation
- •AS-Override
- •VPN Configuration
- •Raleigh Running-Config
- •Atlanta Running-Config
- •Peer Router Configuration
- •Peer 1 Running-Config
- •Peer 2 Running-Config
- •Verification with Ping
- •Advanced MPLS VPN Topologies
- •Simple VPNs
- •Central Services MPLS VPN Topology
- •Overlay MPLS VPN Topology
- •Summary
- •Exam Essentials
- •Key Terms
- •Review Questions
- •Answers to Review Questions
- •Challenge Lab 1
- •MPLS
- •MP-IBGP
- •Answer to Lab 1.1
- •Answer to Lab 1.2
- •Answer to Lab 1.3
- •Challenge Lab 2
- •Tag Switching
- •MP-IBGP
- •Answer to Lab 2.1
- •Answer to Lab 2.2
- •Answer to Lab 2.3
- •Challenge Lab 3
- •VRF Configuration
- •RIPv2
- •Redistribution
- •Answer to Lab 3.1
- •Answer to Lab 3.2
- •Answer to Lab 3.3
- •Challenge Lab 4
- •VRF Configuration
- •OSPF
- •Redistribution
- •Answer to Lab 4.1
- •Answer to Lab 4.2
- •Answer to Lab 4.3
- •Challenge Lab 5
- •VRF Configuration
- •Static Routes and Redistribution
- •Answer to Lab 5.1
- •Answer to Lab 5.2
- •Challenge Lab 6
- •VRF Configuration
- •E-BGP Configuration
- •Answer to Lab 6.1
- •Answer to Lab 6.2
- •Service Provider Network Configuration with OSPF
- •Router Configuration
- •Routing Tables
- •Tags
- •Service Provider Network Configuration with IS-IS
- •Router Configuration
- •Routing Tables
- •Tag Switching Forwarding Tables
- •Glossary

Running RIP in an MPLS VPN 217
Configuring Route Targets
Route targets are configured from inside VRF configuration. To configure an export route target, use the route-target export number command. To configure an import route target, use the route-target import number command.
It’s possible to have multiple import and export route targets. Chapter 8,
“Advanced MPLS Topics,” explains how this works.
Remember, route targets are attached to VPN routes when they are redistributed into MP-BGP (export route targets). Route targets are also used (or read) when routes are redistributed from MP-BGP back into the VRF routing protocol (import route targets).
Let me show you how all of this works. Since route distinguishers can’t be used to differentiate between routes in MP-BGP, route targets must be used.
On PE1, from VRF configuration, you need to configure route targets for vpn_a and vpn_b as follows:
PE1#config t
PE1(config)#ip vrf vpn_a
PE1(config-vrf)#route-target export 100:1
PE1(config-vrf)#exit
PE1(config)#ip vrf vpn_b
PE1(config-vrf)route-target export 500:7
Route Target Value Selection
For a simple VPN like the one I’m using to explain the configuration commands with, the route target value is usually the same as the route distinguisher value. You might be inclined to link the route distinguisher and route targets together because they can have the same values, but they serve very different purposes. The route distinguisher keeps IP prefixes from overlapping in MP-BGP. The route target is used to help differentiate VPN routes. Don’t confuse the two. The values in the example network of 100:1 and 500:7 are an attempt to keep you from linking the route distinguisher and route target values.
Copyright ©2002 SYBEX, Inc., Alameda, CA |
www.sybex.com |

218 Chapter 6 MPLS VPNs and RIP
Figure 6.12 illustrates VPN routes from PE1 with the configured route targets.
F I G U R E 6 . 1 2 VPN routes from PE1 with route targets
|
|
|
|
ip vrf vpn_a |
|
|
|
|
|||
|
|
|
|
rd 1:1 |
|
|
|
|
|||
|
|
|
|
route-target export 100:1 |
|
||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Customer A1 |
R |
10.1.0.0 |
|
|
|
|
|
|
|
10.1.0.0/16 |
|
|
|
C |
10.2.0.0 |
|
|
MP-IBGP |
|
||
|
|
|
|
|
|
||||||
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|||
10.2.0.0 |
|
|
|
|
|
||||||
|
|
|
|
RD |
NLRI |
RT |
|||||
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
1:1 |
10.1.0.0 |
100:1 |
|
|
|
|
|
|
|
|
|
1:1 |
10.2.0.0 |
100:1 |
|
|
|
|
PE1 |
|
|
|
|
1:2 |
10.1.0.0 |
500:7 |
|
|
|
|
ip vrf vpn_b |
1:2 |
10.2.0.0 |
500:7 |
|||||
|
|
|
|
||||||||
|
|
10.2.0.0 |
rd 1:2 |
|
|
|
|
||||
|
|
|
|
|
|||||||
10.1.0.0/16 |
|
|
|
route-target export 500:7 |
|
||||||
|
|
|
|
||||||||
|
|
Customer B1 |
R |
10.1.0.0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
C |
10.2.0.0 |
|
|
|
|
|
|
||
|
|
|
|
|
|
|
|
|
|
||
|
|
|
|
|
|
|
|
|
|
|
|
Figure 6.13 illustrates VPN routes from PE1 as they arrive at PE2.
F I G U R E 6 . 1 3 VPN routes from PE1 arriving at PE2
From PE1 |
|
|
|
Customer A2 |
|
|
|
|
|
|
|
|
MP-IBGP |
|
|
||
|
RD |
|
NLRI |
RT |
|
|
1:1 |
10.1.0.0 |
100:1 |
PE2 |
|
|
1:1 |
10.2.0.0 |
100:1 |
||
|
|
||||
|
1:2 |
10.1.0.0 |
500:7 |
|
|
|
1:2 |
10.2.0.0 |
500:7 |
Customer B2 |
When PE2 does a redistribute from MP-BGP into the routing protocol for a particular VRF, it needs to have an import route target configured. The configuration for PE2 is as follows:
PE2#config t
PE2(config)#ip vrf vpn_a
PE2(config-vrf)#route-target import 100:1
PE2(config-vrf)#exit
PE2(config)#ip vrf vpn_b
PE2(config-vrf)route-target import 500:7
Copyright ©2002 SYBEX, Inc., Alameda, CA |
www.sybex.com |