For more information, see Match commands.
Syntax:
[no] match interface vlan
vid
[vid
...]
Matches a VLAN interface.
vid
|
Specifies the ID number of the VLAN to match.
|
|
Optional additional VLAN identifiers. A single command can specify multiple VLANs. A match succeeds if any of the VLANs matches (logical OR.)
|
The no
form of the command deletes the match clause from the sequence.
Syntax:
[no] match
[ ip | ipv6 ] address prefix-list name
Matches a prefix list.
|
Specifies matching with a prefix list that contains either IPv4 (IP) or IPv6 addresses, respectively.
|
name
|
Specifies the name of the prefix list to match.
|
The no
form of the command deletes the match clause from the sequence.
Matching next-hop addresses
Syntax:
[no] match
[ ip | ipv6 next-hop IP-addr
| IPv6-addr
] [ IP-addr
| IPv6-addr... ]
[no] match
[ ip | ipv6 ] next-hop prefix-list name
Matches a next hop address.
|
Specifies matching with either an IPv4 (IP) or IPv6 address, respectively.
|
|
Specifies the IPv4 (IP) or IPv6 address, respectively, to match with.
|
[ IP-addr | IPv6-addr... ]
|
Optional additional addresses. A single command can specify multiple IPv4 (IP) or IPv6 addresses. A match succeeds if any of the addresses matches (logical OR.)
|
name
|
Specifies the name of a prefix list to match the next hop against.
|
The no
form of the command deletes the match clause from the sequence.
Syntax:
[no] match
[ ip | ipv6 ] route-source prefix-list name
Matches the address of an advertising router.
|
Specifies matching with a prefix list that contains either IPv4 (IP) or IPv6 addresses, respectively.
|
name
|
Specifies the name of a prefix list to match the advertising router against.
|
The no
form of the command deletes the match clause from the sequence.
Syntax:
Matches the specified metric value with that of the route.
value
|
Value of the route metric to match against. This is an integer value between 0 and the maximum number supported by the routing switch.
|
The no
form of the command deletes the match clause from the sequence.
Syntax:
[no] match route-type external
[ type-1 | type-2 ]
Matches an OSPF external route metric type.
type-1
|
Matches against an OSPF external route with a type-1 metric.
|
type-2
|
Matches against an OSPF external route with a type-2 metric.
|
The no
form of the command deletes the match clause from the sequence.
Matching source protocols
Syntax:
[no] match source-protocol
[ connected | static | rip | ospf | ospfv3 ]
Matches the protocol type of the destination prefix.
connected
|
Matches directly connected routes.
|
static
|
Matches static routes.
|
rip
|
Matches RIP routes.
|
ospf
|
Matches OSPF routes.
|
ospfv3
|
Matches OSPFv3 routes.
|
The no
form of the command deletes the match clause from the sequence.
Syntax:
Matches the specified tag value with that of the route.
value
: Value of the route tag to match against. This is an integer value between 0 and the maximum number supported by the routing switch. The tag value is typically set by a set
command on a different router.
The no
form of the command deletes the match clause from the sequence.