beautypg.com

Configuration procedure – H3C Technologies H3C SecPath F1000-E User Manual

Page 861

background image

836

Figure 395 Network diagram

Configuration procedure

1.

Configure SecPath A:
# Define ACL 3001 to match TCP packets.

system-view

[SecPathA] ipv6

[SecPathA] acl ipv6 number 3001

[SecPathA-acl6-adv-3001] rule permit tcp

[SecPathA-acl6-adv-3001] quit

# Define Node 5 of policy aaa, so that TCP packets are forwarded via GigabitEthernet 0/1.

[SecPathA] ipv6 policy-based-route aaa permit node 5

[SecPathA-pbr6-aaa-5] if-match acl6 3001

[SecPathA-pbr6-aaa-5] apply ipv6-address next-hop 1::2

[SecPathA-pbr6-aaa-5] quit

# Apply policy aaa to SecPath A.

[SecPathA] ipv6 local policy-based-route aaa

# Configure the IPv6 addresses of GigabitEthernet 0/1 and GigabitEthernet 0/2.

[SecPathA] interface GigabitEthernet 0/1

[SecPathA-GigabitEthernet0/1] ipv6 address 1::1 64

[SecPathA-GigabitEthernet0/1] quit

[SecPathA] interface GigabitEthernet 0/2

[SecPathA-GigabitEthernet0/2] ipv6 address 2::1 64

2.

Configure SecPath B:
# Configure the IPv6 address for GigabitEthernet 0/1.

system-view

[SecPathB] ipv6

[SecPathB] interface GigabitEthernet 0/1

[SecPathB-GigabitEthernet0/1] ipv6 address 1::2 64

[SecPathB-GigabitEthernet0/1] quit

3.

Configure SecPath C:
# Configure the IPv6 address for GigabitEthernet 0/2.

system-view

[SecPathC] ipv6

[SecPathC] interface GigabitEthernet 0/2

[SecPathC-GigabitEthernet0/2] ipv6 address 2::2 64

[SecPathC-GigabitEthernet0/2] quit

4.

Verify the configuration:
# Telnet to SecPath B (1::2/64) from SecPath A. The operation succeeds.

GE0/1
1::1/64

GE0/2
2::1/64

GE0/1

1::2/64

GE0/2

2::2/64

SecPath A

SecPath C

SecPath B