Reference Guide

Example of the match Command to Match All Specified Values
FTOS(conf)#route-map force permit 10
FTOS(config-route-map)#match tag 1000
FTOS(config-route-map)#match metric 2000
In the following example, instance 10 permits the route having a tag value of 1000 and instances 20 and 30 deny the route
having a tag value of 1000. In this scenario, FTOS scans all the instances of the route-map for any permit statement. If
there is a match anywhere, the route is permitted. However, other instances of the route-map deny it.
Example of the match Command to Permit and Deny Routes
FTOS(conf)#route-map force permit 10
FTOS(config-route-map)#match tag 1000
FTOS(conf)#route-map force deny 20
FTOS(config-route-map)#match tag 1000
FTOS(conf)#route-map force deny 30
FTOS(config-route-map)#match tag 1000
Configuring Match Routes
To configure match criterion for a route map, use the following commands.
Match routes with the same AS-PATH numbers.
CONFIG-ROUTE-MAP mode
match as-path as-path-name
Match routes with COMMUNITY list attributes in their path.
CONFIG-ROUTE-MAP mode
match community community-list-name [exact]
Match routes whose next hop is a specific interface.
CONFIG-ROUTE-MAP mode
match interface interface
The parameters are:
For a Fast Ethernet interface, enter the keyword FastEthernet then the slot/ port information.
For a 1-Gigabit Ethernet interface, enter the keyword gigabitEthernet then the slot/port information.
For a loopback interface, enter the keyword loopback then a number between zero (0) and 16383.
For a port channel interface, enter the keywords port-channel then a number.
For a SONET interface, enter the keyword sonet then the slot/port information.
For a 10-Gigabit Ethernet interface, enter the keyword tengigabitEthernet then the slot/port
information.
For a VLAN, enter the keyword vlan then a number from 1 to 4094.
For a 40-Gigabit Ethernet interface, enter the keyword fortyGigE then the slot/port information.
Match destination routes specified in a prefix list (IPv4).
CONFIG-ROUTE-MAP mode
match ip address prefix-list-name
Match destination routes specified in a prefix list (IPv6).
CONFIG-ROUTE-MAP mode
match ipv6 address prefix-list-name
Match next-hop routes specified in a prefix list (IPv4).
104