R3303-HP HSR6800 Routers Layer 3 - IP Routing Configuration Guide
412
[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.
<RouterC> system-view
[RouterC] ipv6
[RouterC] interface serial 2/2/1
[RouterC-Serial2/2/1] ipv6 address 2::2 64
4. Verify the configuration:
# Telnet to Router B (1::2/64) from Router A. The operation succeeds.
# Telnet to Router C (2::2/64) from Router A. The operation fails.
# Ping Router C (2::2/64) from Router A. The operation succeeds.
Telnet uses TCP, and ping uses ICMP. The preceding results indicate that all TCP packets of Router
A are forwarded through Serial 2/2/0, and other packets are forwarded through Serial 2/2/1.
The IPv6 local PBR configuration is effective.
Configuring IPv6 interface PBR based on packet type
Network requirements
As shown in Figure 114 , configure IPv6 interface PBR on Router A to forward all TCP packets received on
GigabitEthernet 2/1/1 through Serial 2/2/0. Router A forwards other IPv6 packets according to the
routing table.