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

439
Figure 209 Network diagram
Configuration procedure
1. Configure LB:
# Configure RIPng.
<LB> system-view
[LB] ipv6
[LB] ripng 1
[LB-ripng-1] quit
[LB] interface gigabitethernet 0/1
[LB-GigabitEthernet0/1] ipv6 address 150::1 64
[LB-GigabitEthernet0/1] ripng 1 enable
[LB-GigabitEthernet0/1] quit
[LB] interface gigabitethernet 0/2
[LB-GigabitEthernet0/2] ipv6 address 151::1 64
[LB-GigabitEthernet0/2] ripng 1 enable
[LB-GigabitEthernet0/2] quit
# Configure Node 10 for policy lab1 to forward IPv6 packets with a length of 64 to 100 to the
next hop 150::2/64, and IPv6 packets with a length of 101 to 1000 bytes to the next hop
151::2/64.
[LB] ipv6 policy-based-route lab1 permit node 10
[LB-pbr6-lab1-10] if-match packet-length 64 100
[LB-pbr6-lab1-10] apply ipv6-address next-hop 150::2
[LB-pbr6-lab1-10] quit
[LB] ipv6 policy-based-route lab1 permit node 20
[LB-pbr6-lab1-20] if-match packet-length 101 1000
[LB-pbr6-lab1-20] apply ipv6-address next-hop 151::2
[LB-pbr6-lab1-20] quit
# Configure IPv6 interface PBR by applying policy lab1 to GigabitEthernet 0/3.
[LB] interface gigabitethernet0/3
[LB-GigabitEthernet0/3] ipv6 address 192::1 64
[LB-GigabitEthernet0/3] undo ipv6 nd ra halt
[LB-GigabitEthernet0/3] ripng 1 enable
[LB-GigabitEthernet0/3] ipv6 policy-based-route lab1
[LB-GigabitEthernet0/3] return
2. Configure RIPng for Router A.
<RouterA> system-view
[RouterA] ipv6