Chapter 3
Configuring Remote Access to MPLS VPN
Command
Step 3
Router(config-vrf)# vpn id
route-distinguisher
Step 4
Router(config-vrf)# route-target {import |
export | both} route-target-ext-community
Example 3-10 Creating a VRF Configuration for a VPN
ip vrf common
For more information about creating VRFs, see the
Note
Instances" section on page
Associating a VRF Configuration for a VPN with a Virtual Template Interface
After you create a VRF configuration for a VPN, associate the VRF with a virtual template interface.
The virtual template interface is used to create and configure a virtual access interface (VAI).
To associate a VRF, enter the following commands beginning in global configuration mode:
Command
Step 1
Router(config)# interface virtual-template
number
Step 2
Router(config-if)# ip vrf forwarding
vrf-name
Step 3
Router(config-if)# ip unnumbered type number
Example 3-11 Associating a VRF Configuration for a VPN with a Virtual Template Interface
interface Virtual-Template1
Note
•
•
OL-2226-23
rd 100:1000
vpn id 100:1000
route-target export 100:1000
route-target import 100:1000
3-13.
ip vrf forwarding common
ip unnumbered Loopback1
For more information about configuring a virtual template interface, see the
Template Interface" section on page
For more information about creating and associating VRFs, see the
and Forwarding Instances" section on page 3-13
Purpose
Associates the VPN with the VRF.
Creates a list of import and export route target communities
for the specified VRF.
"Configuring Virtual Routing and Forwarding
Purpose
Creates a virtual template interface and enters interface
configuration mode.
Associates the VRF with the virtual template interface.
Enables IP without assigning a specific IP address to the
interface.
The type and number arguments are the type and number of
another interface on which the router has an assigned
IP address. The interface cannot be another unnumbered
interface.
3-17.
and the
"Associating VRFs" section on page
Cisco 10000 Series Router Software Configuration Guide
Configuration Tasks for RA to MPLS VPN
"Configuring a Virtual
"Configuring Virtual Routing
3-13.
3-29