load balancing question!

Dear Experts,
Here's the config simulating a customer has two leased to ISP and using one
as back up. I used the Cisco 4000 to simulate our backend router and
connect two 805 as the customer routers.
(This config only works when two line are conneISPng to ISP)


4000------805-1---
 I                + hub--PC
 I--------805-2---
Config the PC's gateway to 805-1 's e0 port. Here's the configure of 805-1:
1#sh ru
Building configuration...
Current configuration:
!
version 12.0
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname 1
!
no logging console
enable password ISP
!
username root password 0 ISP
ip subnet-zero
!
!
!
process-max-time 200
!
interface Ethernet0
ip address 192.168.0.253 255.255.255.0
no ip redirects
no ip directed-broadcast
!
interface Serial0
ip address 10.0.0.2 255.255.255.0
no ip directed-broadcast
!
no ip http server
ip classless
ip route 0.0.0.0 0.0.0.0 10.0.0.1
ip route 0.0.0.0 0.0.0.0 192.168.0.254 50
!
!
line con 0
transport input none
stopbits 1
line vty 0 4
login local
!
end
The backup link is 805-2, here's the configure:
2#sh ru
Building configuration...
Current configuration:
!
version 12.0
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname 2
!
no logging console
enable password ISP
!
username root password 0 ISP
ip subnet-zero
!
!
!
process-max-time 200
!
interface Ethernet0
ip address 192.168.0.254 255.255.255.0
no ip directed-broadcast
!
interface Serial0
ip address 10.0.1.2 255.255.255.0
no ip directed-broadcast
!
no ip http server
ip classless
ip route 0.0.0.0 0.0.0.0 10.0.1.1
!
!
line con 0
transport input none
stopbits 1
line vty 0 4
login local
!
end
2#
In the Cisco 4000, add two routes to the two links:
ip route 192.168.0.0 255.255.255.0 10.0.0.2
ip route 192.168.0.0 255.255.255.0 10.0.1.2 50 <----- backup link (has metric 50)
Notes:
- The technique is "floating static route". The route with a greater metric does not appear
in the routing table normally. But when the main link fail, then the backup route will appear.
- You need to use "no ip redirects" in the e0 of the 805-1 router to disable ICMP redirect
message . Otherwise when the main fail link recovered, the PC will still using 805-2 to
transmit packet, due to the ICMP redirect message send by 805-1.



Further study:
Any expert advise me how to do load balancing without using any dynamic routing protocol in this case, what the commands?

Thanks a lot!
qpsAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
dsernaConnect With a Mentor Commented:
Now that I re-read your question, it seems that you only need to know how to balance traffic from the 4000 to the 805's:

To load-balance the traffic that comes from the 4000 to the 805's you simply take away the metric of 50:

change from this:


In the Cisco 4000, add two routes to the two links:
ip route 192.168.0.0 255.255.255.0 10.0.0.2
ip route 192.168.0.0 255.255.255.0 10.0.1.2 50 <----- backup link (has metric 50)


change to this:

ip route 192.168.0.0 255.255.255.0 10.0.0.2
ip route 192.168.0.0 255.255.255.0 10.0.1.2


The above tells the 4000 router that there are two paths to the 192.168.0.0/24 network, one is through 10.0.1.2/24 and the other is through 10.0.0.2/24, more importantly, it tells the router that they have the same cost of 1. By default, static routes that exit via an attached interface have a cost of 0, static routes that are next-hop have a cost of 1. The router will then evenly distribute the traffic between those static routes.
0
 
dsernaCommented:
I just have a question for you, which way would you like to load balance the traffic? From the 4000 to the two 805's or from the two 805's to the 4000, or both WAYS?
0
 
kachanCommented:
I think more reliably, you should consider OSPF and let OSPF to determinate which route that it should use.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.