F3215-HP Load Balancing Module High Availability Configuration Guide-6PW101
157
Configuration procedure
1. Configure IP addresses:
Follow Figure 64 to c
onfigure the IP address and subnet mask for each interface. (Details not
shown.)
2. Configure a static route:
# On LB, configure a static route to the segment 192.168.2.0/24 where Host B resides.
<LB> system-view
[LB] ip route-static 192.168.2.0 24 gigabitethernet0/1 1.1.1.2
[LB] ip route-static 192.168.2.0 24 gigabitethernet0/2 2.2.2.2
[LB] ip route-static 192.168.2.0 24 gigabitethernet0/3 3.3.3.2
# On Router, configure a static route to the segment 192.168.1.0/24 where Host A resides.
<Router> system-view
[Router] ip route-static 192.168.1.0 24 gigabitethernet0/1 1.1.1.1
[Router] ip route-static 192.168.1.0 24 gigabitethernet0/2 2.2.2.1
[Router] ip route-static 192.168.1.0 24 gigabitethernet0/3 3.3.3.1
3. Configure the standby interfaces and load balancing on LB:
# Specify interfaces GigabitEthernet 0/1 and GigabitEthernet 0/3 on LB to back up
GigabitEthernet 0/2, and assign them the priorities 30 and 20, respectively.
[LB] interface GigabitEthernet0/2
[LB-GigabitEthernet0/2] standby interface gigabitethernet0/1 30
[LB-GigabitEthernet0/2] standby interface gigabitethernet0/3 20
# Configure the available bandwidth used for setting the thresholds to 10000 kbps.
[LB-GigabitEthernet0/2] standby bandwidth 10000
# Configure the enable-threshold of load balancing to 80 and the disable-threshold to 20.
[LB-GigabitEthernet0/2] standby threshold 80 20
4. Verify the configuration on LB:
# Display the traffic statistics for the active interface taking part in load balancing.
[LB-GigabitEthernet0/2] display standby flow
Interfacename : GigabitEthernet0/2
Flow-interval(s) : 30
LastInOctets : 139
LastOutOctets : 22033
InFlow(Octets) : 0
OutFlow(Octets) : 0
BandWidth(b/s) : 10000
UsedBandWidth(b/s) : 0
# Display the state of the active and standby interfaces.
[LB-GigabitEthernet0/2] display standby state
Interface Interfacestate Standbystate Standbyflag Pri Loadstate
GigabitEthernet0/2 UP MUP MUD TO-HYPNOTIZE
GigabitEthernet0/1 STANDBY STANDBY BU 30
GigabitEthernet0/3 STANDBY STANDBY BU 20
Backup-flag meaning:
M---MAIN B---BACKUP V---MOVED U---USED
D---LOAD P---PULLED