From: "Sundaram" <sun@percipia.com>
To: Antony Stone <Antony@Soft-Solutions.co.uk>,
netfilter@lists.netfilter.org
Subject: Re: Routing rule for two gateways.
Date: Mon, 23 Sep 2002 23:14:29 -0400 [thread overview]
Message-ID: <003e01c26378$9b220ac0$4101a8c0@ramasamy> (raw)
In-Reply-To: 20020923221346.SLKP2092.mta07-svc.ntlworld.com@there
See the following output :
This is from my Sun Solaris Machine, it takes two default gateway.
bash-2.03$ netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
192.168.1.0 192.168.1.130 U 1 430 hme0
224.0.0.0 192.168.1.130 U 1 0 hme0
default 192.168.1.200 UG 1 1579
default 192.168.1.1 UG 1 1678
127.0.0.1 127.0.0.1 UH 3 14767 lo0
Routing Table: IPv6
Destination/Mask Gateway Flags Ref Use If
--------------------------- --------------------------- ----- --- ------ ---
--
fe80::/10 fe80::a00:20ff:fef0:d1ac U 1 0
hme0
ff00::/8 fe80::a00:20ff:fef0:d1ac U 1 0
hme0
default fe80::a00:20ff:fef0:d1ac U 1 0
hme0
::1 ::1 UH 1 0 lo0
bash-2.03$
I have to add the ip address to /etc/defaultroute file.
bash-2.03$ cat /etc/defaultrouter
192.168.1.200
192.168.1.1
bash-2.03$
Same thing is not possible in Linux??
Thanks
Sundaram
----- Original Message -----
From: "Antony Stone" <Antony@Soft-Solutions.co.uk>
To: <netfilter@lists.netfilter.org>
Sent: Monday, September 23, 2002 6:13 PM
Subject: Re: Routing rule for two gateways.
> On Monday 23 September 2002 11:02 pm, Rasmus Bøg Hansen wrote:
>
> > On Mon, 23 Sep 2002, Antony Stone wrote:
> > > On Monday 23 September 2002 2:42 pm, Sundaram Ramasamy wrote:
> > > > What is the Linux command and syntax to set two default gateway.
> > >
> > > The question does not make sense. You can have two (or more)
gateways,
> > > but only one of them can be the default.
> >
> > You'll find on http://www.lartc.org/howto/lartc.rpdb.multiple-links.html
> > that this is not entirely true - you can use multipath routes (but this
> > require support compiled into the kernel).
>
> Um.... Although I agree that multipath routing can certainly be done, I
> still don't think this is the same as "two default routes" (for the reason
I
> gave above).
>
> In fact on the webpage you quote it shows how to set up two routes with
> specific routing tables for each. Once that is done, one of them is
> designated to be the default route. One of them......
>
> It is certainly possible to have two (or more) routes from a network of
> computers to the Internet. However for each machine in the network, or
for
> each gateway router, there can only be one default route.
>
> Antony.
>
> --
>
> All matter in the Universe can be placed into one of two categories:
>
> 1. things which need to be fixed
> 2. things which will need to be fixed once you've had a few minutes to
play
> with them
>
prev parent reply other threads:[~2002-09-24 3:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-20 2:19 Routing rule for two gateways Sundaram
2002-09-20 8:47 ` Dharmendra.T
2002-09-23 13:42 ` Sundaram Ramasamy
2002-09-23 14:14 ` Antony Stone
2002-09-23 22:02 ` Rasmus Bøg Hansen
2002-09-23 22:13 ` Antony Stone
2002-09-23 23:32 ` Rasmus Bøg Hansen
2002-09-24 3:14 ` Sundaram [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='003e01c26378$9b220ac0$4101a8c0@ramasamy' \
--to=sun@percipia.com \
--cc=Antony@Soft-Solutions.co.uk \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox