Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Problem with pppd-added routes
Date: Tue, 18 Aug 2009 11:55:10
Message-Id: 20090818115513.GA6096@waltdnes.org
In Reply to: [gentoo-user] Problem with pppd-added routes by Mike Kazantsev
1 I have things set up to allow me to connect to dialup, and still keep
2 connections going to my other machine ("LAN" = 2 machines). I think this
3 is similar to your situation. The key is in my /etc/conf.d/net file as
4 per the following excerpt...
5
6
7 routes_eth0=(
8 "default via 192.168.123.254 metric 2 mss 1454"
9 "192.168.123.248/29 via 192.168.123.254 metric 0"
10 )
11
12 My home machine is 192.168.123.250 on my "LAN", my hot-backup is
13 192.168.123.251, and the ADSL-modem-cum-router is 192.168.123.254. Note
14 the 2 statements. The default connection to the world is "metric 2",
15 while the connection to the LAN is given "metric 0". The ppp0
16 connection, when active, has priority over the default connection, but
17 not over the LAN connection. So I don't have to tear down the eth0
18 connection when dialing up, and re-start it after disconnecting from
19 dialup.
20
21 If I wanted to get really fancy, I could assign separate "metric 0"
22 routes for streaming video or audio sites, where dialup won't hack it.
23 This would allow me to listen to internet radio on ADSL, while
24 simultaneously downloading updates/email/usenet over dialup, or even
25 surfing the web on dialup.
26
27 Why bother, you ask? Bell Canada will soon be be ramming
28 billing-by-the-byte on all its users and its resellers' users. The only
29 "alternative" in Toronto is Rogers Cable, and they're not attractive
30 either. I intend to divert update/email/usenet downloads to dialup.
31 This will apply to any files where I don't care if it's an overnight
32 download.
33
34 This would also be a great idea for usability testing for some web
35 developers, to see how piggy their Schlockwave-Trash websites are on
36 dialup.
37
38 --
39 Walter Dnes <waltdnes@××××××××.org>

Replies

Subject Author
Re: [gentoo-user] Problem with pppd-added routes Mike Kazantsev <mk.fraggod@×××××.com>