1758364 Members
2599 Online
108868 Solutions
New Discussion юеВ

2 default gateways ??

 
SOLVED
Go to solution
cartman_2
Frequent Advisor

2 default gateways ??

Hi,

Does it make sense to have 2 default gateways??,

For me as the word says "default", when you don't know which route to use, go down the default route.

I found a Config where they have 2 default gateways configured:
netstat -rn

Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
172.12.12.37 172.12.12.37 UH 0 lan2 4136
172.16.160.71 172.16.160.71 UH 0 lan4 4136
172.16.160.0 172.16.160.71 U 2 lan4 1500
172.12.12.0 172.12.12.37 U 2 lan2 1500
127.0.0.0 127.0.0.1 U 0 lo0 0
default 172.12.160.1 UG 0 lan4 0
default 172.12.12.1 UG 0 lan2 0

This has to be wrong no?, and I understand it could bring problems.

If you wan't to have redundant GW you should use gated?

thanks
2 REPLIES 2
Modris Bremze
Esteemed Contributor

Re: 2 default gateways ??

I guess it would make sense if you are using something like this http://lartc.org/howto/lartc.rpdb.multiple-links.html
Michal Kapalka (mikap)
Honored Contributor
Solution

Re: 2 default gateways ??

hi,

the default gw should be only one, if you like route to another network, you need to add a static route.

mikap