I followed up on the subject and found out the problem is not restricted to the wlan module. It seems I cannot set two interfaces to the same route any more. I have to unconfigure the other device and reload the module of the device to be configured.

It might be not a bug but a feature, but now I have to think of a new way of how to switch between the devices for internet connection. So far, I set the two of them to the same route and used ifplugd.

Below, I state the interface config file and my commands trying to change the device with their results.

The commented lines in /etc/network/interfaces I only just now commented out. Now after boot, no route and device is set and after doing either ifup wlan0 or ifup eth0, the device works. But I cannot just ifdown the device and ifup the other any more.

You can never do that, at least not if you expect it to work (and not switch continuously and semi-randomly between the conflicting routes).

LeTuX

Post subject:Posted: 31.05.2012, 14:25

Joined: 2011-05-15
Posts: 13
Location: Germany
Status: Offline

slh wrote:

You can never do that, at least not if you expect it to work (and not switch continuously and semi-randomly between the conflicting routes).

It used to work: ifdown wlan0; ifup eth0
when I wanted to surf wired, and vice versa.

Now I guess I have to write a script doing ifconfig and route.

slh

Post subject:Posted: 31.05.2012, 14:53

Joined: 2010-08-25
Posts: 953

Status: Offline

You can have two interfaces prepared for the same subnet, but only one of them can be active at the same time - so you must down the active interface first, before you can up the previously inactive one. modprobe/ rmmod isn't needed anywhere (it may even be harmful, due to the device detection events, triggering on allow-hotplug).