
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/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/1 ethernet 1/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
unit/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 prepend
num,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.
The
comm-list
parameter deletes a community from the community attributes field for a BGP4 route.
The
community
parameter sets the community attribute for the route to the number or well-known type you specify.
The
dampening
[
half-life reuse suppress max-suppress-time
] parameter sets route dampening parameters for the route. The
half-life
parameter specifies the number of minutes after which the route penalty becomes half its value. The
reuse
parameter specifies how low a
route penalty must become before the route becomes eligible for use again after being suppressed. The
suppress
parameter specifies
Filtering
FastIron Ethernet Switch Layer 3 Routing
53-1003627-04
413
Summary of Contents for FastIron SX 1600
Page 2: ...FastIron Ethernet Switch Layer 3 Routing 2 53 1003627 04 ...
Page 16: ...FastIron Ethernet Switch Layer 3 Routing 16 53 1003627 04 ...
Page 20: ...FastIron Ethernet Switch Layer 3 Routing 20 53 1003627 04 ...
Page 142: ...FastIron Ethernet Switch Layer 3 Routing 142 53 1003627 04 ...
Page 150: ...FastIron Ethernet Switch Layer 3 Routing 150 53 1003627 04 ...
Page 200: ...FastIron Ethernet Switch Layer 3 Routing 200 53 1003627 04 ...
Page 214: ...FastIron Ethernet Switch Layer 3 Routing 214 53 1003627 04 ...
Page 350: ...FastIron Ethernet Switch Layer 3 Routing 350 53 1003627 04 ...
Page 476: ...FastIron Ethernet Switch Layer 3 Routing 476 53 1003627 04 ...
Page 588: ...FastIron Ethernet Switch Layer 3 Routing 588 53 1003627 04 ...