FPBX dual NIC static route issue

hi,

I have a fresh install of FPBX on a physical box with one integrated NIC eth0 (192.168.149.61, GW 192.168.149.1)

All was well.

I have now added a second NIC eth1 (10.0.0.61, GW 10.0.0.1)

I have since then swapped to the following config:

Eth0 10.0.0.61, GE 10.0.0.1, Mask 255.255.255.0
Eth1 192.168.149.61, GW 192.168.149.1, Mask 255.0.0.0

The SIP provider (Spitfire) has provided the 10.0.0.1 router and is for sole use of the SIP trunk. The SIP trunk is IP locked to it too.

I have got the FPBX to register handsets internally etc and to register the trunk on eth1 but I am now trying to get it to use eth0 for the SIP registration.

I have tried various route-eth0 and route-eth1 configs but cannot seem to get it working,

However, there may be a more fundamental issue: I can not ping 10.0.0.1 It’s host unreachable.

The route cmd shows

Updated below - 10.0.0.0 * 255.255.255.0 on eth0

Updated below - The default gateway is correct: 192.168.149.1

Updated below - Is the host unreachable because it’s using * (default?)…

UPDATE -

the ISP had supplied the wrong GW info for the router. Its 10.0.0.254. I can now ping the GW.
Mjcp

try

echo 1 > /proc/sys/net/ipv4/ip_forward

To make persistent, copy that line into /etc/rc.d/rc.local

Hi,

I’ve been on site most of the day and have now got it all sussed:

1> the SIP GW was 10.0.0.254, not .1 so thats why I couldn’t ping the router!

2> I edited the route-eth0 and added:

10.0.0.0/24 via 10.0.0.254 dev eth0
XX.XXX.XX.XXX/32 via 10.0.0.254 dev eth0

Rebooted and thats it!

I hadn’t realised it would need ot be told that 10.0.0.0/24 addresses needed to be routed on the eth0 (which was 10.0.0.61) specifically, I assumed it would know that given it had an adapter on that range already!

mjcp

Sorry, i thought you were wanting to talk from data to phones on network using freepbx as router.
That is how i set up so i can see phone web interfaces even though on different LANS, sometimes physical (2 NICS) sometimes over VLAN.