6 match interface, 7 match ip, Match interface – PLANET XGS3-24040 User Manual

Page 386: Match ip

Advertising
background image


29-99

Example:

Switch#config terminal

Switch(config)#route-map r1 permit 5

Switch(config-route-map)#match community 100 exact-match

29.6 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

29.7 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.

Advertising