Configuration procedure, N in, Figure 18 – H3C Technologies H3C S12500 Series Switches User Manual

Page 76

Advertising
background image

67

GigabitEthernet 3/0/3 of Device A and GigabitEthernet 3/0/3 of Device B belong to VLAN 201.

On Device A, the IP address of VLAN-interface 200 is 200.1.1.1/24, and that of VLAN-interface
201 is 201.1.1.1/24.

On Device B, the IP address of VLAN-interface 200 is 200.1.1.2/24, and that of VLAN-interface

201 is 201.1.1.2/24.

Configure the actions of redirecting traffic to the next hop to implement policy-based routing and meet

the following requirements:

Packets with source IP address 2.1.1.1 received on GigabitEthernet 3/0/1 of Device A are
forwarded to IP address 200.1.1.2.

Packets with source IP address 2.1.1.2 received on GigabitEthernet 3/0/1 of Device A are
forwarded to IP address 201.1.1.2.

Other packets received on GigabitEthernet 3/0/1 of Device A are forwarded according to the
routing table.

Figure 18 Network diagram

Configuration procedure

# Create basic ACL 2000, and configure a rule to match packets with source IP address 2.1.1.1.

<DeviceA> system-view

[DeviceA] acl number 2000

[DeviceA-acl-basic-2000] rule permit source 2.1.1.1 0

[DeviceA-acl-basic-2000] quit

# Create basic ACL 2001, and configure a rule to match packets with source IP address 2.1.1.2.

[DeviceA] acl number 2001

[DeviceA-acl-basic-2001] rule permit source 2.1.1.2 0

[DeviceA-acl-basic-2001] quit

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

[DeviceA] traffic classifier classifier_1

[DeviceA-classifier-classifier_1] if-match acl 2000

[DeviceA-classifier-classifier_1] quit

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

[DeviceA] traffic classifier classifier_2

[DeviceA-classifier-classifier_2] if-match acl 2001

[DeviceA-classifier-classifier_2] quit

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

[DeviceA] traffic behavior behavior_1

Advertising