Trixbox dual NIC problem

lukawar
Posts: 9
Member Since:
2009-11-24

Hi I have a problem with configuring two nic on trixbox

I have two SIP providers on form the internet a other from internal ISP WAN

eth0 config

IP: 10.1.2.3
mask: 255.255.255.0
geteway: 10.1.2.253
dns1: 10.1.2.2
dns2: 10.1.2.253

eht1:

IP: 172.16.27.38
mask: 255.255.255.248
geteway: 172.16.27.33

dns:172.16.0.2

the IP adress of my ISP's PBX is 172.16.1.20

when I make my default gateway 172.16.27.33 I can't go to the internet with trixbox (ok no net)
When I make my sefault geteway 10.1.2.253 I can connect to a SIP provider form internet then I made a staric route
so I could connect to my SIP from my ISP

eth1 | 172.16.0.0 | 255.255.255.248 | 172.16.27.33
eth1 | 172.16.1.0 | 255.255.255.248 | 172.16.27.33

With this I can connect and register to SIP from my ISP but when you make a call you can't hear anything.

How to solve this anyone. please



nttranbao
Posts: 189
Member Since:
2008-02-16
I think either you posted

I think either you posted in the wrong place, or without the right info (bounty).

--

----------------------
IT/VOIP consultancy, VOIP eStore, Support Forum
Bao Nguyen IT Co., Ltd.
http://www.baonguyen.vn
WE MAKE IT



jeremydr
Posts: 3
Member Since:
2007-06-11
missing info

it will boil down to a routing /firewall issue,

question 1: what firewall / router are you using.....
question 2: if a firewall / router is in place have you setup the appropriate port forwards?
question 2: are both trunks sip trunks? ie what type of trunk are you using?
question 3: what hardware platform are you running your trixbox on?
question 4: how much networking / unix experience do you have?



UKNewWho
Posts: 2
Member Since:
2008-07-23
Have you solved your problem?

Your second configuration would be correct.

I would leave your default gateway the 10.1.2.253 and keep your static routs.

what are your nat settings?

I might start off with a sip_nat.conf file looking something like this:

nat=yes
externip= -Public IP from the 10.network-
localnet=10.1.2.0/255.255.255.0
localnet=172.16.27.32/255.255.255.248

let me know if that changes anything.



obeliks
Posts: 878
Member Since:
2010-03-14
Asterisk is not really meant to be used with 2 NICs

Check for example http://www.trixbox.org/forums/trixbox-forums/help/binding-sip-multiple-n...

The only way to make it work is to force trixbox use only IP from interface eth1

0. Use 10.1.2.253 as the default gateway.

1. in sip_general_custom.conf put
bindaddr=172.16.27.38

2. make sure your ISP WAN is in localnet
localnet=172.16.0.0/255.240.0.0

3. put your public IP in externip or use stun server

4. Make sure you can reach internet using 172.16.27.38 as source:
# ping -I 172.16.27.38 www.google.com
you might need to set routing on your NAT box in order to make it work.

5. ......profit

Your phones will need to use 172.16.27.38 to register, this might require some routing changes on your network.



jeremydr
Posts: 3
Member Since:
2007-06-11
how did u go with this

how did u go with this



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.