>   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

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to