I am configuring a system that will have a default route
to the local lan, static routes to all local networks, but
will also have a dialup account as a backup.
To make this work, I need to have a default route on eth0
with one metric (5) and one on ppp0 with another metric (2)
so that when the ppp0 comes up, packets to non-local
networks go that direction.
I can add local networks in /etc/sysconfig/static-routes
and that works fine.but to get a metric on multiple default
routes, I have to add those default routes to the
static-routes table. Apparently, if linuxconf is present
(and the appropriate ncurses library) you use "linuxconf
--hint route "$1"" (where $1 is the interface). Linuxconf
ignores the "metric X" statement, so I can't set metrics.
I can add the routes as "eth0 net 0.0.0.0 netmask 0.0.0.0
metric 5" but it doesn't make a difference.
I've worked around it by hacking ifup-routes to disregard
linuxconf, but that's certainly not the optimal solution.
Please add "metric" support to linuxconf if possible (or
add it to the wish list for the development team). Also,
please allow me to override linuxconf for routing (say with
a line in static-routes "linuxconf no" that gets checked
before checking for linuxconf).
Added Jacques to the CC line to prime a discussion about adding metrics...
Closing since we don't ship linuxconf anymore.