Re: [asterisk-users] Binding asterisk to two static IPs

2011-10-14 Thread Edwin Lam
On 10/12/11 2:27 PM, ge...@riseup.net wrote: If you put 0.0.0.0, it will bind to all addresses. In a HA Cluster, on the active node, if you have a box address of 192.168.1.101 and a floating address of 192.168.1.102, then if you use bindaddr=0.0.0.0 you will find that phones on the

Re: [asterisk-users] Binding asterisk to two static IPs

2011-10-13 Thread Benny Amorsen
ge...@riseup.net writes: Any idea how to solve this? You can control src address selection with with ip route command. E.g. if you know that you want to reach 192.168.0.0/24 with a source address 192.168.0.50, you can do: ip route change 192.168.0.0/24 src 192.168.0.50 scope link dev eth0

Re: [asterisk-users] Binding asterisk to two static IPs

2011-10-13 Thread Dale Noll
On 10/12/2011 06:15 PM, ge...@riseup.net wrote: I solved it by having two physical connections to my network. Yes, I thought of this too. I used the second nic for the drbd-communication, but I think I will have to change this. If your networking equipment supports VLAN, you could add a

Re: [asterisk-users] Binding asterisk to two static IPs

2011-10-13 Thread georg
Hi Dale, Wow, thanks for the tip. I just start to change the network config, and see how it works. If your networking equipment supports VLAN, you could add a virtual lan to the existing ethernet device. Jeah, got a Cisco managed switch. Then assign an address to eth0.42. You can use eth0

Re: [asterisk-users] Binding asterisk to two static IPs

2011-10-13 Thread Dale Noll
Don't you think the problem will still occur that the answers from asterisk seem to come from the main address assigned to the NIC? Or isn't this possible because of the vlan? Thanks, Georg It should work. As far as the OS and routing tables are concerned, eth0 and eth0.42 are different

Re: [asterisk-users] Binding asterisk to two static IPs

2011-10-13 Thread georg
If your networking equipment supports VLAN, you could add a virtual lan to the existing ethernet device. vconfig add eth0 42 Then assign an address to eth0.42. You can use eth0 for your endpoints and eth0.42 for your provider or whichever way you want it. You do then, of course, need to

Re: [asterisk-users] Binding asterisk to two static IPs

2011-10-13 Thread Dale Noll
On 10/13/2011 10:53 AM, ge...@riseup.net wrote: Just tested this, doesn't work. Asterisk ist still replying using the main-address associated to the NIC. In a previous posting, Jim Lucas proposed... --- snip --- I solved it by having two physical connections to my network. PBX E0 IP

Re: [asterisk-users] Binding asterisk to two static IPs

2011-10-13 Thread Eric Wieling
- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Dale Noll Sent: Thursday, October 13, 2011 12:47 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Binding asterisk to two static IPs On 10/13

Re: [asterisk-users] Binding asterisk to two static IPs

2011-10-13 Thread georg
This has two different subnets for eth0 and eth1. Do you have different IP subnets for eth0 and eth0.42? If you do, I do not know the reason for the problem. Ah, sorry, overlooked this. I will give it another try with different subnets. Thanks, Georg --

Re: [asterisk-users] Binding asterisk to two static IPs

2011-10-12 Thread Jakob Hirsch
On 12.10.2011 23:27, ge...@riseup.net wrote: If you put 0.0.0.0, it will bind to all addresses. In a HA Cluster, on the active node, if you have a box address of 192.168.1.101 and a floating address of 192.168.1.102, then if you use bindaddr=0.0.0.0 ... Any idea how to solve this? Yes: Use

Re: [asterisk-users] Binding asterisk to two static IPs

2011-10-12 Thread georg
Hallo, On 12.10.2011 23:27, ge...@riseup.net wrote: If you put 0.0.0.0, it will bind to all addresses. In a HA Cluster, on the active node, if you have a box address of 192.168.1.101 and a floating address of 192.168.1.102, then if you use bindaddr=0.0.0.0 ... Any idea how to solve this?

Re: [asterisk-users] Binding asterisk to two static IPs

2011-10-12 Thread Tarek Sawah
i had a similar challenge having Asterisk listen to multiple ports.. some of my agents located in countries where SIP is blocked the only effective way is to use IPTABLES i believe your problem can be solved with the same method. Tarek Sawah Information Technology Adviser Integrated

Re: [asterisk-users] Binding asterisk to two static IPs

2011-10-12 Thread Jakob Hirsch
On 13.10.2011 00:27, ge...@riseup.net wrote: If I use the floating internal ip, I can't reach my provider anymore. Thought this was clear. After reading your original message, this is clear, yes. Sorry for being sloppy. --

Re: [asterisk-users] Binding asterisk to two static IPs

2011-10-12 Thread georg
After reading your original message, this is clear, yes. Sorry for being sloppy. np ;) Anyone else? Would be really really great... Thanks, Georg -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com --

Re: [asterisk-users] Binding asterisk to two static IPs

2011-10-12 Thread Jim Lucas
On 10/12/2011 3:55 PM, ge...@riseup.net wrote: After reading your original message, this is clear, yes. Sorry for being sloppy. np ;) Anyone else? Would be really really great... I solved it by having two physical connections to my network. PBX E0 IP 192.168.100.36 NM

Re: [asterisk-users] Binding asterisk to two static IPs

2011-10-12 Thread georg
I solved it by having two physical connections to my network. Yes, I thought of this too. I used the second nic for the drbd-communication, but I think I will have to change this. Thanks, Georg -- _ -- Bandwidth and