8-6
[Device-qospolicy-policy_server] quit
# Apply the policy named
policy_server
to the incoming traffic of GigabitEthernet 2/0/1.
[Device] interface gigabitethernet 2/0/1
[Device-GigabitEthernet2/0/1] qos apply policy policy_server inbound
[Device-GigabitEthernet2/0/1] quit
QoS-Local-ID Marking Configuration Example
QoS-local-ID marking is mainly used for re-classifying packets of multiple classes to perform a uniform
set of actions on them as a re-classified class.
Consider the case of limiting the total rate of packets with source MAC address 0001-0001-0001 and
packets with source IP address 1.1.1.1 to 128 kbps. Without QoS local ID marking, you can only assign
fixed bandwidth to the two classes by associating each of them with a rate-limit traffic behavior. With
QoS local ID marking, however, traffic limit applies to the two classes as a whole, allowing the switch to
dynamically assign the bandwidth to the two classes depending on their traffic size.
To configure QoS-local-ID marking to limit the total rate of the two classes, you need to mark packets of
the two classes with the same QoS-local-ID; create a class to match the QoS local ID, and associate
this class with the traffic policing action. The configuration procedure is as follows:
# Create ACL 2000 to match packets with source IP address 1.1.1.1.
<Sysname> system-view
[Sysname] acl number 2000
[Sysname-acl-basic-2000] rule permit source 1.1.1.1 0
[Sysname-acl-basic-2000] quit
# Create a class
class_a
to match both packets with source MAC address 0001-0001-0001 and
packets with source IP 1.1.1.1.
<Sysname> system-view
[Sysname] traffic classifier class_a operator or
[Sysname-classifier-class_a] if-match source-mac 1-1-1
[Sysname-classifier-class_a] if-match acl 2000
[Sysname-classifier-class_a] quit
# Create a behavior
behavior_a
, and configure the action of marking packets with QoS-local-ID 100 for
the behavior.
[Sysname] traffic behavior behavior_a
[Sysname-behavior-behavior_a] remark qos-local-id 100
[Sysname-behavior-behavior_a] quit
# Create a class
class_b
to match packets with QoS-local-ID 100.
[Sysname] traffic classifier class_b
[Sysname-classifier-class_b] if-match qos-local-id 100
[Sysname-classifier-class_b] quit
# Create a behavior
behavior_b
, and configure the action of limiting traffic rate to 128 kbps for the
behavior.
[Sysname] traffic behavior behavior_b
[Sysname-behavior-behavior_b] car cir 128
[Sysname-behavior-behavior_b] quit
Summary of Contents for S7906E - Switch
Page 82: ...1 4 DeviceA interface tunnel 1 DeviceA Tunnel1 service loopback group 1...
Page 200: ...1 11 DeviceB display vlan dynamic No dynamic vlans exist...
Page 598: ...ii...
Page 1757: ...4 9...
Page 1770: ...6 4...
Page 2017: ...2 11 Figure 2 3 SFTP client interface...
Page 2238: ...1 16 DeviceA cfd linktrace service instance 1 mep 1001 target mep 4002...