<div dir="ltr"><div>Daniel your config does not work. <br></div>I changed config and its work.<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_ext<br>        - ssh_ext<br>        - web_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>        - sip_int<br>        - web_int<br>        - ha_int<br>        - aux_ext<br>        - ssh_ext<br>      v6ip: '::1'<br>    role:<br>      - proxy<br>      - lb<br>      - mgmt<br>      - rtp<br>      - db<br><br>Also in config.yml I specify a new sip socket.<br><br>extra_sockets:<br>      test: udp:<a href="http://10.200.10.250:5060">10.200.10.250:5060</a> <br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span><font color="#888888">-- <br><div><div dir="ltr"><div>З повагою,</div><div>Микола Заїка<br></div><div>Компанія VoIPTime,</div><div>Тел: <span style="color:rgb(0,0,255)"><a href="tel:%2B380%2032%202328022" value="+380322328022" target="_blank">+380 32 2328022</a></span></div><div><span style="color:rgb(0,0,255)"><a href="mailto:mzaika@voiptime.net" target="_blank">mzaika@voiptime.net</a></span></div><div><span style="color:rgb(0,0,255)"><a href="http://www.voiptime.net" target="_blank">www.voiptime.net</a></span></div></div></div></font></span></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">2015-02-20 14:17 GMT+02:00 Daniel Grotti <span dir="ltr"><<a href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
this config should work...<br>
<span class=""><br>
<br>
<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>
</span>        - web_ext<br>
        - ssh_ext<br>
        - web_int<br>
        - sip_ext<br>
        - rtp_ext<br>
<span class="">    eth1:<br>
      ip: 10.130.10.250<br>
      netmask: 255.255.255.0<br>
      type:<br>
        - web_ext<br>
        - sip_ext<br>
</span><span class="">        - 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>
</span>        - sip_int<br>
        - web_int<br>
        - ha_int<br>
        - aux_ext<br>
        - ssh_ext<br>
<span class="">      v6ip: '::1'<br>
    role:<br>
      - proxy<br>
      - lb<br>
      - mgmt<br>
      - rtp<br>
      - db<br>
<br>
</span><span class="">On 02/19/2015 10:17 PM, Mykola Zaika wrote:<br>
> Eth0 is internal network interface (LAN), subscribers will be connected<br>
> to this interface also several peers.  Eth1 is external network<br>
> interface (Real internet ip address ).  All my peers will be registred<br>
> on this interface (Eth1). All calls go  "phone_A - Asterisk_Pbx- Eth0<br>
> sipwise .... Eth1 sipwise- peer provider - phone_B"<br>
><br>
> 19 лют. 2015 22:32, користувач "Daniel Grotti" <<a href="mailto:dgrotti@sipwise.com">dgrotti@sipwise.com</a><br>
</span>> <mailto:<a href="mailto:dgrotti@sipwise.com">dgrotti@sipwise.com</a>>> написав:<br>
<div><div class="h5">><br>
>     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"<br>
>     <<a href="mailto:dgrotti@sipwise.com">dgrotti@sipwise.com</a> <mailto:<a href="mailto:dgrotti@sipwise.com">dgrotti@sipwise.com</a>><br>
</div></div>>     > <mailto:<a href="mailto:dgrotti@sipwise.com">dgrotti@sipwise.com</a> <mailto:<a href="mailto:dgrotti@sipwise.com">dgrotti@sipwise.com</a>>>> написав:<br>
<span class="">>     ><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>><br>
</span><div><div class="h5">>     >     <mailto:<a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a> <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>
</div></div>>     <mailto:<a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a> <mailto:<a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a>>><br>
<span class="">>     >         <a href="http://www.voiptime.net" target="_blank">www.voiptime.net</a> <<a href="http://www.voiptime.net" target="_blank">http://www.voiptime.net</a>><br>
>     <<a href="http://www.voiptime.net" target="_blank">http://www.voiptime.net</a>><br>
>     ><br>
>     >         2015-02-19 19:36 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>
</span>>     >         <mailto:<a href="mailto:dgrotti@sipwise.com">dgrotti@sipwise.com</a> <mailto:<a href="mailto:dgrotti@sipwise.com">dgrotti@sipwise.com</a>>>>:<br>
<span class="">>     ><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<br>
>     <<a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a> <mailto:<a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a>><br>
</span>>     >             <mailto:<a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a><br>
<span class="">>     <mailto:<a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a>>>> wrote:<br>
>     ><br>
>     >                 Yes, I assigned Eth0 as type=sip_int, type=<br>
>     rtp_int  and<br>
>     >                 Eth1 as type=sip_ext, type=rtp_ext.<br>
>     ><br>
>     ><br>
>     >                 --<br>
>     >                 З повагою,<br>
>     >                 Микола Заїка<br>
>     >                 Компанія VoIPTime,<br>
>     >                 Тел: <a href="tel:%2B380%2032%202328022" value="+380322328022">+380 32 2328022</a> <tel:%2B380%2032%202328022><br>
</span><span class="">>     <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>
</span>>     <mailto:<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" target="_blank">www.voiptime.net</a> <<a href="http://www.voiptime.net" target="_blank">http://www.voiptime.net</a>><br>
<span class="">>     <<a href="http://www.voiptime.net" target="_blank">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>
</span>>     <mailto:<a href="mailto:dgrotti@sipwise.com">dgrotti@sipwise.com</a> <mailto:<a href="mailto:dgrotti@sipwise.com">dgrotti@sipwise.com</a>>>>:<br>
<span class="">>     ><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><br>
</span>>     <mailto:<a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a>> <mailto:<a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a><br>
<span class="">>     <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>
>     >                     > Тел: <a href="tel:%2B380%2032%202328022" value="+380322328022">+380 32 2328022</a><br>
</span>>     <tel:%2B380%2032%202328022> <tel:%2B380%2032%202328022><br>
>     >                     > <a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a><br>
>     <mailto:<a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a>> <mailto:<a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a><br>
<span class="">>     <mailto:<a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a>>><br>
>     >                     > <a href="http://www.voiptime.net" target="_blank">www.voiptime.net</a> <<a href="http://www.voiptime.net" target="_blank">http://www.voiptime.net</a>><br>
</span><span class="">>     <<a href="http://www.voiptime.net" target="_blank">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>
</span>>     >                     <mailto:<a href="mailto:wfulton@thirdhatch.com">wfulton@thirdhatch.com</a><br>
<div><div class="h5">>     <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<br>
>     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>><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<br>
>     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<br>
>     <tel:%2B380%2032%202328022><br>
>     >                     >><br>
>     >                     >> <a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a><br>
</div></div>>     <mailto:<a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a>> <mailto:<a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a><br>
<span class="">>     <mailto:<a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a>>><br>
>     >                     >><br>
>     >                     >> <a href="http://www.voiptime.net" target="_blank">www.voiptime.net</a> <<a href="http://www.voiptime.net" target="_blank">http://www.voiptime.net</a>><br>
</span><span class="">>     <<a href="http://www.voiptime.net" target="_blank">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>
</span>>     >                     <mailto:<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" target="_blank">https://lists.sipwise.com/listinfo/spce-user</a><br>
>     >                     >><br>
>     >                     ><br>
>     ><br>
>     ><br>
>     ><br>
><br>
</blockquote></div><br></div>