beautypg.com

Matching on a community acl, Matching on a destination network, Matching on a next-hop device – Brocade Network OS Administrator’s Guide v4.1.1 User Manual

Page 637: Matching on a route source

background image

Matching on a community ACL

To configure a route map that matches on community ACL 1:

switch(config)# rbridge-id 5

switch(config-rbridge-id-5)# ip community-list standard 1 permit 123:2

switch(config-rbridge-id-5)# route-map mycommroutemap1 permit 10

switch(config-route-map-mycommroutemap1/permit/10)# match community 1

Matching on a destination network

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

To configure a route map that matches on a destination network:

switch(config)# rbridge-id 5

switch(config-rbridge-id-5)# route-map mynetroutemap1 permit 10

switch(config-route-map-mynetroutemap1/permit/10)# match ip address prefix-list 1

Matching on a next-hop device

To configure a route map that matches on a next-hop device:

switch(config)# rbridge-id-5

switch(config-rbridge-id-5)# route-map myhoproutemap1 permit 10

switch(config-route-map-myhoproutemap1/permit/10)# match ip next-hop prefix-list 1

Matching on a route source

To configure a route map that matches on a route source:

switch(config)# rbridge-id 5

switch(config)# access-list 10 permit 192.168.6.0 0.0.0.255

switch(config-rbridge-id-5)# route-map mysourceroutemap1 permit 1

switch(config-route-map-mysourceroutemap1/permit/10)# match ip route-source prefix-

list 10

Matching on routes containing a specific set of communities

To configure a route map that matches on a set of communities:

switch(config)# rbridge-id 5

switch(config-rbridge-id-5)# ip community-list standard std_1 permit 12:34 no-export

switch(config-rbridge-id-5)# route-map mycommroutemap2 permit 1

switch(config-routemap-mycommroutemap2/permit/1)# match community std_1 exact-match

NOTE
The first command configures a community ACL that contains community number 12:34 and community
name "no-export." The remaining commands configure a route map that matches the community
attributes field in BGP4 routes against the set of communities in the ACL. A route matches the route
map only if the route contains all the communities in the ACL and no other communities.

To configure an additional community-based route map for comparison with the first:

switch(config)# rbridge-id 5

switch(config-rbridge-id-5)# ip community-list standard std_2 permit 23:45 56:78

switch(config-rbridge-id-5)# route-map mycommroutemap3 permit 1

switch(config-routemap-mycommroutemap3/permit/1)# match community std_1 std_2 exact-

match

Matching on a community ACL

Network OS Administrator’s Guide

637

53-1003225-04