How can I set up wpa_supplicant to make sure that my wlan user interface is impaired when I connect in ethernet wire?

I am attempting ahead up with the typical arrangement making use of wpa_supplicant for both Ethernet and also cordless user interfaces on a Debian system. I would love to do it in such a way that when you connect in the Ethernet wire, the cordless user interface is impaired, and also made it possible for once more when you disconnect the wire (a practical arrangement to get the most effective efficiency). Just how do I do it?

2019-05-18 22:56:27
Source Share
Answers: 3

Works for me out of package.

I assume the plan applying it is network - supervisor - gnome (it has the panel applet).

2019-05-31 05:49:08

Are you certain that wpa_supplicant is what you intend to be adjusting to do this? It is actually simply for confirming WPA links, refraining link standing discovery et cetera of it.

Directly, I would not also trouble disabling the wifi, I would certainly simply have an up activity on the wifi user interface that offered it is course a greater statistics, to make sure that if the wired user interface was up it would certainly be favored. Something similar to this needs to suffice (thinking that your LAN is 24):

iface home inet dhcp
    [usual WPA guff here]
    up route del -net netmask
    up route add -net netmask metric 1

Doing the link - feeling autodetection I have no suggestion concerning ; I do not commonly desire my network user interfaces doing things I do not find out about, so I've never ever checked into it.

2019-05-21 08:55:09

I 2nd womble is assertion that wpa_supplicant is the incorrect area to do this. You intend to set something up in the/ etc/network/ subtree, probably as womble recommends by raising the metric of the wifi course, or probably by a few other methods entailing a personalized manuscript in/ etc/network/if - up.d/ that would certainly take the wifi user interface down if the ethernet user interface showed up.

Details on making manuscripts for/ etc/network/if - up.d/ gets on the interfaces man page, under the 'IFACE OPTIONS' area.

2019-05-21 07:22:30