Verifying the configuration – H3C Technologies H3C S12500 Series Switches User Manual

Page 441

Advertising
background image

425

[SwitchB-classifier-a] quit

# Create a behavior named a, and configure the action of redirecting traffic to the next hop 202.1.1.2.

[SwitchB] traffic behavior a

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

[SwitchB-behavior-a] quit

# Create a policy named a, and associate class a with behavior a in the policy.

[SwitchB] qos policy a

[SwitchB-qospolicy-a] classifier a behavior a

[SwitchB-qospolicy-a] quit

# Apply the policy to the incoming traffic of GigabitEthernet 3/0/1.

[SwitchB] interface GigabitEthernet 3/0/1

[SwitchB-GigabitEthernet3/0/1] qos apply policy a inbound

Verifying the configuration

After you complete the configuration, verify that when Switch B receives packets with the destination IP

address 201.1.1.2, it forwards the packets to Switch D instead of Switch C.

Advertising