public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mike Kazantsev <mk.fraggod@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Problem with pppd-added routes
Date: Tue, 18 Aug 2009 19:50:30 +0600	[thread overview]
Message-ID: <20090818195030.1f0e7523@coercion> (raw)
In-Reply-To: <20090818115513.GA6096@waltdnes.org>

[-- Attachment #1: Type: text/plain, Size: 1406 bytes --]

On Tue, 18 Aug 2009 07:55:13 -0400
"Walter Dnes" <waltdnes@waltdnes.org> wrote:

>   I have things set up to allow me to connect to dialup, and still keep
> connections going to my other machine ("LAN" = 2 machines).  I think this
> is similar to your situation.  The key is in my /etc/conf.d/net file as
> per the following excerpt...
> 
> 
> routes_eth0=(
> "default via 192.168.123.254 metric 2 mss 1454"
> "192.168.123.248/29 via 192.168.123.254 metric 0"
> )
> 
>   My home machine is 192.168.123.250 on my "LAN", my hot-backup is
> 192.168.123.251, and the ADSL-modem-cum-router is 192.168.123.254.  Note
> the 2 statements.  The default connection to the world is "metric 2",
> while the connection to the LAN is given "metric 0".  The ppp0
> connection, when active, has priority over the default connection, but
> not over the LAN connection.  So I don't have to tear down the eth0
> connection when dialing up, and re-start it after disconnecting from
> dialup.

Thanks for the solution.

Guess I'll settle for similar scheme for now, adding all the gateway IPs
to the routing table via preup() function, parsing output of dig with
awk.

Still, overriding garbage route like that is a hack and it should be
easy to write a patch for that behavior, when I'll have some spare time,
provided I won't forget about the issue... ;)

-- 
Mike Kazantsev // fraggod.net

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

      reply	other threads:[~2009-08-18 13:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-17  4:45 [gentoo-user] Problem with pppd-added routes Mike Kazantsev
2009-08-17  9:37 ` Keith Dart
2009-08-17 10:42   ` Mike Kazantsev
2009-08-18 11:55 ` Walter Dnes
2009-08-18 13:50   ` Mike Kazantsev [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=20090818195030.1f0e7523@coercion \
    --to=mk.fraggod@gmail.com \
    --cc=gentoo-user@lists.gentoo.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