388
[SwitchA] traffic classifier a
[SwitchA-classifier-a] if-match acl ipv6 2000
[SwitchA-classifier-a] quit
# Configure the action of redirecting traffic to the next hop 202::2 for behavior
a
.
[SwitchA] traffic behavior a
[SwitchA-behavior-a] redirect next-hop 202::2
[SwitchA-behavior-a] quit
# Associate class
a
with behavior
a
in QoS policy
a
.
[SwitchA] qos policy a
[SwitchA-qospolicy-a] classifier a behavior a
[SwitchA-qospolicy-a] quit
# Apply QoS policy
a
to the incoming traffic of GigabitEthernet 1/0/1.
[SwitchA] interface gigabitethernet 1/0/1
[SwitchA-GigabitEthernet1/0/1] qos apply policy a inbound
Verifying the configuration
After completing the configuration, verify that when Switch A receives packets with destination IP address
201::2, it forwards the packets to Switch C instead of Switch B.