Re: How to set default gw not by route command in linux?
- From: floyd@xxxxxxxxxx (Floyd L. Davidson)
- Date: Fri, 24 Nov 2006 16:10:51 -0900
steve_schefter@xxxxxxxxxxx wrote:
Floyd L. Davidson wrote:
Suppose I had two interfaces, 1.x.x.x and 2.x.x.x and I want to
get to 3.x.x.x, and I have two "gateways", how would IP know
which gateway to forward the datagram to?
There is no problem at all with multiple gateways. You could
feasibly have a gateway assigned to virtually *every* route in
the table.
<snip example>
Sure, there can only be one *default*, but his mistake was
saying "Gateways are for default routes.", which is not true.
Your mistake is confusing "gateway" with "default".
This is all well and good, but as I said the GATEWAYs listed in the
ifcfg-ethN (what the OP was asking about) are default gateways.
The scripts use these values and do a "route add default..."
You did *not* say that, and neither you nor Bill Unruh tied the
one gateway to being one gateway, to be specified in that
particular configuration file, for the default route. He flat
said one gateway in the route table, period. So did you.
Other uses of "gateway" are possible, but as Unruh said and
I supported, having multiple of them in the ifcfg-ethN files is
not useful.
Yes, and you *should* have explained *correctly* why that is true.
Saying that gateways are *only* for the default route, and that
there can only be one in the entire route table, is not correct.
--
Floyd L. Davidson <http://www.apaflo.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) floyd@xxxxxxxxxx
.
- Follow-Ups:
- Re: How to set default gw not by route command in linux?
- From: steve_schefter
- Re: How to set default gw not by route command in linux?
- References:
- How to set default gw not by route command in linux?
- From: ChaoZhang
- Re: How to set default gw not by route command in linux?
- From: Unruh
- Re: How to set default gw not by route command in linux?
- From: Floyd L. Davidson
- Re: How to set default gw not by route command in linux?
- From: steve_schefter
- Re: How to set default gw not by route command in linux?
- From: Floyd L. Davidson
- Re: How to set default gw not by route command in linux?
- From: steve_schefter
- How to set default gw not by route command in linux?
- Prev by Date: Re: How to set default gw not by route command in linux?
- Next by Date: Re: Server in a NAT subet?
- Previous by thread: Re: How to set default gw not by route command in linux?
- Next by thread: Re: How to set default gw not by route command in linux?
- Index(es):
Relevant Pages
|