beautypg.com

Setting parameters in the routes – Brocade Network OS Administrator’s Guide v4.1.1 User Manual

Page 635

background image

Setting parameters in the routes

Use the following command to define a set statement that prepends an AS number to the AS path on
each route that matches the corresponding match statement.

switch(config-routemap-myroutemap1/permit10)# set as-path prepend 7701000

Operands for the route-map set statement are as follows:

as-path prepend num,num,… — Adds the specified AS numbers to the front of the AS-path list for the
route. Values range from 1 through 65535 for two-byte ASNs, and from 1 through 4294967295 if AS4s
have been enabled.

automatic-tag — Calculates and sets an automatic tag value for the route. (This parameter applies
only to routes redistributed into OSPF.)

comm-list — Deletes a community from the community attributes field for a BGP4 route.

community — Sets the community attribute for the route to the number or well-known type specified.

dampening [half-life] — Sets route dampening parameters for the route; half-life specifies the number
of minutes after which the route penalty becomes half its value.

ip next hop ip-addr — Sets the next-hop IP address for a route that matches a match statement in the
route map.

ip next hop peer-address — Sets the BGP4 next hop for a route to the neighbor address.

local-preference num — Sets the local preference for the route. Values range from 0 through
4294967295.

metric [+ |-] num | none — Sets the Multi-Exit Discriminator (MED) value for the route. Values range
from 0 through 4294967295. The default is 0.

set metric num — Sets the metric for the route to the specified number.
set metric+ num — Increases the route metric by the specified number.
set metric- num — Decreases route metric by the specified number.
set metric none — Removes the metric from the route (removes the MED attribute from the BGP4

route).

metric-type type-1 | type-2 — Changes the metric type of a route redistributed into OSPF.

metric-type internal — Sets the route MED to the same value as the IGP metric of the BGP4 next-hop
route, for advertising a BGP4 route to an EBGP neighbor.

next hop ip-addr — Sets the IP address of the next-hop device.

origin igp incomplete — Sets the route’s origin to IGP or INCOMPLETE.

tag — Keyword that sets the tag to be an AS-path attribute. (This parameter applies only to routes
redistributed into OSPF.)

weight num — Sets the weight for the route. Values range from 0 through 65535.

Using a route-map continue statement for BGP4 routes

A continue statement in a route-map directs program flow to skip over route-map instances to another,
user-specified instance. If a matched instance contains a continue statement, the system looks for the
instance that is identified in the statement.

The continue statement in a matching instance initiates another traversal at the instance specified. The
system records all of the matched instances and, if no deny statements are encountered, proceeds to
execute the set clauses of the matched instances.

Setting parameters in the routes

Network OS Administrator’s Guide

635

53-1003225-04