Qos policy routing configuration examples, Ipv4 qos policy routing configuration example, Network requirements – H3C Technologies H3C SR8800 User Manual

Page 428: Configuration procedure

Advertising
background image

412

NOTE:
•

QoS policies cannot be applied to dynamic VLANs, for example, VLANs created by GVRP.

•

You can apply the QoS policy globally only on SPC cards.

QoS policy routing configuration examples

IPv4 QoS policy routing configuration example

Network requirements

As shown in

Figure 128

, redirect all packets received on GigabitEthernet 3/1/1 of Router A to the next

hop 202.1.1.2.

Figure 128 Network diagram

Configuration procedure

# Configure ACL 2000.

<RouterA> system-view

[RouterA] acl number 2000

[RouterA-acl-basic-2000] rule 0 permit source any

[RouterA-acl-basic-2000] quit

# Define a match criterion for class a to match ACL 2000.

[RouterA] traffic classifier a

[RouterA-classifier-a] if-match acl 2000

[RouterA-classifier-a] quit

# Configure the action of redirecting traffic to the next hop 202.1.1.2 for behavior a.

[RouterA] traffic behavior a

[RouterA-behavior-a] redirect next-hop 202.1.1.2

[RouterA-behavior-a] quit

# Associate class a with behavior a in QoS policy a.

[RouterA] qos policy a

[RouterA-qospolicy-a] classifier a behavior a

[RouterA-qospolicy-a] quit

# Apply QoS policy a to the inbound direction of GigabitEthernet 3/1/1.

[RouterA] interface GigabitEthernet 3/1/1

[RouterA-GigabitEthernet3/1/1] qos apply policy a inbound

Advertising