Specifying the match conditions – Brocade Network OS Administrator’s Guide v4.1.1 User Manual
Page 634

• If you specify deny, the device does not advertise or learn the route.
• If you specify permit, the device applies the match and set clauses associated with this route map
instance.
The instance-number parameter specifies the instance of the route map you are defining. The
following illustrates a creation of a route-map instance 10, which is done in RBridge ID mode. Notice
the change in the command prompt.
switch(config)# rbridge-id 5
switch(config-rbridge-id-5)# routemap myroutemap1 permit 10
switch(config-route-map-myroutemap1/permit/10)#
To delete a route map, enter a command such as the following in RBridge ID configuration mode.
When you delete a route map, all the permit and deny entries in the route map are deleted.
switch(config-rbridge-id-5)# no route-map myroutemap1
This command deletes a route map named myroutemap1. All entries in the route map are deleted.
To delete a specific instance of a route map without deleting the rest of the route map, enter a
command such as the following.
switch(config-rbridge-id-5)# no route-map myroutemap1 permit 10
This command deletes the specified instance from the route map but leaves the other instances of the
route map intact.
Specifying the match conditions
Use the match command to define the match conditions for instance 10 of the route map
myroutemap1.
switch(config-route-map-myroutemap1/permit/10)# match ?
Operands for the route-map match statement are as follows:
community num — Specifies a community ACL. (The ACL must already be configured.)
ip address | next-hop acl-num | prefix-list string — Specifies an ACL or IP prefix list. Use this
parameter to match based on the destination network or next-hop gateway. To configure an IP ACL for
use with this command, use theip access-list command. To configure an IP prefix list, use the ip
prefix-list command.
ip route-source acl | prefix name — Matches on the source of a route (the IP address of the neighbor
from which the device learned the route).
metric num — Compares the route MED (metric) to the specified value.
next-hop address-filter-list — Compares the IP address of the route next-hop to the specified IP
address filters. The filters must already be configured.
route-type [internal | type-1 | type-2] — Applies only to OSPF routes.
• internal — Sets an internal route type.
• type-1 — Sets an OSPF external route type 1.
• type-2 — Sets an OSPF external route type 2.
tag tag-value — Compares the route tag to the specified tag value.
protocol bgp static-network — Matches on BGP4 static-network routes.
protocol bgp external — Matches on EBGP (external) routes.
protocol bgp internal — Matches on IBGP (internal) routes.
Specifying the match conditions
634
Network OS Administrator’s Guide
53-1003225-04