R3102-R3103-HP 6600/HSR6600 Routers Layer 3 - IP Routing Command Reference

478
IPv6 PBR configuration examples
Configuring IPv6 local PBR based on packet type
Network requirements
As shown in Figure 1, configure IPv6 local PBR on Router A to forward all locally generated TCP packets
through Serial 2/2/0. Router A forwards other IPv6 packets according to the routing table.
Figure 1 Network diagram
Configuration procedure
1. Configure Router A:
# Configure ACL 3001 to match TCP packets.
<RouterA> system-view
[RouterA] ipv6
[RouterA] acl ipv6 number 3001
[RouterA-acl6-adv-3001] rule permit tcp
[RouterA-acl6-adv-3001] quit
# Configure Node 5 of policy aaa, so that TCP packets are forwarded through Serial 2/2/0.
[RouterA] ipv6 policy-based-route aaa permit node 5
[RouterA-pbr6-aaa-5] if-match acl6 3001
[RouterA-pbr6-aaa-5] apply output-interface serial 2/2/0
[RouterA-pbr6-aaa-5] quit
# Configure IPv6 local PBR by applying policy aaa on Router A.
[RouterA] ipv6 local policy-based-route aaa
# Configure the IPv6 addresses for the serial ports.
[RouterA] interface serial 2/2/0
[RouterA-Serial2/2/0] ipv6 address 1::1 64
[RouterA-Serial2/2/0] quit
[RouterA] interface serial 2/2/1
[RouterA-Serial2/2/1] ipv6 address 2::1 64
2. Configure Router B:
# Configure the IPv6 address for the serial port.
<RouterB> system-view
[RouterB] ipv6
[RouterB] interface serial 2/2/0
[RouterB-Serial2/2/0] ipv6 address 1::2 64
3. Configure Router C:
# Configure the IPv6 address for the serial port.