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

326
[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 interface PBR by applying the policy aaa on GigabitEthernet 0/3.
[LB] interface gigabitethernet 0/3
[LB-GigabitEthernet0/3] ip address 10.110.0.10 255.255.255.0
[LB-GigabitEthernet0/3] ip policy-based-route aaa
[LB-GigabitEthernet0/3] quit
# Configure IP addresses for 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 Router B:
# Configure a static route to subnet 10.110.0.0/24.
<RouterB> system-view
[RouterB] ip route-static 10.110.0.0 24 1.1.2.1
# Configure the IP address of the GigabitEthernet interface.
[RouterB] interface gigabitethernet 0/1
[RouterB-GigabitEthernet0/1] ip address 1.1.2.2 255.255.255.0
3. Configure Router A:
# Configure a static route to subnet 10.110.0.0/24.
<RouterA> system-view
[RouterA] ip route-static 10.110.0.0 24 1.1.3.1
# Configure the IP address of the GigabitEthernet interface.
[RouterA] interface gigabitethernet 0/2
[RouterA-GigabitEthernet0/2] ip address 1.1.3.2 255.255.255.0
4. Verify the configuration:
Configure the IP address 10.110.0.20/24 for Host A, and specify its gateway address as
10.110.0.10.
On Host A, Telnet to Router B that is directly connected to Router A. The operation succeeds.
On Host A, Telnet to Router A that is directly connected to Router A. The operation fails.
Ping Router A from Host A. The operation succeeds.
Telnet uses TCP and ping uses ICMP. The preceding results show that all TCP packets received on
GigabitEthernet 0/3 of LB are forwarded to the next hop 1.1.2.2, and other packets are
forwarded through GigabitEthernet 0/2. The interface PBR configuration is effective.