1 |
> Is it possible to set things up so that... |
2 |
> |
3 |
> - when only eth0 is active, everything routes via 192.168.123.254 |
4 |
> |
5 |
> - when both eth0 and ppp0 are active, my little LAN on 192.168.123.248/29 |
6 |
> (aka netmask 255.255.255.248) routes via 192.168.123.254 and everything |
7 |
> else routes through ppp0? |
8 |
What do you want to route through 192.168.123.254? What is behind the router? |
9 |
> |
10 |
> My current /etc/conf.d/net looks like so... |
11 |
> |
12 |
> config_eth0="192.168.123.252 broadcast 192.168.123.255 netmask |
13 |
> 255.255.255.248 mtu 1452" routes_eth0=("default via 192.168.123.254") |
14 |
Why did you need to take down eth0? Deleting the default route before dialing |
15 |
up should be enough to have both, the LAN reachable and the Internet through |
16 |
ppp0. |
17 |
|
18 |
But I just learned, that you can have more default routes and prioritize them |
19 |
using the metric. If your pppd is complaining, "not replacing existing |
20 |
default route", set the metric of route_eth0 to 10 and add the two lines to |
21 |
conf.d/net: |
22 |
config_ppp0=("null") |
23 |
routes_ppp0=("default dev ppp0 metric 9") |
24 |
|
25 |
And ln -s /etc/init.d/net.lo /etc/init.d/net.ppp0 |
26 |
|
27 |
This should add the favoured default route over ppp0. |
28 |
|
29 |
|
30 |
- Sascha |