[Spce-user] second network interface

Mykola Zaika mzaika at voiptime.net
Fri Feb 20 09:24:28 EST 2015


Daniel your config does not work.
I changed config and its work.

hosts:
  self:
    dbnode: 1
    eth0:
      ip: 10.200.10.250
      netmask: 255.255.255.0
      type:
        - web_ext
        - ssh_ext
        - web_int
    eth1:
      ip: 10.130.10.250
      netmask: 255.255.255.0
      type:
        - web_ext
        - sip_ext
        - rtp_ext
        - ssh_ext
        - web_int
    interfaces:
      - lo
      - eth0
      - eth1
    lo:
      cluster_sets:
        - default
      ip: 127.0.0.1
      netmask: 255.255.255.0
      shared_ip: []
      shared_v6ip: []
      type:
        - sip_int
        - web_int
        - ha_int
        - aux_ext
        - ssh_ext
      v6ip: '::1'
    role:
      - proxy
      - lb
      - mgmt
      - rtp
      - db

Also in config.yml I specify a new sip socket.

extra_sockets:
      test: udp:10.200.10.250:5060

-- 
З повагою,
Микола Заїка
Компанія VoIPTime,
Тел: +380 32 2328022
mzaika at voiptime.net
www.voiptime.net

2015-02-20 14:17 GMT+02:00 Daniel Grotti <dgrotti at sipwise.com>:

