Can I apply a traffic policy to a VLAN on an S series switch

17

For S series switches (except the S1700), a traffic policy can be applied to a VLAN.
The application procedure is as follows:
1. Run the system-view command to enter the system view.
2. Run the vlan vlan-id command to enter the VLAN view.
3. Run the traffic-policy policy-name { inbound | outbound } command to apply a traffic policy to the VLAN.
Only one traffic policy can be applied to a VLAN in the inbound or outbound direction. After a traffic policy is applied to a VLAN, the system performs traffic policing for all the incoming or outgoing packets that belong to the VLAN and match traffic classification rules in the VLAN.
Note: MQC cannot be configured on the S2700SI.

Other related questions:
Can I apply a traffic policy to an interface on an S series switch
For S series switches (except the S1700), a traffic policy can be applied to an interface. The application procedure is as follows: 1. Run the system-view command to enter the system view. 2. Run the interface interface-type interface-number[.subinterface-number ] command to enter the interface or sub-interface view. 3 Run the traffic-policy policy-name { inbound | outbound } command to apply a traffic policy in the interface or sub-interface view. Note: A traffic policy can be applied to a sub-interface only when the switch or card model supports sub-interfaces. A traffic policy can only be applied to one direction on an interface, but can be applied to different directions on different interfaces. After a traffic policy is applied to an interface, the system performs traffic policing for all the incoming or outgoing packets that match traffic classification rules on the interface. Note: MQC cannot be configured on the S2700SI.

How to delete an applied traffic policy on an S series switch
For S series switches (except the S1700), a traffic policy that is not applied can be deleted directly. To delete a traffic policy that has been applied, unbind the traffic policy and then delete it. Example 1: The traffic policy p1 has been applied in the inbound direction of GE1/0/1. Run the following commands to delete the traffic policy p1: [HUAWEI] interface GigabitEthernet 1/0/1 [HUAWEI-GigabitEthernet1/0/1] undo traffic-policy p1 inbound [HUAWEI-GigabitEthernet1/0/1] quit [HUAWEI] undo traffic policy p1 Example 2: The traffic policy p2 has been applied in the inbound direction of VLAN 100. Run the following commands to delete the traffic policy p2: [HUAWEI] vlan 100 [HUAWEI-vlan100] undo traffic-policy p2 inbound [HUAWEI-vlan100] quit [HUAWEI] undo traffic policy p2 Example 3: The traffic policy p3 has been applied in the inbound direction of the card in slot 6. Run the following commands to delete the traffic policy p3: [HUAWEI] undo traffic-policy p3 global inbound slot 6 [HUAWEI] undo traffic policy p3 Example 4: The traffic policy p4 has been applied in the inbound direction of the system. Run the following commands to delete the traffic policy p4: [HUAWEI] undo traffic-policy p4 global inbound [HUAWEI] undo traffic policy p4 Before deleting a traffic policy, ensure that you have unbound the traffic policy completely. You can run the display traffic-applied command to check information about applied traffic policies. Note: MQC cannot be configured on the S2700SI.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top