R3721-F3210-F3171-HP High-End Firewalls Network Management Configuration Guide-6PW101

Table Of Contents
820
Configuring IPv6 interface PBR based on packet length
Network requirements
As shown in Figure 393, PBR is configured to control packets arriving on GigabitEthernet 0/1 of Firewall
A. Configure 150::2/64 as the next hop for IPv6 packets with a length of 64 to 100 bytes, and configure
151::2/64 as the next hop for IPv6 packets with a length of 101 to 1000 bytes. All other IPv6 packets are
forwarded according to the routing table.
Figure 393 Network diagram
Configuration procedure
NOTE:
In this example, RIPng is configured to ensure the reachability among devices.
1. Configure Firewall A:
# Configure RIPng.
<FirewallA> system-view
[FirewallA] ipv6
[FirewallA] ripng 1
[FirewallA-ripng-1] quit
[FirewallA] interface gigabitethernet 0/2
[FirewallA-GigabitEthernet0/2] ipv6 address 150::1 64
[FirewallA-GigabitEthernet0/2] ripng 1 enable
[FirewallA-GigabitEthernet0/2] quit
[FirewallA] interface gigabitethernet 0/3
[FirewallA-GigabitEthernet0/3] ipv6 address 151::1 64
[FirewallA-GigabitEthernet0/3] ripng 1 enable
[FirewallA-GigabitEthernet0/3] quit
# Define policy Node 10 of lab1, so that IPv6 packets with a length of 64 to 100 bytes are
forwarded to the next hop 150::2/64, and IPv6 packets with a length of 101 to 1000 bytes are
forwarded to the next hop 151::2/64.
[FirewallA] ipv6 policy-based-route lab1 permit node 10
[FirewallA-pbr6-lab1-10] if-match packet-length 64 100
[FirewallA-pbr6-lab1-10] apply ipv6-address next-hop 150::2
[FirewallA-pbr6-lab1-10] quit
[FirewallA] ipv6 policy-based-route lab1 permit node 20
[FirewallA-pbr6-lab1-20] if-match packet-length 101 1000
[FirewallA-pbr6-lab1-20] apply ipv6-address next-hop 151::2