beautypg.com

Brocade Multi-Service IronWare Multiprotocol Label Switch (MPLS) Configuration Guide (Supporting R05.6.00) User Manual

Page 649

background image

Multi-Service IronWare Multiprotocol Label Switch (MPLS) Configuration Guide

625

53-1003031-02

Configuring BGP VPNs on a PE

6

Route maps applied to a VRF can coexist with route maps that are applied to a BGP neighbor. The
user can filter routes from being imported into a VRF using the import and export route commands.
This allows the user to accept or deny the routes for one VRF without affecting the routes that are
imported or exported from other VRFs. To do this, the user must define a route-map import or
export command.

To configure a VRF to apply the import route map ImportOne, use the following command at the
VPNv4 prompt.

Brocade(config)# vrf vrfone

Brocade(config-vrf-vrfone)# import map ImportOne

Brocade(config-vrf-vrfone)# exit-vrf

Brocade(config)#

Syntax: [no] import map map-name

The map-name variable is the name of the route map that the user wants to apply to the VRF.

To configure a VRF to apply the export route map ExportOne, use the following command at the
VPNv4 prompt.

Brocade(config)# vrf vrfone

Brocade(config-vrf-vrfone)# export map ExportOne

Brocade(config-vrf-vrfone)# exit-vrf

Brocade(config)#

Syntax: [no] export map map-name

The map-name variable is the name of the route map that the user wants to apply to the VRF.

Defining an extended community for use with a route map

Routes can be filtered in or out of a PE by the use of an IP extended community to identify them. In
this situation, a route is identified by its extended community variable. It is entered as a route
target in an IP extended community list and then matched in a route-map command. This route
map is then applied from the PE that is defining the route to be filtered to the PE where the route
filter is to be implemented by using a neighbor ip_address [route-map] command. When a VRF
exists on the neighbor that exports the route-target being blocked, all routes from that VRF are
blocked from being sent to the PE where the filter is defined.

To define the IP extended community list 20 to define route target RT 100:6 to be denied, enter the
following command.

Brocade(config)# ip extcommunity-list 20 deny rt 100:6

Syntax: [no] ip extcommunity-list num route-map [permit] [deny] [rt route ID] [soo route ID]

The num variable is the extended community list number.

The permit | deny parameter indicates that action the device takes when the match is true.