Associating vrfs – Cisco 10000 User Manual

Page 95

Advertising
background image

3-13

Cisco 10000 Series Router Software Configuration Guide

OL-2226-23

Chapter 3 Configuring Remote Access to MPLS VPN

Configuration Tasks for RA to MPLS VPN

Configuring Virtual Routing and Forwarding Instances

Configure VRF instances on each PE router in the provider network. Create one VRF for each VPN
connected using the ip vrf command in global configuration mode or router configuration mode.

To create the VRF, do the following:

Specify the correct route distinguisher (RD) used for that VPN using the rd command in VRF
configuration submode. The RD is used to extend the IP address so that you can identify the VPN
to which it belongs.

Set up the import and export policies for the MP-BGP extended communities using the route-target
command in VRF configuration submode. These policies are used for filtering the import and export
process.

To configure a VRF, enter the following commands on the PE router beginning in global configuration
mode:

Associating VRFs

After you define and configure the VRFs on the PE routers, associate each VRF with:

An interface or subinterface

A virtual template interface

The virtual template interface is used to create and configure a virtual access interface (VAI). For
information about configuring a virtual template interface, see the

“Configuring a Virtual Template

Interface” section on page 3-17

.

To associate a VRF, enter the following commands on the PE router beginning in interface configuration
mode:

Command

Purpose

Step 1

Router(config)# ip vrf vrf-name

Enters VRF configuration mode and defines the virtual routing
instance by assigning a VRF name.

Step 2

Router(config-vrf)# rd route-distinguisher

Creates routing and forwarding tables.

Step 3

Router(config-vrf)# route-target {import |

export

| both} route-target-ext-community

Creates a list of import and export route target communities for
the specified VRF.

Step 4

Router(config-vrf)# vpn id oui:vpn-index

Assigns or updates a VPN ID on the VRF. The VPN ID uniquely
identifies a VPN and VRF across all VHG and PE routers in the
network.

Note

The VPN ID is used for provisioning only. BGP routing
updates do not include the VPN ID.

Command

Purpose

Step 1

Router(config-if)# ip vrf forwarding

vrf-name

Associates a VRF with an interface or subinterface.

Step 2

Router(config-if)# ip address ip-address

mask

Sets a primary or secondary address for an interface.

Step 3

Router(config-if)# exit

Returns to global configuration mode.

Advertising