2 match, Match – PLANET XGS3-24042 User Manual

Page 315

Advertising
background image

18-161

18.2 match

Command:

match {access-group <acl-index-or-name> | ip dscp <dscp-list>| ip precedence

<ip-precedence-list>| ipv6 access-group <acl-index-or-name>| ipv6 dscp <dscp-list> | ipv6

flowlabel <flowlabel-list> | vlan <vlan-list> | cos <cos-list>}

no match {access-group | ip dscp | ip precedence | ipv6 access-group | ipv6 dscp | ipv6

flowlabel | vlan | cos}

Function:

Configure the match standard of the class map; the no command deletes the specified match

standard.

Parameters:

access-group <acl-index-or-name> match the specified IP ACL or MAC ACL, the parameters are

the number or name of ACL

ip dscp <dscp-list> and ipv6 dscp <dscp-list> match the specified DSCP value, the parameter is

a list of DSCP consisting of maximum 8 DSCP values, the ranging is 0 to 63

ip precedence <ip-precedence-list> match the specified IP Precedence, the

parameter is a IP Precedence list consisting of maximum 8 IP Precedence values with a valid range

of 0 to 7

ipv6 access-group <acl-index-or-name> match the specified IPv6 ACL, the parameter

is the number or name of IPv6 ACL

ipv6 flowlabel <flowlabel-list> match the specified IPv6 flow label, the parameter is IPv6 flow label

value, the ranging is 0 to 1048575

vlan <vlan-list> match the specified VLAN ID, the parameter is a VLAN ID list consisting of

maximum 8 VLAN IDs, the ranging is 1 to 4094

<cost-list> match the specified CoS value, the parameter is a CoS list consisting of maximum 8

CoS values, the ranging is 0 to 7

Default:

There is no match standard.

Command Mode:

Class-map Mode

Usage Guide:

Only one match standard can be configured in a class map. When configuring the ACL match,

permit rule is the match option, it will apply Policy Map action. Deny rule is the excluding option, it

does not apply Policy Map action. If it has been configured other match rule, the operation is failure,

but configuring the same match rule will cover the previous.

Example:

reate a class-map named c1, and configure the class rule of the class-map to match packets with IP

Advertising
This manual is related to the following products: