beautypg.com

Brocade Network OS Administrator’s Guide v4.1.1 User Manual

Page 633

background image

• If a route does not match any match statements in the route map, then the route is denied. This is

the default action. To change the default action, configure the last match statement in the last
instance of the route map to permit any any .

• If there is no match statement, the software considers the route to be a match.
• For route maps that contain address filters, AS-path filters, or community filters, if the action specified

by a filter conflicts with the action specified by the route map, the route map action takes precedence
over the filter action.

If the route map contains set statements, routes that are permitted by the route map match statements
are modified according to the set statements.

Match statements compare the route against one or more of the following:

• The route BGP4 MED (metric)
• The IP address of the next hop device
• The route tag
• For OSPF routes only, the route type (internal, external type 1, or external type 2)
• An AS-path access control list (ACL)
• A community ACL
• An IP prefix list

For routes that match all of the match statements, the route map set statements can perform one or
more of the following modifications to the route attributes:

• Prepend AS numbers to the front of the route AS-path. By adding AS numbers to the AS-path, you

can cause the route to be less preferred when compared to other routes based on the length of the
AS-path.

• Add a user-defined tag or an automatically calculated tag to the route.
• Set the community attributes.
• Set the local preference.
• Set the MED (metric).
• Set the IP address of the next-hop device.
• Set the origin to IGP or INCOMPLETE.
• Set the weight.

When you configure parameters for redistributing routes into BGP4, one of the optional parameters is a
route map. If you specify a route map as one of the redistribution parameters, the device matches the
route against the match statements in the route map. If a match is found and if the route map contains
set statements, the device sets the attributes in the route according to the set statements.

To create a route map, you define instances of the map by a sequence number.

The route-mapname is a string of characters that defines the map instance. Map names can be up to
80 characters long. The following is the complete syntax of the route-map command:

[no] route-map name [permit | deny] instance_number] | [continue sequence_number | match [as-
path
ACL_name | community ACL_name | interface [fortygigabitethernet rbridge-id/slot/port
gigabitethernet rbridge-id/slot/port | loopback port tengigabitethernet rbridge-id/slot/port ve port] | ip
[address prefix-list name] | next-hop prefix-list name | route-source prefix-list name] | metric
number | protocol bgp [external | internal | static-network] | route-type [internal | type-1 | type-2] |
tag number | set [as-path [prepend | tag] | automatic-tag | comm-list | community
community_number | additive | local-as | no-advertise | no-export | none] | dampening number |
distance number] ip next-hop [A.B.C.D | peer-address] | local-preference number] | metric [add
number | assign | none | sub] | metric-type [external | internal | type-1 | type-2] | origin [igp |
incomplete] | route-type [internal | type-1 | type-2] | tag number | weight number]

Operands for this command are defined below.

The permit | deny options specify the action the device will take if a route matches a match statement:

Configuring BGP

Network OS Administrator’s Guide

633

53-1003225-04