Setting parameters in the routes – Brocade FastIron Ethernet Switch Layer 3 Routing Configuration Guide User Manual
Page 448

The match protocol bgp external option will match the eBGP routes.
The match protocol bgp internal option will match the iBGP routes.
The match protocol bgp static-network option will match the static-network BGP4 route, applicable
at BGP4 outbound policy only.
Matching based on interface
The match option has been added to the route-map command that distributes any routes that have
their next hop out one of the interfaces specified. This feature operates with the following conditions:
• The match interface option can only use the interface name (for example ethernet 1/2) and not the
IP address as an argument.
• The match interface option is only effective during redistribution and does not apply for other route
map usage such as: bgp outbound route update policy.
• The match interface option can be applied to other types of redistribution such as redistributing
OSPF routes to BGP4, or filtering out all OSPF routes that point to a specific interface.
To configure the match-interface option, use the following command.
device(config)# route-map test-route permit 99
device(config-routemap test-route)# match interface ethernet 1/1 eth 3/2
device(config-routemap test-route)# exit
Syntax: [no] match interface interface interface ...
The interface variable specifies the interface that you want to use with the match interface command.
Up to 5 interfaces of the following types can be specified:
• ethernet slot/port
• loopback loopback-number
• null0
• tunnel tunnel-ID
• ve ve-ID
Setting parameters in the routes
Use the following command to define a set clause that prepends an AS number to the AS path on
each route that matches the corresponding match statement.
device(config-routemap GET_ONE)# set as-path prepend 65535
Syntax: [no] set [ as-path [ prepend as-num,as-num,... ] ] | [ automatic-tag ] | [ comm-list acl
delete ] | [ community num : num | num | additive | local-as | no-advertise | no-export ] | [
dampening [ half-life reuse suppress max-suppress-time ] ] [ ip next hop ip-addr ] [ ip next-hop
peer-address ] | [ local-preference num ] | [ metric [ + | - ] num | none ] | [ metric-type type-1 |
type-2 ] | external [ metric-type internal ] | [ next-hop ip-addr ] | [ origin igp | incomplete ] | [ tag ] |
[ weight num ]
The as-path prependnum,num,... parameter adds the specified AS numbers to the front of the AS-
path list for the route. The range of num values is 1 - 65535 for two-byte ASNs and 1 - 4294967295 if
AS4s have been enabled.
The automatic-tag parameter calculates and sets an automatic tag value for the route.
NOTE
This parameter applies only to routes redistributed into OSPF.
Setting parameters in the routes
448
FastIron Ethernet Switch Layer 3 Routing Configuration Guide
53-1003087-04