7 msgSomething changed with nice?
91 msgOT im more just curious
6 msgdr.dk
15 msgIntel High Definition Audio and its problems
8 msgMasked packages
6 msgmore on the mysterious console blanking
1 msgconsole blanks permanantly--addendum
3 msgconsole blanks permanantly

Setting up routes for pppd with /etc/conf.d/net
\ Sascha Hlusiak (12 Apr 2007)
. \ Sascha Hlusiak (12 Apr 2007)
. . \ Walter Dnes (13 Apr 2007)
. . . \ Sascha Hlusiak (13 Apr 2007)

5 msg{OT} Generating an online graph/chart
1 msgamarok, last.fm and recent updates
7 msgeclipse
11 msg2.6.19-r5 kernel disaster
7 msgfloppy flops: mtools vs file managers
8 msgFwd: problem :eht0 not getting detected
9 msglaptop sometimes needs double keystrokes
6 msgWhy is apache 2.2 hard masked?
2 msgmod_auth_ldap vs USE=ldap for apache2
2 msgHelp With Cron
3 msgafter major upgrade questions remain
Subject:Re: Setting up complex routes for pppd with /etc/conf.d/net [SOLVED]
Group:Gentoo-user
From:Sascha Hlusiak
Date:13 Apr 2007


 

> Is it possible to set things up so that...
>
> - when only eth0 is active, everything routes via 192.168.123.254
>
> - when both eth0 and ppp0 are active, my little LAN on 192.168.123.248/29
> (aka netmask 255.255.255.248) routes via 192.168.123.254 and everything
> else routes through ppp0?
What do you want to route through 192.168.123.254? What is behind the router?
>
> My current /etc/conf.d/net looks like so...
>
> config_eth0="192.168.123.252 broadcast 192.168.123.255 netmask
> 255.255.255.248 mtu 1452" routes_eth0=("default via 192.168.123.254")
Why did you need to take down eth0? Deleting the default route before dialing
up should be enough to have both, the LAN reachable and the Internet through
ppp0.

But I just learned, that you can have more default routes and prioritize them
using the metric. If your pppd is complaining, "not replacing existing
default route", set the metric of route_eth0 to 10 and add the two lines to
conf.d/net:
config_ppp0=("null")
routes_ppp0=("default dev ppp0 metric 9")

And ln -s /etc/init.d/net.lo /etc/init.d/net.ppp0

This should add the favoured default route over ppp0.


- Sascha



© 2004-2008 readlist.com