F3215-HP Load Balancing Module Network Management Configuration Guide-6PW101

324
Task Command
Remarks
Display PBR statistics.
display ip policy-based-route statistics
{ interface interface-type interface-number |
local } [ | { begin | exclude | include }
regular-expression ]
Available in any view.
Clear PBR statistics.
reset policy-based-route statistics
[ policy-name ]
Available in user view.
Local PBR based on packet type configuration example
Network requirements
As shown in Figure 182, configure local PBR on LB to forward all locally generated TCP packets through
GigabitEthernet 0/1. LB forwards other packets according to the routing table.
Figure 182 Network diagram
Configuration procedure
1. Configure LB:
# Configure ACL 3101 to match TCP packets.
<LB> system-view
[LB] acl number 3101
[LB-acl-adv-3101] rule permit tcp
[LB-acl-adv-3101] quit
# Configure Node 5 for policy aaa to forward TCP packets through GigabitEthernet 0/1.
[LB] policy-based-route aaa permit node 5
[LB-pbr-aaa-5] if-match acl 3101
[LB-pbr-aaa-5] apply ip-address next-hop 1.1.2.2
[LB-pbr-aaa-5] quit
# Configure local PBR by applying policy aaa on LB.
[LB] ip local policy-based-route aaa
# Configure the IP addresses of the GigabitEthernet interfaces.
[LB] interface gigabitethernet 0/1
[LB-GigabitEthernet0/1] ip address 1.1.2.1 255.255.255.0
[LB-GigabitEthernet0/1] quit
[LB] interface gigabitethernet 0/2
[LB-GigabitEthernet0/2] ip address 1.1.3.1 255.255.255.0
2. Configure IP address for the GigabitEthernet interface of Router A.
<RouterA> system-view
[RouterA] interface gigabitethernet 0/1
Router A
LB
Router B
GE0/1
1.1.2.1/24
GE0/2
1.1.3.1/24
GE0/1
1.1.2.2/24
GE0/2
1.1.3.2/24