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

294
Figure 165 Network diagram
2. Configuration procedure
a. Configure IP addresses for interfaces. (Details not shown.)
b. Configure static routing between Router A and Router B:
# Configure a default route with the next hop 192.168.212.1 on Router A.
<RouterA> system-view
[RouterA] ip route-static 0.0.0.0 0 192.168.212.1
# Configure static routes to 192.168.64.0/24, 192.168.74.0/24, and 192.168.99.0/24 with
the same next hop 192.168.212.161 on Router B.
<RouterB> system-view
[RouterB] ip route-static 192.168.64.0 24 192.168.212.161
[RouterB] ip route-static 192.168.74.0 24 192.168.212.161
[RouterB] ip route-static 192.168.99.0 24 192.168.212.161
c. Configure OSPF between Router B and LB, and configure OSPF on Router B to redistribute
static routes:
# Configure OSPF to advertise the local network, and enable OSPF to redistribute static routes on
Router B.
[RouterB] ospf
[RouterB-ospf-1] area 0
[RouterB-ospf-1-area-0.0.0.0] network 172.17.100.0 0.0.0.255
[RouterB-ospf-1-area-0.0.0.0] quit
[RouterB-ospf-1] import-route static
[RouterB-ospf-1] quit
# Configure OSPF to advertise local networks on LB.
[LB] ospf
[LB-ospf-1] area 0
[LB-ospf-1-area-0.0.0.0] network 172.17.100.0 0.0.0.255
[LB-ospf-1-area-0.0.0.0] network 10.220.2.0 0.0.0.255
[LB-ospf-1-area-0.0.0.0] quit
[LB-ospf-1] quit
# Display the IP routing table on LB.
[LB] display ip routing-table
Routing Tables: Public
Loop0
1.1.1.1/32
Loop0
3.3.3.3/32
Loop0
4.4.4.4/32
GE0/2
172.17.100.1/24
GE0/2
172.17.100.2/24
GE0/1
192.168.212.1/24
GE0/1
192.168.212.161/24
External
network
AS 64631
Internal network
AS 65106
Distribution layer
device
Router A
Core layer device
Router B
Boundary device
LB
External network
Router C
Loop0
2.2.2.2/32
GE0/1
10.220.2.217/24
192.168.64.0/24 192.168.74.0/24 192.168.99.0/24
GE0/1
10.220.2.16/24