[Spce-user] second network interface
Mykola Zaika
mzaika at voiptime.net
Thu Feb 26 04:09:09 EST 2015
Hello,
I have a problem with rtp. SIP traffic no problem. Please help me.
Eth0 is internal network interface (LAN), subscribers are connected to
this interface. Eth1 is external network interface (Real internet ip
address ). All my peers are registred only to interface (Eth1).
All calls go *"phone_A - Asterisk_Pbx- Eth0 sipwise .... Eth1 sipwise-
peer provider - phone_B"*
*1.My sipwise CE has two interfaces*:
cat /etc/network/interfaces
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.150.10.250
netmask 255.255.255.0
*2. I have created extra socket in config.yml*
extra_sockets:
test: udp:10.200.10.250:5060
*3. file network.yml*
hosts:
self:
dbnode: 1
eth0:
ip: 10.200.10.250
netmask: 255.255.255.0
type:
- web_ext
- ssh_ext
- web_int
- rtp_int
eth1:
ip: 10.150.10.250
netmask: 255.255.255.0
type:
- web_ext
- ssh_ext
- web_int
- sip_ext
- rtp_ext
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
*4. /etc/default# cat ngcp-rtpengine-daemon *
RUN_RTPENGINE=yes
#LISTEN_UDP=127.0.0.1:2222
LISTEN_NG=127.0.0.1:2223
INTERFACES="int/10.200.10.250 ext/10.150.10.250"
TIMEOUT=60
SILENT_TIMEOUT=3600
PIDFILE=/var/run/ngcp-rtpengine-daemon.pid
FORK=yes
TOS=184
TABLE=0
PORT_MIN=30000
PORT_MAX=40000
B2B_URL=http://127.0.0.1:8090/
NO_FALLBACK=no
What I`m doing wrong?
I know about "bridge" feature, but I can`t find it in config.
--
З повагою,
Микола Заїка
Компанія VoIPTime,
Тел: +380 32 2328022
mzaika at voiptime.net
www.voiptime.net
2015-02-20 16:40 GMT+02:00 Daniel Grotti <dgrotti at sipwise.com>:
> ok, maybe a typo.
> good.
>
>
> On 02/20/2015 03:24 PM, Mykola Zaika wrote:
> > 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 <http://10.200.10.250:5060>
> >
> > --
> > З повагою,
> > Микола Заїка
> > Компанія VoIPTime,
> > Тел: +380 32 2328022 <tel:%2B380%2032%202328022>
> > mzaika at voiptime.net <mailto:mzaika at voiptime.net>
> > www.voiptime.net <http://www.voiptime.net>
> >
> > 2015-02-20 14:17 GMT+02:00 Daniel Grotti <dgrotti at sipwise.com
> > <mailto: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>
> > > <mailto: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>>
> > > > <mailto: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>>
> > > > <mailto: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>>
> > > <mailto: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>
> > > <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>>
> > > > <mailto: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>>
> > > > <mailto: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>
> > > <tel:%2B380%2032%202328022>
> > > > mzaika at voiptime.net <mailto:
> mzaika at voiptime.net>
> > <mailto:mzaika at voiptime.net <mailto:mzaika at voiptime.net>>
> > > <mailto: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>
> > > <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>>
> > > <mailto: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>>
> > <mailto: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> <tel:%2B380%2032%202328022>
> > > > > mzaika at voiptime.net
> > <mailto:mzaika at voiptime.net>
> > > <mailto:mzaika at voiptime.net <mailto:mzaika at voiptime.net>>
> > <mailto: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>
> > > <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
> >>
> > > > <mailto: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>>
> > > >
> > <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>>
> > <mailto: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>
> > > <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>>
> > > > <mailto: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/20150226/d32ee292/attachment-0001.html>
More information about the Spce-user
mailing list