Re: [asterisk-users] ADSL Load Balancing

2010-11-04 Thread Sean Elble
You can do policy routing on Linux systems too, using iptables' mark 
functionality, combined with iproute2.  Mark packets patching whatever 
parameters you wish (i.e.,  in the mangle table in the prerouting chain, match 
packets on UDP port 5060), and then use ip rule/ip route to route as you 
desire.  See here for more detailed instructions/examples:

http://linux-ip.net/html/adv-multi-internet.html

Whether this will work well (or at all) for your specific case is questionable 
at best.  I can't imagine load balancing SIP traffic across two ADSL lines 
would work well, if at all, but I've never tried it either.  Doing a 
primary/failover setup would work a lot better, I'd think.

Oh, and my apologies for top-quoting.  Outlook and all...


From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Chris Childress
Sent: Thursday, November 04, 2010 9:08 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] ADSL Load Balancing

On 3.11.2010 г. 02:29 ч., Dan Journo wrote:
Hi,

I've got a client with two ADSL connections for redundancy.

Is it possible to set up asterisk to connect to one SIP provider using both 
adsl connections and load balance between the two connections?
Or to use one connection as the main one, and automatically fail over if the 
first connection drops?

Or does this kind of thing need a serious network switch?

Thanks
Dan

Hello,

If you are using Cisco gear (891 SOHO routers for example), take a look at 
Policy Routing, you can set next-hop routers based on any information available 
to an access-list.

Chris
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] ADSL Load Balancing

2010-11-04 Thread Chris Childress

On 3.11.2010 ?. 02:29 ?., Dan Journo wrote:


Hi,

I've got a client with two ADSL connections for redundancy.

Is it possible to set up asterisk to connect to one SIP provider using 
both adsl connections and load balance between the two connections?


Or to use one connection as the main one, and automatically fail over 
if the first connection drops?


Or does this kind of thing need a serious network switch?

Thanks

Dan


Hello,

If you are using Cisco gear (891 SOHO routers for example), take a 
look at Policy Routing, you can set next-hop routers based on any 
information available to an access-list.


Chris
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] ADSL Load Balancing

2010-11-04 Thread Dan Journo
The adsl lines are with separate providers, so that won't work.
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] ADSL Load Balancing

2010-11-03 Thread Paul Belanger
On Tue, Nov 2, 2010 at 8:29 PM, Dan Journo  
wrote:
> Or does this kind of thing need a serious network switch?
>
Why not set MLPPP, assuming your provider supports it.

-- 
Paul Belanger | dCAP
Polybeacon | Consultant
Jabber: paul.belan...@polybeacon.com | IRC: pabelanger (Freenode) |
Blog: http://blog.polybeacon.com | Twitter: http://twitter.com/pabelanger

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] ADSL Load Balancing

2010-11-03 Thread Dan Journo
> I use the SG560 (http://www.snapgear.com/index.cfm?skey=1557) to do this.

Thats perfect. Any idea where they are available? I cant locate a store online.

Thanks
Dan



-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] ADSL Load Balancing

2010-11-03 Thread Dr. Michael J. Chudobiak
On 11/03/2010 03:49 AM, Gordon Henderson wrote:
>>
>> I've got a client with two ADSL connections for redundancy.
>>
>> Is it possible to set up asterisk to connect to one SIP provider using
>> both adsl connections and load balance between the two connections? Or
>> to use one connection as the main one, and automatically fail over if
>> the first connection drops?
>>
>> Or does this kind of thing need a serious network switch?

I use the SG560 (http://www.snapgear.com/index.cfm?skey=1557) to do this.

It handles two WAN connections (going to your ADSL modems). I set the 
routing policies so that VOIP goes on one link by default, and 
everything else on the other. If one link goes down, everything will be 
routed on the remaining link.

(Unfortunately, it doesn't seem to revert to the default state after the 
downed link recovers, so I have to add some reboot-modems-after-recovery 
scripts in a cron job to make things recovery in an ideal way.)

I think you can do the same with the Cisco RV016, which is cheaper, but 
the documentation is poor.

- Mike

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] ADSL Load Balancing

2010-11-03 Thread Gordon Henderson
On Tue, 2 Nov 2010, Dan Journo wrote:

> Hi,
>
> I've got a client with two ADSL connections for redundancy.
>
> Is it possible to set up asterisk to connect to one SIP provider using 
> both adsl connections and load balance between the two connections? Or 
> to use one connection as the main one, and automatically fail over if 
> the first connection drops?
>
> Or does this kind of thing need a serious network switch?

Get a Draytek 2820 router/modem and a Vigor 120 ADSL modem and do it in 
the 2820. Much easier. (The 2820 has one ADSL port and one WAN port which 
will run pppoe to the 120 modem)

However if you're up for it, then 2 separate ADSL modem/routers and read 
this: http://lartc.org/howto/ specifically section 4.


Gordon


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] ADSL Load Balancing

2010-11-02 Thread Duane Larson
Your router would have to do per-destination when it came to load balancing
between the two dsl circuits.  That way a single call could only use one dsl
path.

On Nov 2, 2010 7:36 PM, "Dan Journo"  wrote:

 Hi,



I've got a client with two ADSL connections for redundancy.



Is it possible to set up asterisk to connect to one SIP provider using both
adsl connections and load balance between the two connections?

Or to use one connection as the main one, and automatically fail over if the
first connection drops?



Or does this kind of thing need a serious network switch?



Thanks

Dan



--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] ADSL Load Balancing

2010-11-02 Thread Dan Journo
Hi,

I've got a client with two ADSL connections for redundancy.

Is it possible to set up asterisk to connect to one SIP provider using both 
adsl connections and load balance between the two connections?
Or to use one connection as the main one, and automatically fail over if the 
first connection drops?

Or does this kind of thing need a serious network switch?

Thanks
Dan

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users