Static routing issue

edlentz

Member
Joined
Aug 11, 2013
Messages
87
Reaction score
5
We have two systems that have the same scenario The SIP trunk provider dropped off a network device and we connected a 2nd router to it. The router is doing NAT to the PBX and that is all I want to setup static routing for the PBX to send all trunk SIP traffic to the 2nd router. I am doing some testing at my office. Here is what we have at our office. Two ISPs, with two routers. One router acting as DHCP server at 192.168.0.1/23 and the other at 192.168.0.2/23. there are two Proxy IPs that this SIP provider uses. They are 10.7.32.20 and 10.7.32.36. I created a new file at etc/sysconfig/network-scripts/route-eth0 with the entries like so:
10.7.32.20/24 via 192.168.0.2 dev eth0
10.7.32.36/24 via 192.168.0.2 dev eth0
I restarted the network with service network restart
Then a route -n provided this:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0
192.168.0.0 0.0.0.0 255.255.254.0 U 0 0 0 eth0

I also tried these entries in the route-eth0

ADDRESS0=10.7.32.20
NETMASK0=255.0.0.0
GATEWAY0=192.168.0.2
METRIC0=10
ADDRESS1=10.7.32.36
NETMASK1=255.0.0.0
GATEWAY1=192.168.0.2
METRIC0=11

Again restarting the network and running route -n got the same results. A traceroute to 10.7.32.20 goes out the 192.168.0.1 gateway.

The system I am using to test is a FPBX 14.0.3.13 64 bit
The system firewall is not enabled.
Everything I have read says this should work, but it isn’t. Did I miss something?

Thanks for any ideas
 

atsak

Guru
Joined
Sep 7, 2009
Messages
2,387
Reaction score
440
I dont know what operating system FreePBX distributes; you might want to ask over in their forums instead. The first method should have worked for a CENTOS based OS.
 

edlentz

Member
Joined
Aug 11, 2013
Messages
87
Reaction score
5
I posted the same question over there. On my test system it is centos 6.5
 

Members online

Forum statistics

Threads
25,825
Messages
167,856
Members
19,250
Latest member
mark-curtis
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top