Verifying the configuration, Network requirements, Configuration procedure – H3C Technologies H3C S12500 Series Switches User Manual

Page 440

Advertising
background image

424

# Create a class named a, and use ACL 2000 as the match criterion in the class.

[PE2] traffic classifier a

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

[PE2-classifier-a] quit

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

[PE2] traffic behavior a

[PE2-behavior-a] redirect next-hop 201.1.1.2

[PE2-behavior-a] quit

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

[PE2] qos policy a

[PE2-qospolicy-a] classifier a behavior a

[PE2-qospolicy-a] quit

# Apply the policy globally in the inbound direction.

[PE2] qos apply policy a global inbound

Verifying the configuration

After you complete the configuration, verify that when PE 2 receives packets of VPN 1, it forwards the

packets to Switch A instead of CE 2.

GRE tunnel end packets policy routing configuration example

Network requirements

As shown in

Figure 129

, Switch A and Switch B are connected over the Internet. Group 1 and Group 2

are two private networks interconnected through a GRE tunnel configured on two switches. Configure a

QoS policy on Switch B to redirect packets destined for 201.1.1.2 to the next hop 202.1.1.2.

Figure 129 Network diagram

Configuration procedure

# Create ACL 3000, and configure a rule to match packets with the destination IP address 201.1.1.2/32.

<SwitchB> system-view

[SwitchB] acl number 3000

[SwitchB-acl-basic-3000] rule 0 permit ip destination 201.1.1.2 0

[SwitchB-acl-basic-3000] quit

# Create a class named a, and use ACL 3000 as the match criterion in the class.

[SwitchB] traffic classifier a

[SwitchB-classifier-a] if-match acl 3000

Advertising