On Tue, 18 Aug 2009 07:55:13 -0400
"Walter Dnes" <waltd...@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: signature.asc
Description: PGP signature

Reply via email to