5 match interface, 6 match ip – Accton Technology ES4626 User Manual
Page 370

370
Switch(config)#route-map r1 permit 5
Switch(config-route-map)#match community 100 exact-match
13.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
13.2.3.6 match ip
Command: match ip <ip-ACL-name | ip-ACL-num |
prefix-list list-name>
no match ip [<ip-ACL-name | ip-ACL-num |
prefix-list list-name>]
Function:
Configure the routing prefix or next-hop. The “no match ip
next-hop> [<ip-ACL-name | ip-ACL-num | prefix-list list-name>]
” deletes this
configuration.
Parameter:
means matching the routing prefix,
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