beautypg.com

Brocade FastIron Ethernet Switch Layer 3 Routing Configuration Guide User Manual

Page 515

background image

This example is a simple illustration of route-map continue clauses. If the match clause of either route
map instance 5 or 10 matches, the route map traversal continues at instance 100.

route-map test permit 5

match community my_community1

set comm-list delete my_community1

continue 100

route-map test permit 10

match community my_community2

set comm-list delete my_community2

continue 100

route-map test permit 100

match as-path my_aspath

set community 1234:5678 additive

The following example shows the route map "test." The show ip bgp route output shows the
consequences of the action in instance 1 (set weight = 10); instance 2 (metric becomes 20); and
instance 5 (prepend as_path 300).

device# show route-map test

route-map test permit 1

set weight 10

route-map test permit 2

set metric 20

continue 3

route-map test permit 3

set community 10:20

continue 4

route-map test permit 4

set community 30:40

continue 5

route-map test permit 5

set as-path prepend 300

continue 6

device(config-routemap test)# show ip bgp route

Total number of BGP Routes: 1

Status A:AGGREGATE B:BEST b:NOT-INSTALLED-BEST C:CONFED_EBGP D:DAMPED

E:EBGP H:HISTORY I:IBGP L:LOCAL M:MULTIPATH m:NOT-INSTALLED-MULTIPATH

S:SUPPRESSED F:FILTERED s:STALE

Prefix Next Hop Metric LocPrf Weight Status

1 10.8.8.0/24 10.8.8.3 20 100 0 BE

AS_PATH: 300 200

Syntax: show route-map map-name

The map-name is the name of the route map.

Syntax: show ip bgp route

In the following example, the continue clause of instance 1 has been changed so that program flow
jumps to instance 5. The resulting BGP4 route only has the weight updated and as-path prepended.
These changes show route-map route name

Syntax: route-map

Syntax: [no] continue instance number

Syntax: show ip bgp route

In this example, a match clause has been added to instance 8. Because the match clause of instance 8
does not get fired, the search for the next instance continues to the end of the route-map. The set
statements set the weight to 10, prepend 300, prepend 100 to the as-path, set the community to none,
and set the local preference to 70. The results of this route-map traversal appear in the output of the
show ip bgp route command.

device# show route-map test

route-map test permit 1

set weight 10

continue 5

route-map test permit 2

Configuring BGP4 (IPv4)

FastIron Ethernet Switch Layer 3 Routing Configuration Guide

515

53-1003087-04