383
14.2.3.5 match interface
Command: match interface <interface-name >
no match interface [<interface-name >
Function:
Configure to match the interfaces. The “
no match interface
[<interface-name >
“ deletes this configuration.
Parameter:
“
<interface-name >
“ is the name of the interface.
Command Mode:
route-map mode
Usage Guide:
This command matches according to the next-hop messages in the route.
If the matching succeeded, then the “permit” or “deny” action in the route-map is
performed. This command is only used in RIP and OSPF protocols.
Example:
Switch#config terminal
Switch(config)#route-map r1 permit 5
Switch(config-route-map)#match interface vlan1
14.2.3.6 match ip
Command: match ip <address | next-hop> <ip-ACL-name | ip-ACL-num |
prefix-list list-name>
no match ip <address | next-hop> [<ip-ACL-name | ip-ACL-num |
prefix-list list-name>]
Function:
Configure the routing prefix or next-hop. The “
no match ip <address |
next-hop> [<ip-ACL-name | ip-ACL-num | prefix-list list-name>]
” deletes this
configuration.
Parameter: <address >
means matching the routing prefix,
<next-hop>
means matching
the routing next-hop,
<ip-ACL-name >
is the name of ip access-list,
<ip-ACL-num >
is
the ip access-list sequence number, ranging between 1
~
199 or 1300
~
2699
(
extension
scope
)
,
prefix-list
means the matching should follow the prefix-list rules,
list-name
is
the name of prefix-list.
Command Mode:
route-map mode
Usage Guide:
This command matches according to the next-hop messages or routing
prefix in the route. If the matching succeeded, then the “permit” or “deny” action in the
route-map is performed.
Example:
Switch#config terminal
Switch(config)#route-map r1 permit 5
Switch(config-route-map)#match ip address prefix-list mylist
14.2.3.7 match metric