Routing / Multiple Default Gateway Issue

morepowerracing
Posts: 4
Member Since:
2008-11-23

Here is my network topology.

Trixbox with 2 nics. WAN0 on 192.168.8.96 with 192.168.8.1 as gateway. - has its own ISP
Nic 2 is where all the phones are: 192.168.168.12 with no default gateway. Has a different ISP which goes to internal network.

So, here is my problem. Our Phones and VPN is on the 192.168.168.1 network, but since there is no default gateway set up on 192.168.168.1 for the Trixbox, Phones cannot be seen over our VPN at remote locations.

So, how can I set up a 2nd default gateway or what kind of routing do I need to do so Nic 2 talks to 192.168.168.1?

I have found a few forums where you can do a dual default gateway, but I think if I knew how to route correctly, it would be an easy fix I hope. What I need is to have 192.168.168.12 route to 192.168.168.1 which will then in turn let my VPN users at 192.168.4.1/24 see 192.168.168.12.

BTW, I am using WEBMIN to set up routing. Please provide some help as my remote users are deal in the water. Thank you.



SkykingOH
Posts: 9678
Member Since:
2007-12-17
Don't know about webmin, you

Don't know about webmin, you don't need a gateway just a route statement. This will do it from the command line. I made the assumption these are all class C networks. I also assume that nic 2 is eth1

From the command prompt enter: 'route add -net 192.168.4.0 netmask 255.255.255.0 gw 192.168.168.12 dev eth1'

--

Scott

aka "Skyking"



cvander
Posts: 637
Member Since:
2006-06-26
If you're using webmin, it

If you're using webmin, it really easy!

1. Log into Webmin
2. Go to Networking, Network Configuration
3. Select Routing and Gateways
4. Towards the top, you'll see a section that says "Static Routes", enter your static routing information here
For example, my configuration is eth0 is LAN, eth1 is WAN. Local LAN 10.0.0.0/24. I have a VPN setup where I need to reach the remote server on the internal network, but it's out of the LAN card's IP space (10.0.1.0/24). So my entry looks like this:
Interface: eth0 Network: 10.0.1.0 Netmask: 255.255.255.0 Gateway: 10.0.0.1

Hope this helps!

-Chris



morepowerracing
Posts: 4
Member Since:
2008-11-23
It worked out

I added the static routes according to your explanation Skyking and everything works perfect. I have crystal clear calls all over the place. I could not have done it without you. Thanks so much for your help.

Neil
morepoweracing.com



SkykingOH
Posts: 9678
Member Since:
2007-12-17
Excellent glad you got it

Excellent glad you got it working. You need to add that route command to the end of /etc/rc.d/rc.local so the route will stay in after you reboot.

For everyone reading this thread, if you don't mind me asking, do you understand why that static route solved your issue?

--

Scott

aka "Skyking"



Comment viewing options

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