
391
Packet type-based IPv6 interface PBR configuration example
(on routers)
Network requirements
As shown in
, configure IPv6 PBR on Router A to forward all TCP packets received on Ethernet
1/1 to the next hop 1::2. Router A forwards other IPv6 packets according to the routing table.
Figure 95
Network diagram
Configuration procedure
1.
Configure Router A:
# Configure RIPng.
<RouterA> system-view
[RouterA] ripng 1
[RouterA-ripng-1] quit
[RouterA] interface serial 2/0
[RouterA-Serial2/0] ipv6 address 1::1 64
[RouterA-Serial2/0] ripng 1 enable
[RouterA-Serial2/0] quit
[RouterA] interface serial 2/1
[RouterA-Serial2/1] ipv6 address 2::1 64
[RouterA-Serial2/1] ripng 1 enable
[RouterA-Serial2/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