On Mon, Dec 12, 2005 at 04:24:49PM +1300, Volker Kuhlmann wrote: > > It sounds like SuSE may be set up to only insert a default route for > > eth0 (or perhaps only set one if there is not already one present). That > > has some sense to it, but may not suit everyone. > > Ehh, there can be only one default route. Think about it. It's a "if > nothing else matched, use this" type of thing. Same with case statements > in every programming language.
Not so sure I agree with you there - there are some non-obvious things in networking implementation. I don't have a machine to practice on at the moment, so this is based on memory, but ... You can have multiple routes to "0.0.0.0" in the routing table. These can be to different routers, and I think may be on different interfaces too. It's essentially "random" as to which one fires (i.e. it may always be the first one, but I don't know the criteria). This is related to the case where you have two interfaces with IP addresses in the same subnet - it's not obvious which interface will be used to send traffic from - it's not always the one you expect. Equally, one card may respond to traffic that arrived on the other card. A kernel-level IP hacker might be required to explain *why* :-) -jim > It looks to me that what you want is treating the wireless interface > like a ppp interface, with option replacedefaultroute. When the wireless > interface is available, it is used instead of wired or nothing. Whether > the system scripts support that I don't know. If not, one should be able > to hack it. A Debian-style /etc/network/interfaces file supports up/down script and command invocation - RedHat style has <interface>-[up|down] scripts in /etc/sysconfig/network* IIRC. > If you're using SuSE, you should ask this on the suse-linux-e list. What > you can use as alternatively is SCPM - system configuration profile > manager. You create multiple system configurations and switch between > them. It was designed for handling system configuration on computers > which are taken different places. Now that's a good idea - your "location" is essentially changing from being "on the end of a wire" to being "in the house", so that mechanism might be an easy way to hook into the changes manually. -jim
