I have FreePBX setup and it has 2 NICs. I've been trying to configure it out so that:
eth0
will continue to be the one used for all the office phones and internal calls; andeth1
is the new NIC that would be connected to the internet so that I can make and receive outside calls through to Faktortel, our SIP provider.
I've been working with this great example, but the routing still isn't correct.
The difference is, both NICs are using the same IP address ranges. The server address on eth0
is: 192.168.0.20/255.255.255.0
. I would rather the eth1
use DHCP from our internet router, but it is also using 192.168.0.1/255.255.255.0
. I'm not sure if this is possible or should it really be on different networks?
The way I understand it is if you make a call it would first check eth0
. Then I should have a route (like route-eth0
) for sip.faktortel.com.au
to eth1
(what if is the same IP address?)? Or does it only need to be in route-eth1
?
ifcfg-eth0
:
DEVICE=eth0
IPADDR=192.168.0.20
NETMASK=255.255.255.0
BOOTPROTO=static
ONBOOT=yes
ifcfg-eth1
:
DEVICE=eth1
IPADDR=192.168.0.10
NETMASK=255.255.255.0
BOOTPROTO=static
ONBOOT=yes
/etc/sysconfig/network
:
NETWORKING=yes
GATEWAY=192.168.0.1
/etc/sysconfig/network-scripts/route-eth1
:
202.43.66.5/24 via 192.168.0.1
Is 202.43.66.5
for sip.faktortel.com.au
the right address to add here?
And then how does this whole process work in reserve in order to receive calls?