F3215-HP Load Balancing Module Network Management Configuration Guide-6PW101
325
[RouterA-GigabitEthernet0/1] ip address 1.1.2.2 255.255.255.0
3. Configure IP address for the GigabitEthernet interface of Router B.
<RouterB> system-view
[RouterB] interface gigabitethernet 0/2
[RouterB-GigabitEthernet0/2] ip address 1.1.3.2 255.255.255.0
4. Verify the configuration:
# Telnet to Router A (1.1.2.2/24) from LB. The operation succeeds.
# Telnet to Router B (1.1.3.2/24) from LB. The operation fails.
# Ping Router B (1.1.3.2/24) from LB. The operation succeeds.
Telnet uses TCP, and ping uses ICMP. The preceding results show that all TCP packets of LB are
forwarded to the next hop 1.1.2.2, and other packets are forwarded through GigabitEthernet 0/2.
The local PBR configuration is effective.
Interface PBR based on packet type configuration example
Network requirements
As shown in Figure 183, configure interface PBR on LB to forward all TCP packets received on
GigabitEthernet 0/3 through GigabitEthernet 0/1. LB forwards other packets according to the routing
table.
Figure 183 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