Hello, I have a Kamailio machine that has multiple IPs assigned to a single interface.
eth0 = 1.2.3.4 eth0:1 = 1.2.3.5
In my Kamailio config i have
listen=eth0:5060
And it doesn't appear to be binding to my second IP address. What is the proper way to tell the server to bind to all IPs on a single interface? I don't want to specify the IP directly for binding as I use the same config across 4 Kamailio servers.
listen=eth0:1:5060 (i think that's not correct)
Thanks, Geoff
p.s. I would do some testing, but this is a live machine and I don't want to bring it up and down.
would this work if I wanted to listen on all interfaces and IPs?
listen=udp:*:5060
On Sun, Nov 29, 2009 at 2:57 PM, Geoffrey Mina geoffreymina@gmail.com wrote:
Hello, I have a Kamailio machine that has multiple IPs assigned to a single interface.
eth0 = 1.2.3.4 eth0:1 = 1.2.3.5
In my Kamailio config i have
listen=eth0:5060
And it doesn't appear to be binding to my second IP address. What is the proper way to tell the server to bind to all IPs on a single interface? I don't want to specify the IP directly for binding as I use the same config across 4 Kamailio servers.
listen=eth0:1:5060 (i think that's not correct)
Thanks, Geoff
p.s. I would do some testing, but this is a live machine and I don't want to bring it up and down.
Sorry to have a conversation with myself here :)
I just tried removing both my "listen" directives and the server successfully bound to all my IP on all interfaces. There was one downside though. Within a few minutes of coming up I received these:
Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "208.93.XX.XX:5060" from group: <4> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "75.150.XX.XX:5060" from group: <99> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "209.249.XX.XX:5060" from group: <4> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <1> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <3> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <5> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <1> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <3> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <5> is OFFLINE!
I have "ping" set to 1 on all my LCR gateways... I was forced to go back to the listen=eth0:5060 directive to correct the problem.
Anyone have any ideas?
On Sun, Nov 29, 2009 at 3:00 PM, Geoffrey Mina geoffreymina@gmail.com wrote:
would this work if I wanted to listen on all interfaces and IPs?
listen=udp:*:5060
On Sun, Nov 29, 2009 at 2:57 PM, Geoffrey Mina geoffreymina@gmail.com wrote:
Hello, I have a Kamailio machine that has multiple IPs assigned to a single interface.
eth0 = 1.2.3.4 eth0:1 = 1.2.3.5
In my Kamailio config i have
listen=eth0:5060
And it doesn't appear to be binding to my second IP address. What is the proper way to tell the server to bind to all IPs on a single interface? I don't want to specify the IP directly for binding as I use the same config across 4 Kamailio servers.
listen=eth0:1:5060 (i think that's not correct)
Thanks, Geoff
p.s. I would do some testing, but this is a live machine and I don't want to bring it up and down.
Hi,
2009/11/29 Geoffrey Mina geoffreymina@gmail.com
Sorry to have a conversation with myself here :)
I just tried removing both my "listen" directives and the server successfully bound to all my IP on all interfaces. There was one downside though. Within a few minutes of coming up I received these:
Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "208.93.XX.XX:5060" from group: <4> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "75.150.XX.XX:5060" from group: <99> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "209.249.XX.XX:5060" from group: <4> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <1> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <3> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <5> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <1> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <3> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <5> is OFFLINE!
I have "ping" set to 1 on all my LCR gateways... I was forced to go back to the listen=eth0:5060 directive to correct the problem.
Anyone have any ideas?
Are you sure the lcr gateways are accessible through both eth0 and eth0:1?
-Laszlo
You could try this:
http://www.cyberciti.biz/tips/linux-bond-or-team-multiple-network-interfaces...
(regarding the network aliases)
Cheers Marius
-----Original Message----- From: users-bounces@lists.kamailio.org on behalf of Laszlo Sent: Mon 11/30/2009 7:02 AM To: users@lists.kamailio.org Subject: Re: [Kamailio-Users] Binding to multiple IP addresses on the sameinterface.
Hi,
2009/11/29 Geoffrey Mina geoffreymina@gmail.com
Sorry to have a conversation with myself here :)
I just tried removing both my "listen" directives and the server successfully bound to all my IP on all interfaces. There was one downside though. Within a few minutes of coming up I received these:
Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "208.93.XX.XX:5060" from group: <4> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "75.150.XX.XX:5060" from group: <99> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "209.249.XX.XX:5060" from group: <4> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <1> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <3> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <5> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <1> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <3> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <5> is OFFLINE!
I have "ping" set to 1 on all my LCR gateways... I was forced to go back to the listen=eth0:5060 directive to correct the problem.
Anyone have any ideas?
Are you sure the lcr gateways are accessible through both eth0 and eth0:1?
-Laszlo
NIC bonding doesn't really accomplish the goal. I want a single interface to have 2 IP addresses.
On Mon, Nov 30, 2009 at 6:30 AM, Marius Zbihlei Marius.Zbihlei@1and1.ro wrote:
You could try this:
http://www.cyberciti.biz/tips/linux-bond-or-team-multiple-network-interfaces...
(regarding the network aliases)
Cheers Marius
-----Original Message----- From: users-bounces@lists.kamailio.org on behalf of Laszlo Sent: Mon 11/30/2009 7:02 AM To: users@lists.kamailio.org Subject: Re: [Kamailio-Users] Binding to multiple IP addresses on the sameinterface.
Hi,
2009/11/29 Geoffrey Mina geoffreymina@gmail.com
Sorry to have a conversation with myself here :)
I just tried removing both my "listen" directives and the server successfully bound to all my IP on all interfaces. There was one downside though. Within a few minutes of coming up I received these:
Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "208.93.XX.XX:5060" from group: <4> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "75.150.XX.XX:5060" from group: <99> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "209.249.XX.XX:5060" from group: <4> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <1> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <3> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <5> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <1> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <3> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <5> is OFFLINE!
I have "ping" set to 1 on all my LCR gateways... I was forced to go back to the listen=eth0:5060 directive to correct the problem.
Anyone have any ideas?
Are you sure the lcr gateways are accessible through both eth0 and eth0:1?
-Laszlo
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Yes, I am positive.
When I route via LCR with ping=0 it all works fine. I have disabled ping for now, I read that the current method of polling was just added in 1.5, and has already been removed in 3.0 because of various bugs and inefficiencies.
thanks.
On Mon, Nov 30, 2009 at 1:02 AM, Laszlo laszlo@voipfreak.net wrote:
Hi,
2009/11/29 Geoffrey Mina geoffreymina@gmail.com
Sorry to have a conversation with myself here :)
I just tried removing both my "listen" directives and the server successfully bound to all my IP on all interfaces. There was one downside though. Within a few minutes of coming up I received these:
Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "208.93.XX.XX:5060" from group: <4> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "75.150.XX.XX:5060" from group: <99> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "209.249.XX.XX:5060" from group: <4> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <1> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <3> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <5> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <1> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <3> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <5> is OFFLINE!
I have "ping" set to 1 on all my LCR gateways... I was forced to go back to the listen=eth0:5060 directive to correct the problem.
Anyone have any ideas?
Are you sure the lcr gateways are accessible through both eth0 and eth0:1?
-Laszlo
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
On Sunday 29 November 2009 20:57:59 Geoffrey Mina wrote:
I have a Kamailio machine that has multiple IPs assigned to a single interface.
eth0 = 1.2.3.4 eth0:1 = 1.2.3.5
No idea if it has any influence on Kamailio behaviour, but those seem to be two interfaces as far as applications are concerned. Assigning multiple IP's to one interface means that for all IP's, the interface should be the same.
Does 'ip addr show dev eth0' show 2 IP's?