F3215-HP Load Balancing Module Network Management Configuration Guide-6PW101

436
Configuration procedure
1. Configure LB:
# Configure ACL 3001 to match TCP packets.
<LB> system-view
[LB] ipv6
[LB] acl ipv6 number 3001
[LB-acl6-adv-3001] rule permit tcp
[LB-acl6-adv-3001] quit
# Configure Node 5 of policy aaa, so that TCP packets are forwarded via GigabitEthernet 0/1.
[LB] ipv6 policy-based-route aaa permit node 5
[LB-pbr6-aaa-5] if-match acl6 3001
[LB-pbr6-aaa-5] apply ipv6-address next-hop 1::2
[LB-pbr6-aaa-5] quit
# Configure IPv6 local PBR by applying policy aaa on LB.
[LB] ipv6 local policy-based-route aaa
# Configure the IPv6 addresses for the GigabitEthernet interfaces.
[LB] interface gigabitethernet 0/1
[LB-GigabitEthernet0/1] ipv6 address 1::1 64
[LB-GigabitEthernet0/1] quit
[LB] interface gigabitethernet 0/2
[LB-GigabitEthernet 0/2] ipv6 address 2::1 64
2. Configure IPv6 address for the GigabitEthernet interface of Router A.
<RouterA> system-view
[RouterA] ipv6
[RouterA] interface gigabitethernet 0/1
[RouterB-GigabitEthernet0/1] ipv6 address 1::2 64
3. Configure IPv6 address for the GigabitEthernet interface of Router B.
<RouterC> system-view
[RouterB] ipv6
[RouterB] interface gigabitethernet 0/2
[RouterB-GigabitEthernet0/2] ipv6 address 2::2 64
4. Verify the configuration:
# Telnet to Router A (1::2/64) from LB. The operation succeeds.
# Telnet to Router B (2::2/64) from LB. The operation fails.
# Ping Router B (2::2/64) from LB. The operation succeeds.
Telnet uses TCP, and ping uses ICMP. The preceding results indicate that all TCP packets of LB are
forwarded to the next hop 1::2, and other packets are forwarded via GigabitEthernet 0/2. The
IPv6 local PBR configuration is effective.
Configuring IPv6 interface PBR based on packet type
Network requirements
As shown in Figure 208, configure IPv6 interface PBR on LB to forward all TCP packets received on
GigabitEthernet 0/3 via GigabitEthernet 0/1. Router A forwards other IPv6 packets according to the
routing table.