User Manual
UMN:CLI
V5824G
165
7.5.4.5
Setting CoS and ToS values
To specify a CoS or ToS value for a matching condition, use the following command.
Command
Mode
Description
action
match
cos
<0-7>
overwrite
Policy
Configures the 802.1p class of service value.
0-7: CoS value
overwrite: changes 802.1p class of service value with
the one you set
action match cos same-as-tos
overwrite
Changes the 802.1p CoS field in the packet with an IP
ToS precedence value
action match dscp
<0-63>
Marks the packets with DSCP field.
0-63: DSCP value
action match dscp
{
af11
|
af12
|
af13
|
af21
|
af22
|
af23
|
af31
|
af32
|
af33
|
af41
|
af42
|
af43
|
cs1
|
cs2
|
cs3
|
cs4
|
cs5
|
cs6
|
cs7
|
default
|
ef
}
action match ip-precedence
<0-
7>
Configures the IP ToS precedence value in the packet.
0-7: ToS precedence value
action
match
ip-precedence
same-as-cos
Changes the IP ToS precedence value in the packet
with an 802.1p CoS value.
To delete the CoS or ToS matching condition, use the following command.
Command
Mode
Description
no action match cos
[
overwrite
]
Policy
Deletes the CoS or ToS matching
condition.
no action match cos same-as-tos overwrite
no action match dscp
no action match ip-precedence
no action match ip-precedence same-as-cos
7.5.4.6
Attaching a Policy to an interface
After you configure a rule including the packet classification, policing and rule action, you
should attach a policy to an interface and to specify port or VLAN in which the policy
should be applied. If you do not specify an interface for rule, rule does not work properly.
To attach a policy to an interface, use the following command.
Command
Mode
Description
interface-binding port ingress
{
PORTS
|
cpu
|
any
}
Policy
Attaches the policy to a specified ingress port or any
port.
PORTS: port number
interface-binding port egress
{
PORTS
|
cpu
|
any
}
Attaches the policy to a specified egress port or any
port.
PORTS: port number
interface-binding vlan
{
VLANS
|
any
}
Attaches the policy to a specified vlan or any vlan.
VLANS: VLAN ID (1-4094)