Re: How to set default gw not by route command in linux?



ibuprofin@xxxxxxxxxxxxxxxxxxxxxx (Moe Trin) wrote:
On Thu, 23 Nov 2006, in the Usenet newsgroup comp.os.linux.networking, in
article <877ixmylfr.fld@xxxxxxxxxx>, Floyd L. Davidson wrote:

Unruh <unruh-spam@xxxxxxxxxxxxxx> wrote:

Why do you set gateways for both? Gateways are for default routes. You can
only have one default route. The last one set.

It has *nothing* to do with a default, other than that a default route
has to have a gateway specified.

Beg your pardon Floyd, but _EVERY_ Linux distribution uses the keyword
"gateway" to _mean_ the gateway to the default route. I will certainly
agree that this is an incorrect interpretation, but that can't change
many years of mis-use.

It is incorrect, and it is *not* universally used incorrectly.
It is a narrow *understanding* of what is being said that is
wrong in most instances, not the actual usage.

The default route *requires* a gateway. Specifying a "gateway"
that is for the default route, can of course only be done one
time. Stretching that to insinuate that the route table as a
whole can have only one gateway specified is false.

What if he needs that gateway to access a non-directly connected
physical network?

Then his network is not the typical home setup, which is what most of
the "helper" programs assume.

That was not specified. It makes no difference anyway, as what
his network is or is not is not what defines how a Linux route
table works. Regardless, as you next paragraph indicates, that is
*not* an atypical home network.

If someone actually does have multiple
networks on a home system (more common now with wireless) then these
simple minded "helper" tools may get it wrong.

Yes, it is indeed *very* common with wireless setups...

That's been a problem
since a number of early Linux distributions at least as far back as
the mid-90s. Certainly Red Hat 1.1 (Mothers-Day) from the summer of
1995 had this problem, as did Slackware 3.2 (go check the CHANGELOG

So you are saying that a whole decade ago Patrick Volkerding
corrected the way he did it in Slackware. Pretty telling, eh?

file). Then if you check windoze, microsoft has gotten it wrong since
they invented the Internet (or whatever) in 1995.

Another *great* example.

What is your point? The fact is that multiple gateways in the
route table has *always* been acceptable. Claiming you can't
have more than one just because the default route requires a
gateway is freaking ridiculous.

--
Floyd L. Davidson <http://www.apaflo.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) floyd@xxxxxxxxxx
.



Relevant Pages

  • Re: Bridging network adapters in Linux
    ... ip addr add $address/$netbits dev br0 ... Either a default route ... two network devices assuming, ... This is done using the iptables mechanism. ...
    (comp.os.linux.networking)
  • RE: ISA 2004 help please
    ... network, and I have set that as the gateway on those machines. ... When I set a persistant route on ... the server to their addresses (how I configured the ISA 2000 serverand they ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)
  • [IPv6] PROBLEM? Network unreachable despite correct route
    ... I have several boxes with native IPv6 connectivity at various places. ... Some of them show symptoms of a lost default route for small periods of ... self built AMD Athlon64, Ubuntu Edgy, Distribution kernel ... At the same time, a sibling (same hardware, same switch, same network ...
    (Linux-Kernel)
  • Re: load balancing with a failover
    ... The tunnel interfaces have addresses ... from other network though ... Enter configuration commands, one per line. ... 1w0d: RT: delete subnet route to 192.168.128.20/30 ...
    (comp.dcom.sys.cisco)
  • Re: yet another vpn/routing question
    ... Route and that is the way it is supposed to look. ... RRAS and the problem has nothing to do with the Routing table. ... network is a single subnet private network, ... > with a internal network Nic and a Nic with Internet? ...
    (microsoft.public.windows.server.networking)