Context
NOTE
An card may not support a traffic policy; therefore, applying the traffic policy in the system or in a VLAN
on the card fails. Run the
display traffic-policy
applied-record
[
policy-name
] command to view the
card where the traffic policy takes effect.
Procedure
l
Applying a traffic policy to the system or a slot
1.
Run:
system-view
The system view is displayed.
2.
Run:
traffic-policy
policy-name
global
{
inbound
|
outbound
} [
slot
slot-id
]
A traffic policy is applied to the system or a slot in the inbound or outbound direction.
Only one traffic policy can be applied to the system in the inbound or outbound
direction.
Only one traffic policy can be applied to a slot in the inbound or outbound direction.
A traffic policy cannot be applied to the system and a slot simultaneously. The system
performs traffic policing as follows:
–
If a stack system is established, a traffic policy that is applied to the system takes
effect on all the interfaces and VLANs of all the member switches in the stack.
The system then performs traffic policing for all the incoming and outgoing packets
that match traffic classification rules on all the member switches. A traffic policy
that is applied to a specified slot takes effect on all the interfaces and VLANs of
the member switch with the specified stack ID. The system then performs traffic
policing for all the incoming and outgoing packets that match traffic classification
rules on this member switch.
–
If a stack system is not established, a traffic policy that is applied to the system
takes effect on all the interfaces and VLANs of the local switch. The system then
performs traffic policing for all the incoming and outgoing packets that match
traffic classification rules on the local switch. Traffic policies applied to the slot
and system have the same functions.
l
Applying a traffic policy to an interface
1.
Run:
system-view
The system view is displayed.
2.
Run:
interface
interface-type
interface-number
The interface view is displayed.
3.
Run:
traffic-policy
policy-name
{
inbound
|
outbound
}
A traffic policy is applied to the interface in the inbound or outbound direction.
Only one traffic policy can be applied to an interface in the inbound or outbound
direction.
S3700HI Ethernet Switches
Configuration Guide - QoS
1 Class-based QoS Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
25