> Hi,
> this config should work...
>
>
>
>
> hosts:
>   self:
>     dbnode: 1
>     eth0:
>       ip: 10.200.10.250
>       netmask: 255.255.255.0
>       type:
>         - web_ext
>         - ssh_ext
>         - web_int
>         - sip_ext
>         - rtp_ext
>     eth1:
>       ip: 10.130.10.250
>       netmask: 255.255.255.0
>       type:
>         - web_ext
>         - sip_ext
>         - ssh_ext
>         - web_int
>     interfaces:
>       - lo
>       - eth0
>       - eth1
>     lo:
>       cluster_sets:
>         - default
>       ip: 127.0.0.1
>       netmask: 255.255.255.0
>       shared_ip: []
>       shared_v6ip: []
>       type:
>         - sip_int
>         - web_int
>         - ha_int
>         - aux_ext
>         - ssh_ext
>       v6ip: '::1'
>     role:
>       - proxy
>       - lb
>       - mgmt
>       - rtp
>       - db
>
> On 02/19/2015 10:17 PM, Mykola Zaika wrote:
> > 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"
> >
> > 19 лют. 2015 22:32, користувач "Daniel Grotti" <dgrotti at sipwise.com
> > <mailto:dgrotti at sipwise.com>> написав:
> >
> >     It depends what do you want to do.
> >     Do you want to use the second interface as external interface ?
> >     Cause if it's so, you need to change your config.
> >
> >     Please explain what do you have to do.
> >
> >     Daniel
> >
> >
> >     On 02/19/2015 09:20 PM, Mykola Zaika wrote:
> >     > I moved the "cluster sets" section to the Eth0. Is that correct?
> Where
> >     > can I find some example network.yml with two network intefaces?
> >     > hosts:
> >     >   self:
> >     >     dbnode: 1
> >     >     eth0:
> >     >       ip: 10.200.10.250
> >     >       netmask: 255.255.255.0
> >     >       type:
> >     >         - web_int
> >     >         - ssh_ext
> >     >         - web_ext
> >     >         - sip_int
> >     >         - rtp_int
> >     >       cluster_sets:
> >     >         - default
> >     >       ip: 127.0.0.1
> >     >       netmask: 255.255.255.0
> >     >       shared_ip: []
> >     >       shared_v6ip: []
> >     >       type:
> >     >         - ha_int
> >     >         - aux_ext
> >     >       v6ip: '::1'
> >     >     eth1:
> >     >       ip: 10.130.10.250
> >     >       netmask: 255.255.255.0
> >     >       type:
> >     >         - web_ext
> >     >         - sip_ext
> >     >         - rtp_ext
> >     >         - ssh_ext
> >     >         - web_int
> >     >     interfaces:
> >     >       - lo
> >     >       - eth0
> >     >       - eth1
> >     >     lo:
> >     >     role:
> >     >       - proxy
> >     >       - lb
> >     >       - mgmt
> >     >       - rtp
> >     >       - db
> >     >
> >     > 19 лют. 2015 19:44, користувач "Daniel Grotti"
> >     <dgrotti at sipwise.com <mailto:dgrotti at sipwise.com>
> >     > <mailto:dgrotti at sipwise.com <mailto:dgrotti at sipwise.com>>>
> написав:
> >     >
> >     >     You should move the cluster_set section to eth0 which is your
> new
> >     >     internal interface.
> >     >
> >     >     Why you add a new interface? To get rid of localhost? Or to
> add a
> >     >     new public ip for sip ?
> >     >
> >     >     On 19 Feb 2015 18:39, Mykola Zaika <mzaika at voiptime.net
> >     <mailto:mzaika at voiptime.net>
> >     >     <mailto:mzaika at voiptime.net <mailto:mzaika at voiptime.net>>>
> wrote:
> >     >
> >     >         hosts:
> >     >           self:
> >     >             dbnode: 1
> >     >             eth0:
> >     >               ip: 10.200.10.250
> >     >               netmask: 255.255.255.0
> >     >               type:
> >     >                 - web_int
> >     >                 - ssh_ext
> >     >                 - web_ext
> >     >                 - sip_int
> >     >                 - rtp_int
> >     >             eth1:
> >     >               ip: 10.130.10.250
> >     >               netmask: 255.255.255.0
> >     >               type:
> >     >                 - web_ext
> >     >                 - sip_ext
> >     >                 - rtp_ext
> >     >                 - ssh_ext
> >     >                 - web_int
> >     >             interfaces:
> >     >               - lo
> >     >               - eth0
> >     >               - eth1
> >     >             lo:
> >     >               cluster_sets:
> >     >                 - default
> >     >               ip: 127.0.0.1
> >     >               netmask: 255.255.255.0
> >     >               shared_ip: []
> >     >               shared_v6ip: []
> >     >               type:
> >     >                 - ha_int
> >     >                 - aux_ext
> >     >               v6ip: '::1'
> >     >             role:
> >     >               - proxy
> >     >               - lb
> >     >               - mgmt
> >     >               - rtp
> >     >               - db
> >     >
> >     >
> >     >         --
> >     >         З повагою,
> >     >         Микола Заїка
> >     >         Компанія VoIPTime,
> >     >         Тел: +380 32 2328022 <tel:%2B380%2032%202328022>
> >     >         mzaika at voiptime.net <mailto:mzaika at voiptime.net>
> >     <mailto:mzaika at voiptime.net <mailto:mzaika at voiptime.net>>
> >     >         www.voiptime.net <http://www.voiptime.net>
> >     <http://www.voiptime.net>
> >     >
> >     >         2015-02-19 19:36 GMT+02:00 Daniel Grotti
> >     <dgrotti at sipwise.com <mailto:dgrotti at sipwise.com>
> >     >         <mailto:dgrotti at sipwise.com <mailto:dgrotti at sipwise.com
> >>>:
> >     >
> >     >             Sip_int should be assigned to 'lo' only.
> >     >             Can you share your network.yml ?
> >     >
> >     >             On 19 Feb 2015 18:30, Mykola Zaika
> >     <mzaika at voiptime.net <mailto:mzaika at voiptime.net>
> >     >             <mailto:mzaika at voiptime.net
> >     <mailto:mzaika at voiptime.net>>> wrote:
> >     >
> >     >                 Yes, I assigned Eth0 as type=sip_int, type=
> >     rtp_int  and
> >     >                 Eth1 as type=sip_ext, type=rtp_ext.
> >     >
> >     >
> >     >                 --
> >     >                 З повагою,
> >     >                 Микола Заїка
> >     >                 Компанія VoIPTime,
> >     >                 Тел: +380 32 2328022 <tel:%2B380%2032%202328022>
> >     <tel:%2B380%2032%202328022>
> >     >                 mzaika at voiptime.net <mailto:mzaika at voiptime.net>
> >     <mailto:mzaika at voiptime.net <mailto:mzaika at voiptime.net>>
> >     >                 www.voiptime.net <http://www.voiptime.net>
> >     <http://www.voiptime.net>
> >     >
> >     >                 2015-02-19 19:15 GMT+02:00 Daniel Grotti
> >     >                 <dgrotti at sipwise.com <mailto:dgrotti at sipwise.com>
> >     <mailto:dgrotti at sipwise.com <mailto:dgrotti at sipwise.com>>>:
> >     >
> >     >                     Did you specify sip_ext to eth1?
> >     >                     On 19 Feb 2015 18:05, Mykola Zaika
> >     >                     <mzaika at voiptime.net
> >     <mailto:mzaika at voiptime.net> <mailto:mzaika at voiptime.net
> >     <mailto:mzaika at voiptime.net>>>
> >     >                     wrote:
> >     >                     >
> >     >                     > I need both interfaces. When I change
> >     >                     move-from=eth0 instead of --move-from=lo
> >     >                     > than Eth0 does not work.
> >     >                     >
> >     >                     > --
> >     >                     > З повагою,
> >     >                     > Микола Заїка
> >     >                     > Компанія VoIPTime,
> >     >                     > Тел: +380 32 2328022
> >     <tel:%2B380%2032%202328022> <tel:%2B380%2032%202328022>
> >     >                     > mzaika at voiptime.net
> >     <mailto:mzaika at voiptime.net> <mailto:mzaika at voiptime.net
> >     <mailto:mzaika at voiptime.net>>
> >     >                     > www.voiptime.net <http://www.voiptime.net>
> >     <http://www.voiptime.net>
> >     >                     >
> >     >                     > 2015-02-19 18:53 GMT+02:00 William Fulton
> >     >                     <wfulton at thirdhatch.com
> >     <mailto:wfulton at thirdhatch.com>
> >     >                     <mailto:wfulton at thirdhatch.com
> >     <mailto:wfulton at thirdhatch.com>>>:
> >     >                     >>
> >     >                     >>
> >     >                     >>
> >     >                     >>
> >     >                     >>
> >     >                     >> From: William Fulton
> >     >                     >> Sent: Thursday, February 19, 2015 8:53 AM
> >     >                     >> To: 'Mykola Zaika'
> >     >                     >> Subject: RE: [Spce-user] second network
> >     interface
> >     >                     >>
> >     >                     >>
> >     >                     >>
> >     >                     >> If you have already assigned these
> functions to
> >     >                     eth0, you must change your syntax in step 2 to:
> >     >                     >>
> >     >                     >> --move-from=eth0 instead of --move-from=lo
> >     >                     >>
> >     >                     >>
> >     >                     >>
> >     >                     >> From: Spce-user
> >     >                     [mailto:spce-user-bounces at lists.sipwise.com
> >     <mailto:spce-user-bounces at lists.sipwise.com>
> >     >                     <mailto:spce-user-bounces at lists.sipwise.com
> >     <mailto:spce-user-bounces at lists.sipwise.com>>] On
> >     >                     Behalf Of Mykola Zaika
> >     >                     >> Sent: Thursday, February 19, 2015 8:48 AM
> >     >                     >> To: Spce-user
> >     >                     >> Subject: [Spce-user] second network
> interface
> >     >                     >>
> >     >                     >>
> >     >                     >>
> >     >                     >> Hello,
> >     >                     >>
> >     >                     >> I added second network interface to my
> >     sipwise CE
> >     >                     (eth1). But all my traffic go via Eth0. What
> I`m
> >     >                     doing wrong?
> >     >                     >>
> >     >                     >> 1. vi /etc/network/interfaces
> >     >                     >>
> >     >                     >> auto lo
> >     >                     >> iface lo inet loopback
> >     >                     >>
> >     >                     >> # The primary network interface
> >     >                     >> auto eth0
> >     >                     >> iface eth0 inet static
> >     >                     >> address 10.200.10.250
> >     >                     >> netmask 255.255.255.0
> >     >                     >> gateway 10.200.10.254
> >     >                     >> dns-nameservers 10.130.10.12
> >     >                     >>
> >     >                     >> auto eth1
> >     >                     >> iface eth1 inet static
> >     >                     >> address 10.130.10.250
> >     >                     >> netmask 255.255.255.0
> >     >                     >>
> >     >                     >> 2.run comands :
> >     >                     >>
> >     >                     >> - ngcp-network --set-interface=eth1
> >     >                     --ip=10.130.10.250 --netmask=255.255.255.0
> >     >                     >>
> >     >                     >> - ngcp-network --move-from=lo --move-to=eth1
> >     >                     --type=web_ext --type=sip_ext --type=rtp_ext --
> >     >                     type=ssh_ext --type=web_int
> >     >                     >>
> >     >                     >> 3. ngcpcfg apply
> >     >                     >>
> >     >                     >>
> >     >                     >> --
> >     >                     >>
> >     >                     >> З повагою,
> >     >                     >>
> >     >                     >> Микола Заїка
> >     >                     >>
> >     >                     >> Компанія VoIPTime,
> >     >                     >>
> >     >                     >> Тел: +380 32 2328022
> >     <tel:%2B380%2032%202328022>
> >     >                     >>
> >     >                     >> mzaika at voiptime.net
> >     <mailto:mzaika at voiptime.net> <mailto:mzaika at voiptime.net
> >     <mailto:mzaika at voiptime.net>>
> >     >                     >>
> >     >                     >> www.voiptime.net <http://www.voiptime.net>
> >     <http://www.voiptime.net>
> >     >                     >>
> >     >                     >>
> >     >                     >>
> _______________________________________________
> >     >                     >> Spce-user mailing list
> >     >                     >> Spce-user at lists.sipwise.com
> >     <mailto:Spce-user at lists.sipwise.com>
> >     >                     <mailto:Spce-user at lists.sipwise.com
> >     <mailto:Spce-user at lists.sipwise.com>>
> >     >                     >>
> https://lists.sipwise.com/listinfo/spce-user
> >     >                     >>
> >     >                     >
> >     >
> >     >
> >     >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20150220/2708f7b3/attachment-0001.html>


More information about the Spce-user mailing list