Hi matzi,
Currently I am playing with an USB LAN adapter and so some similar issues than you.
With my test, set a metric doesn't change the default behaviour : eth0 is always used. Only bringing down eth0 allows to use the additional NIC.
So you can do it but be careful if wlan0 is not rightly set you will lost all access and you should reboot your NAS.
Note : if you bring up again eth0 only route for your LAN is restored you must manually add the default route (with the gateway) for eth0
---about your last post---
Traceroute gives:
root@fvdwsl-base:/ #
- Code: Select all
traceroute -v -i wlan0 192.168.178.20
traceroute to 192.168.178.20 (192.168.178.20), 30 hops max, 38 byte packets
1 192.168.178.20 (192.168.178.20) 46 bytes to (null) 9.239 ms 5.436 ms 11.794 ms
Routing table in this state is:
- Code: Select all
root@fvdwsl-base:/ # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.178.17 0.0.0.0 UG 0 0 0 wlan0
192.168.178.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
this means that your wlan NIC runs well
But about your amazing test
When I do the sequnce "wlan0 down" and then unplug the cable, the wireless connection persists. Strange thing it is persists under wireless and also under the wired IP!
after doing ifconfig wlan0 down, did you check if wlan0 was really bring down ? if it is still listing with
- Code: Select all
ifconfig
then the command failed
---edit---
and also its routes must disappear in the route table.
Maybe you must use iwconfig to do it