[artix-general] dhcpcd (daemon) + wpa_supplicant (daemon), with wireless bieng a failover support for wired

Ruben Safir ruben at mrbrklyn.com
Mon Mar 30 00:07:00 CEST 2020


On Sun, Mar 29, 2020 at 12:14:20AM -0600, Artix wrote:
> On 3/24/20 8:47 AM, Dudemanguy via artix-general wrote:
> >>Has someone successfully made use of dhcpcd + wpa_supplicant in a way only one of them is up, and preferably the wired one?
> > 

I actually hard coded this into the /usr/lib/netifrc/net files and with
/etc/init.d/net.eno1
and 
/etc/conf.d/net => config_eno1="dhcp"



> > I think this already works. I use the wpa_supplicant service on my laptop (specifying the wireless interface in /etc/s6/sv/wpa_supplicant-srv/conf). If I plug in an ethernet cable, it appears to prefer the wired interface (just checking the IP on the internet), and if I unplug it, it falls back to the wireless connection.
> 
> Hi !
> 
> How can this be achieved?
> 
> I imagine it can be like:
> 
> 1.-  Start and enable the dhcpcd daemon.  No special configuration required (default one seems fine).
> 2.-  Start and enable the wpa_supplicant daemon, having configured the wireless interface on /etc/s6/wpa_supplicant_srv/conf, and having configured /etc/wpa_supplicant/wpa_supplicant.conf previously.
> 
> I read the "multiple interfaces" section of the dhcpcd man, and I wouldn't have guessed the failover mechanism from there:  "Interfaces are preferred by carrier, DHCP lease/IPv4LL and then lowest metric.  For systems that support route metrics, each route will be tagged with the metric, otherwise dhcpcd changes the routes to use the interface with the same route and the lowest metric".
> 
> But if that's all required, then that's fantastic, :)  If only I have known before, I wouldn't have used netcfg at its time, neither its successor later on, :)
> 
> Thanks !
> 
> -- 
> Javier
> 




> -- 
> artix-general mailing list
> artix-general at artixlinux.org
> https://lists.artixlinux.org/listinfo/artix-general


-- 
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com 

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive 
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com 

Being so tracked is for FARM ANIMALS and extermination camps, 
but incompatible with living as a free human being. -RI Safir 2013



More information about the artix-general mailing list