cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
717
Views
0
Helpful
11
Replies

Question for the load balancing

666Maverick
Level 1
Level 1

Hello,

I begin to work with router Cisco and I am a little lost.

In my compagny we have two WAN lines.

The first has a static IP. The second not.

the two lines are connected in a router cisco, which is connected to the LAN.

You can see it on the picture here :

http://shirase1.free.fr/cisco.pdf

I must implement a solution of load-balancing of theses two lines.

The traffic is active in the two lines but the charge must be equal between the 2 lines.

I have seen solutions : GLBP, OSPF, CEF, PLS, static routes. But i don't know if they are good for my requirements.

Can you help me, explain me, which solution could be the better one.

Excuse me for my english...

Thank you for your response.

11 Replies 11

Edison Ortiz
Hall of Fame
Hall of Fame

In order to load-share an internet connection, you must use BGP and have the ISPs announce your /24 block out to the internet.

http://www.cisco.com/warp/public/459/40.html

HTH,

__

Edison.

I can't use BGP, because I can configure only my router (2811). I don't know what is the router of the ISP... And they can't implement BGP (I phoned them). I must find an other solution.

I have thinked on the GLBP protocol, but I don't have two router for this solution.

Do you have an other solution?

GLBP solution is when you have 2 routers at your location and their LAN interfaces are facing your subnet and you want to load-balance the incoming traffic toward their LAN interfaces.

Per your diagram, you only have one router so you can't use GLBP.

One way of 'load-sharing' not 'load-balancing' your internet connection is to break your network in half. One half can be directed to one ISP for internet and the other half to the other ISP.

However, with this approach you would have to use PBR (Policy Based Routing) to perform source-based routing and next-hop redirection as well as multiple NAT entries. It's not the cleanest solution out there.

__

Edison.

A potential drawback of this approach is that when one of the link fails that particualr group will loose the connectivity and can not fallback to the active link.

My problem is I have traffic on the two connections. I must have load balancing (or load-sharing, I think it is the same ting). The traffic must be equal between the two connections and if i loose a line, the traffic is routed to the line, which is up).

I must use PBR for have this?

It's the only one solution?

At the moment, I don't know how I can do/implement this solution. I wiil search configuration examples, or search how it function.

Thank you for your help and for your response if I haven't very good understood. :)

Hi,

Why don't you add another small router capable of doing NAT and terminate second internet link on that. This would resolve all your issues.

What kind of Internet connection do you have? Are you getting any DSL connectivity?

-> Sushil

I have found this document :

http://www.cisco.com/en/US/tech/tk648/tk361/technologies_configuration_example09186a0080950834.shtml

It is exactly what i want, BUT the two ADSL connections must be active.

I have a router 2811 with two HWIC ADSL and a lan connection.

but i musn't have a primary and a backup WAN. Both must be active.

Hi,

Here's my suggestion.

You have ADSL connectivity. Ask one of the providers to give you the ADSL router and terminate it on the ethernet interface of 2811 router. Terminate the second link directly on the ADSL interface of the router.

Configure two default routes on the 2811 router with same AD. This will distribute the traffic on both the links. Configure NAT on 2811 router and ADSL router. Configure SAA probe to check the availability of the ADSL link terminated on ADSL router and associate it with the default route pointing to the ADSL router. If the SAA object goes down that specific route would be removed from the routing table, all the traffic would be forwarded to the ADSL link directly terminated on 2811 router. If the ADSL link directly terminated on 2811 router fails the route would be taken out automatically and all traffic would be forwarded to ADSL router.

You achieve load balancing and failover using this.

This is the only viable option I see apart from BGP.

-> Sushil

Hi,

You either need to implement BGP or terminate one of the links on another router. Each router would have an internet connectivity and individual NAT table. Use PBR to redirect the traffic.

If you have got ADSL connectivity and using ADSL router you can implement NAT on that router.

-> Sushil

"In order to load-share an internet connection, you must use BGP and have the ISPs announce your /24 block out to the internet."

Edison, why would configuring 2 equal cost default routes, each pointing to one of the ISPs, not work?

ip route 0.0.0.0 0.0.0.0 ISP A-next hop

ip route 0.0.0.0 0.0.0.0 ISP B-next hop

Victor

What IP subnet is being advertised to each ISP?

If you are planning to use the IP subnet assigned from each ISP, you must take NAT into account and as far as I know, you can't load-balance nor load-share with NAT, unless you break the source network into blocks with a ACL+route-map.

Now, if you are NAT'ng into your own public /24 subnet, you can advertised this block to both ISPs and load-share the connection.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco