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
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