Two default gateways?

Red Squirrel

No Lifer
May 24, 2003
71,312
14,084
126
www.anyf.ca
Is there a way in Linux to have two default gateways? I want to be able to make it so if one gateway is down it uses the other but they need to be in a specific order.
 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
You can not have two default gateways. What you can do is set the metric of the route to your 2nd gateway to be higher then the default gateways route and then when you detect loss of connection to your default gateway you can bring down the interface and your 2nd route(with the higher metric will take over).
 

Red Squirrel

No Lifer
May 24, 2003
71,312
14,084
126
www.anyf.ca
Sounds like this could get complex.

It's retarded that my new router does not have static route capability, if it was not for that I would not need to setup a VM to do routing. I just don't feel like spending MORE money just because I got screwed by dlink, since nothing tells me a newer router wont have that feature. The issue I'm having is if the VM is not up (it runs on THAT box) then I can't get online. VMware server 2.0 is a POS so the chances of the vm not running are high.
 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
Originally posted by: RedSquirrel
Sounds like this could get complex.

It's retarded that my new router does not have static route capability, if it was not for that I would not need to setup a VM to do routing. I just don't feel like spending MORE money just because I got screwed by dlink, since nothing tells me a newer router wont have that feature. The issue I'm having is if the VM is not up (it runs on THAT box) then I can't get online. VMware server 2.0 is a POS so the chances of the vm not running are high.

That's odd, I haven't had any stability issues with VMware server 2.0. Been running it since it was released on 2 servers with 16 total virtual servers with no issues.

Any router that can run DD-WRT can do static routes FWIW.
 

Red Squirrel

No Lifer
May 24, 2003
71,312
14,084
126
www.anyf.ca
Oh vmware has been brutal. It's not so much vmware itself, it's the stupid web interface crap. Constantly locks up, errors out, etc so I have to constantly reboot the server. I'm looking to switch to virtualbox because I can't stand this crap. They should of sticked with the original client, the vmware 1 client was perfect.

I'm also debating in saying F it and buying another router, then cross my fingers that it can do static routes or support DD-WRT. If I could easily find a small form factor PC with two nics I'd just run a Linux based router.
 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
Originally posted by: RedSquirrel
Oh vmware has been brutal. It's not so much vmware itself, it's the stupid web interface crap. Constantly locks up, errors out, etc so I have to constantly reboot the server. I'm looking to switch to virtualbox because I can't stand this crap. They should of sticked with the original client, the vmware 1 client was perfect.

I'm also debating in saying F it and buying another router, then cross my fingers that it can do static routes or support DD-WRT. If I could easily find a small form factor PC with two nics I'd just run a Linux based router.

Why would you cross your fingers hoping it would work? Head to their site and look at their list of compatible routers. Sometimes I wonder if you know how to search the internet ;)!
 

Brazen

Diamond Member
Jul 14, 2000
4,259
0
0
Originally posted by: RedSquirrel
Hard to search from the store :p I could order though, might just do that.

Are you posting on ATF from the store? :confused:

Check these out for some super affordable small form factor cpu/board/vga combos: http://www.newegg.com/Product/...name=%2425%20-%20%2450

The Via C3 solution would have super power savings also. Then, you just add in a cheap nic to get your second port.

If you want something that can run dd-wrt, I've had great luck with this: http://www.newegg.com/Product/...iption=WRT54GL&x=0&y=0
 

Red Squirrel

No Lifer
May 24, 2003
71,312
14,084
126
www.anyf.ca
Hmm I was looking at those linksys ones actually. Only thing I heard bad things about them, is it true they lock up a lot? I had a non wireless one like that and no issues though. I might just go ahead and get one of those. At worse I might just set the host machine as being the default gateway instead of that VM. Then I can just add the static route.
 

Brazen

Diamond Member
Jul 14, 2000
4,259
0
0
I have a very very old wrt54gs, before linksys stripped down the wrt54gs. Basically, the wrt54gs hardware became the wrt54gl and a stripped down box (which would barely run dd-wrt) became the wrt54gs. So anyway, this box is like 4 years old and I've never had it lock up. A month or so ago it was turned off because I had to do some electrical work on the circuit it was plugged in to, but before that the uptime had to have been like a year or two.

Of course, I may have just gotten lucky with this one.
 

darom

Senior member
Dec 3, 2002
402
0
0
RedSquirrel, look at Buffalo routers, they are great candidates for the dd-wrt flashes. I have one at home with no reboots doing LAN/Wireless for the past 6 months.