cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
942
Views
15
Helpful
6
Replies
Muhammad Thanveer
Contributor

Load balance using Static route question

Dear All,

I have a lab set up in GNS3 as shown below.

R1 has loopback 1.1.1.1,

R2 has loopback 2.2.2.2 and

R3 has loopback  3.3.3.3.

R1 and R2 are connected with IP add 12.1.1.1/24 and 12.1.1.2/24 on gig 0/0 interface on both the routers

R2 and R3 are connected with IP address 23.1.1.2 and 23.1.1.3 on Gig 1/0 and 32.1.1.2 and 32.1.1.3 on Gig 2/0

I have done all the necessary routing, but still I am unable to load balance why?

traceroute from R1

R1tr

R1#traceroute 3.3.3.3

Type escape sequence to abort.
Tracing the route to 3.3.3.3

1 12.1.1.2 96 msec 68 msec 56 msec
2 23.1.1.3 56 msec 108 msec 120 msec
R1#

BR

Mohammad Thanveer

6 REPLIES 6
Mark Malone
Mentor

Hi If you want to do basic LB on R3 set 2 default routes pointing to same next-hop and the enable ip cef and under each outgoing interface ip cef per packet load sharing, for LB to happen the routes need to be identical

Hello Mark,

Thank you so much for your reply. 

I am able to understand that we need to enable IP CEF,

Should we write default routes pointing towards both the interface IP addresses?

I am unable to understand the statement,  "on R3 set 2 default routes pointing to same next-hop"

BR

Mohammad Thanveer

sorry too early that was mistake diff ips , here is what im trying to explain to you

http://serverfault.com/questions/529648/cisco-dual-static-default-routes-to-wan

Hi Mark,

Hope you are doing good today.

Thank you so much for your help, I have enabled the IP CEF on all the routers, but still I am unable to load balance it, I would like to know the reason why?

I am going mad out of curiosity, hope you understand that.

Thanks in advance :)

BR

Mohammad Thanveer

Thanks Mark,

I have understood that this has something to do with per packet load balancing.

CEF by default does per destination load balancing and it uses a hash algorithm to determine which link to use.

The inputs to the hash algorithm are source and destination IP (plus port numbers on some platforms) and a unique value that does not change while the router is up to help avoid CEF polarisation.

So if the source IP and destination IP are the same then it will use the same link and they are in your case.

With per packet load balancing CEF will simply alternate between the two links or should do.

Jon