R0106-HP MSR Router Series Layer 3 - IP Routing Configuration Guide(V7)

461
# Configure the IPv6 addresses of the serial interfaces.
<RouterA> system-view
[RouterA] interface serial 2/1/0
[RouterA-Serial2/1/0] ipv6 address 1::1 64
[RouterA-Serial2/1/0] quit
[RouterA] interface serial 2/1/1
[RouterA-Serial2/1/1] ipv6 address 2::1 64
[RouterA-Serial2/1/1] quit
# Configure ACL 3001 to match TCP packets.
[RouterA] acl ipv6 number 3001
[RouterA-acl6-adv-3001] rule permit tcp
[RouterA-acl6-adv-3001] quit
# Configure Node 5 for policy aaa to forward TCP packets to next hop 1::2.
[RouterA] ipv6 policy-based-route aaa permit node 5
[RouterA-pbr6-aaa-5] if-match acl 3001
[RouterA-pbr6-aaa-5] apply next-hop 1::2
[RouterA-pbr6-aaa-5] quit
# Configure IPv6 local PBR by applying policy aaa to Router A.
[RouterA] ipv6 local policy-based-route aaa
2. On Router B, configure the IPv6 address of the serial interface.
<RouterB> system-view
[RouterB] interface serial 2/1/0
[RouterB-Serial2/1/0] ipv6 address 1::2 64
3. On Router C, configure the IPv6 address of the serial interface.
<RouterC> system-view
[RouterC] interface serial 2/1/1
[RouterC-Serial2/1/1] ipv6 address 2::2 64
Verifying the configuration
# Telnet to Router B on Router A. The operation succeeds.
# Telnet to Router C on Router A. The operation fails.
# Ping Router C from Router A. The operation succeeds.
Telnet uses TCP, and ping uses ICMP. The results show the following:
All TCP packets sent from Router A are forwarded to the next hop 1::2.
Other packets are forwarded through Serial 2/1/1.
The IPv6 local PBR configuration is effective.
Packet type-based IPv6 interface PBR configuration example
Network requirements
As shown in Figure 106, configure IPv6 PBR on Router A to forward all TCP packets received on
GigabitEthernet 2/1/1 to the next hop 1::2. Router A forwards other IPv6 packets according to the
routing table.