Matching based on as-path acl, Matching based on community acl, Matching based on excommunity acl – Brocade Multi-Service IronWare Routing Configuration Guide (Supporting R05.6.00) User Manual

Page 113: Matching based on destination network

Advertising
background image

Multi-Service IronWare Routing Configuration Guide

85

53-1003033-02

Filtering

The protocol bgp external parameter matches on eBGP (external) routes.

The protocol bgp internal parameter matches on iBGP (internal) routes.

The following sections contain examples of how to configure route maps that include match
statements that match on ACLs.

Matching based on AS-path ACL

To construct a route map that matches based on AS-path ACL 1, enter the following commands.

Brocade(config)# route-map PathMap permit 1

Brocade(config-routemap PathMap)# match as-path 1

Syntax: [no] match as-path string

The string parameter specifies an AS-path ACL and can be a number from 1 – 199. You can specify
up to five AS-path ACLs. To configure an AS-path ACL, use the ip as-path access-list command.
Refer to

“Defining an AS-path ACL”

on page 76.

Matching based on community ACL

To construct a route map that matches based on community ACL 1, enter the following commands.

Brocade(config)# ip community-list 1 permit 123:2

Brocade(config)# route-map CommMap permit 1

Brocade(config-routemap CommMap)# match community 1

Syntax: [no] match community string

The string parameter specifies a community list ACL. To configure a community list ACL, use the ip
community-list command. Refer to

“Defining a community ACL”

on page 79.

Matching based on excommunity ACL

To construct a route map that matches based on BGP Extended Community attributes in the
incoming BGP routes, enter the following commands.

Brocade(config)#ip extcommunity-list 1 permit rt 1:3 soo 1:1

Brocade(config)#route-map ExtCommMap permit 20

Brocade(config-routemap ExCommMap)# match extcommunity 1

Syntax: [no] match extcommunity string

The string parameter specifies a community list ACL. To configure a community list ACL, use the ip
community-list command. Refer to

“Defining a community ACL”

on page 79.

Matching based on destination network

You can use the results of an IP ACL or an IP prefix list as the match condition.

To construct a route map that matches based on destination network, enter commands such as
the following.

Brocade(config)# route-map NetMap permit 1

Brocade(config-routemap NetMap)# match ip address 1

Syntax: [no] match ip address ACL-name-or-num

Syntax: [no] match ip address prefix-list name

Advertising