<p dir="ltr">So the config is wrong.<br>
*_int must get back to the 'lo' as in the beginning and you need to specify sip_ext in your eth1 instead.<br>
Also in config.yml you have to specify a new sip socket in the lb section so you can use it for outgoing messages, for example in the peer preferences (outbound_socket).</p>
<p dir="ltr">Daniel</p>
<div class="gmail_quote">On 19 Feb 2015 22:17, Mykola Zaika <mzaika@voiptime.net> wrote:<br type='attribution'><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Eth0 is internal network interface (LAN), subscribers will be connected to this interface also several peers. Eth1 is external network interface (Real internet ip address ). All my peers will be registred on this interface (Eth1). All calls go "phone_A - Asterisk_Pbx- Eth0 sipwise .... Eth1 sipwise- peer provider - phone_B"</p>
<div class="elided-text">19 лют. 2015 22:32, користувач "Daniel Grotti" <<a href="mailto:dgrotti@sipwise.com">dgrotti@sipwise.com</a>> написав:<br /><blockquote style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex">It depends what do you want to do.<br />
Do you want to use the second interface as external interface ?<br />
Cause if it's so, you need to change your config.<br />
<br />
Please explain what do you have to do.<br />
<br />
Daniel<br />
<br />
<br />
On 02/19/2015 09:20 PM, Mykola Zaika wrote:<br />
> I moved the "cluster sets" section to the Eth0. Is that correct? Where<br />
> can I find some example network.yml with two network intefaces?<br />
> hosts:<br />
> self:<br />
> dbnode: 1<br />
> eth0:<br />
> ip: 10.200.10.250<br />
> netmask: 255.255.255.0<br />
> type:<br />
> - web_int<br />
> - ssh_ext<br />
> - web_ext<br />
> - sip_int<br />
> - rtp_int<br />
> cluster_sets:<br />
> - default<br />
> ip: 127.0.0.1<br />
> netmask: 255.255.255.0<br />
> shared_ip: []<br />
> shared_v6ip: []<br />
> type:<br />
> - ha_int<br />
> - aux_ext<br />
> v6ip: '::1'<br />
> eth1:<br />
> ip: 10.130.10.250<br />
> netmask: 255.255.255.0<br />
> type:<br />
> - web_ext<br />
> - sip_ext<br />
> - rtp_ext<br />
> - ssh_ext<br />
> - web_int<br />
> interfaces:<br />
> - lo<br />
> - eth0<br />
> - eth1<br />
> lo:<br />
> role:<br />
> - proxy<br />
> - lb<br />
> - mgmt<br />
> - rtp<br />
> - db<br />
><br />
> 19 лют. 2015 19:44, користувач "Daniel Grotti" <<a href="mailto:dgrotti@sipwise.com">dgrotti@sipwise.com</a><br />
> <mailto:<a href="mailto:dgrotti@sipwise.com">dgrotti@sipwise.com</a>>> написав:<br />
><br />
> You should move the cluster_set section to eth0 which is your new<br />
> internal interface.<br />
><br />
> Why you add a new interface? To get rid of localhost? Or to add a<br />
> new public ip for sip ?<br />
><br />
> On 19 Feb 2015 18:39, Mykola Zaika <<a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a><br />
> <mailto:<a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a>>> wrote:<br />
><br />
> hosts:<br />
> self:<br />
> dbnode: 1<br />
> eth0:<br />
> ip: 10.200.10.250<br />
> netmask: 255.255.255.0<br />
> type:<br />
> - web_int<br />
> - ssh_ext<br />
> - web_ext<br />
> - sip_int<br />
> - rtp_int<br />
> eth1:<br />
> ip: 10.130.10.250<br />
> netmask: 255.255.255.0<br />
> type:<br />
> - web_ext<br />
> - sip_ext<br />
> - rtp_ext<br />
> - ssh_ext<br />
> - web_int<br />
> interfaces:<br />
> - lo<br />
> - eth0<br />
> - eth1<br />
> lo:<br />
> cluster_sets:<br />
> - default<br />
> ip: 127.0.0.1<br />
> netmask: 255.255.255.0<br />
> shared_ip: []<br />
> shared_v6ip: []<br />
> type:<br />
> - ha_int<br />
> - aux_ext<br />
> v6ip: '::1'<br />
> role:<br />
> - proxy<br />
> - lb<br />
> - mgmt<br />
> - rtp<br />
> - db<br />
><br />
><br />
> --<br />
> З повагою,<br />
> Микола Заїка<br />
> Компанія VoIPTime,<br />
> Тел: +380 32 2328022 <tel:%2B380%2032%202328022><br />
> <a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a> <mailto:<a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a>><br />
> <a href="http://www.voiptime.net">www.voiptime.net</a> <<a href="http://www.voiptime.net">http://www.voiptime.net</a>><br />
><br />
> 2015-02-19 19:36 GMT+02:00 Daniel Grotti <<a href="mailto:dgrotti@sipwise.com">dgrotti@sipwise.com</a><br />
> <mailto:<a href="mailto:dgrotti@sipwise.com">dgrotti@sipwise.com</a>>>:<br />
><br />
> Sip_int should be assigned to 'lo' only.<br />
> Can you share your network.yml ?<br />
><br />
> On 19 Feb 2015 18:30, Mykola Zaika <<a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a><br />
> <mailto:<a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a>>> wrote:<br />
><br />
> Yes, I assigned Eth0 as type=sip_int, type= rtp_int and<br />
> Eth1 as type=sip_ext, type=rtp_ext.<br />
><br />
><br />
> --<br />
> З повагою,<br />
> Микола Заїка<br />
> Компанія VoIPTime,<br />
> Тел: +380 32 2328022 <tel:%2B380%2032%202328022><br />
> <a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a> <mailto:<a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a>><br />
> <a href="http://www.voiptime.net">www.voiptime.net</a> <<a href="http://www.voiptime.net">http://www.voiptime.net</a>><br />
><br />
> 2015-02-19 19:15 GMT+02:00 Daniel Grotti<br />
> <<a href="mailto:dgrotti@sipwise.com">dgrotti@sipwise.com</a> <mailto:<a href="mailto:dgrotti@sipwise.com">dgrotti@sipwise.com</a>>>:<br />
><br />
> Did you specify sip_ext to eth1?<br />
> On 19 Feb 2015 18:05, Mykola Zaika<br />
> <<a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a> <mailto:<a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a>>><br />
> wrote:<br />
> ><br />
> > I need both interfaces. When I change<br />
> move-from=eth0 instead of --move-from=lo<br />
> > than Eth0 does not work.<br />
> ><br />
> > --<br />
> > З повагою,<br />
> > Микола Заїка<br />
> > Компанія VoIPTime,<br />
> > Тел: +380 32 2328022 <tel:%2B380%2032%202328022><br />
> > <a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a> <mailto:<a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a>><br />
> > <a href="http://www.voiptime.net">www.voiptime.net</a> <<a href="http://www.voiptime.net">http://www.voiptime.net</a>><br />
> ><br />
> > 2015-02-19 18:53 GMT+02:00 William Fulton<br />
> <<a href="mailto:wfulton@thirdhatch.com">wfulton@thirdhatch.com</a><br />
> <mailto:<a href="mailto:wfulton@thirdhatch.com">wfulton@thirdhatch.com</a>>>:<br />
> >><br />
> >><br />
> >><br />
> >><br />
> >><br />
> >> From: William Fulton<br />
> >> Sent: Thursday, February 19, 2015 8:53 AM<br />
> >> To: 'Mykola Zaika'<br />
> >> Subject: RE: [Spce-user] second network interface<br />
> >><br />
> >><br />
> >><br />
> >> If you have already assigned these functions to<br />
> eth0, you must change your syntax in step 2 to:<br />
> >><br />
> >> --move-from=eth0 instead of --move-from=lo<br />
> >><br />
> >><br />
> >><br />
> >> From: Spce-user<br />
> [mailto:<a href="mailto:spce-user-bounces@lists.sipwise.com">spce-user-bounces@lists.sipwise.com</a><br />
> <mailto:<a href="mailto:spce-user-bounces@lists.sipwise.com">spce-user-bounces@lists.sipwise.com</a>>] On<br />
> Behalf Of Mykola Zaika<br />
> >> Sent: Thursday, February 19, 2015 8:48 AM<br />
> >> To: Spce-user<br />
> >> Subject: [Spce-user] second network interface<br />
> >><br />
> >><br />
> >><br />
> >> Hello,<br />
> >><br />
> >> I added second network interface to my sipwise CE<br />
> (eth1). But all my traffic go via Eth0. What I`m<br />
> doing wrong?<br />
> >><br />
> >> 1. vi /etc/network/interfaces<br />
> >><br />
> >> auto lo<br />
> >> iface lo inet loopback<br />
> >><br />
> >> # The primary network interface<br />
> >> auto eth0<br />
> >> iface eth0 inet static<br />
> >> address 10.200.10.250<br />
> >> netmask 255.255.255.0<br />
> >> gateway 10.200.10.254<br />
> >> dns-nameservers 10.130.10.12<br />
> >><br />
> >> auto eth1<br />
> >> iface eth1 inet static<br />
> >> address 10.130.10.250<br />
> >> netmask 255.255.255.0<br />
> >><br />
> >> 2.run comands :<br />
> >><br />
> >> - ngcp-network --set-interface=eth1<br />
> --ip=10.130.10.250 --netmask=255.255.255.0<br />
> >><br />
> >> - ngcp-network --move-from=lo --move-to=eth1<br />
> --type=web_ext --type=sip_ext --type=rtp_ext --<br />
> type=ssh_ext --type=web_int<br />
> >><br />
> >> 3. ngcpcfg apply<br />
> >><br />
> >><br />
> >> --<br />
> >><br />
> >> З повагою,<br />
> >><br />
> >> Микола Заїка<br />
> >><br />
> >> Компанія VoIPTime,<br />
> >><br />
> >> Тел: +380 32 2328022 <tel:%2B380%2032%202328022><br />
> >><br />
> >> <a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a> <mailto:<a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a>><br />
> >><br />
> >> <a href="http://www.voiptime.net">www.voiptime.net</a> <<a href="http://www.voiptime.net">http://www.voiptime.net</a>><br />
> >><br />
> >><br />
> >> _______________________________________________<br />
> >> Spce-user mailing list<br />
> >> <a href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a><br />
> <mailto:<a href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a>><br />
> >> <a href="https://lists.sipwise.com/listinfo/spce-user">https://lists.sipwise.com/listinfo/spce-user</a><br />
> >><br />
> ><br />
><br />
><br />
><br />
</blockquote></div>
</blockquote></div>