User talk:Acalm

From Gentoo Wiki
Jump to:navigation Jump to:search
Note
This is a Talk page - please see the documentation about using talk pages. Add newer comments below older ones, sign comments using four tildes (~~~~), and indent successive comments with colons (:). Add new sections at the bottom of the page, under a heading (== ==). Please remember to mark sections as "open for discussion" using {{talk|open}}, so they will show up in the list of open discussions.

Setup wired 802.1X

Talk status
This discussion is done as of 29 July 2020.

Thanks for adding this section to the wpa_supplicant article. It's however not clear to me if this setup would automagically switch between wired and wireless network interface like dhcpcd does. Is it possible? Or does it run completely without dhcpcd?

My first idea was, what do you think about moving the new section upwards above Setup for dhcpcd as network manager as section as 2.1.2 and renaming 2.1.1 Setup for wireless interface?
--Charles17 (talk) 17:25, 6 August 2019 (UTC)


Sorry for the confusion, I didn't give it much thought while scribbling this down, I always tend to forget how to set up 802.1X and finally decided to write it down. Anyway, it seems that dhcpcd is automatically triggered after wpa_supplicant is done with authenticating each device, leaving both interfaces online, there's probably some way of dealing with not having both interfaces active.
I agree, moving and renaming makes sense.

--Acalm (talk) 08:08, 7 August 2019 (UTC)

The move is done. Could you please review and adjust, especially as there is two "/etc/conf.d/wpa_supplicant" File boxes with different content.
--Charles17 (talk) 08:56, 7 August 2019 (UTC)
Looks good to me, I've corrected the path /etc/wpa_supplicant_wired.conf to /etc/wpa_supplicant/wpa_supplicant_wired.conf for the chmod command. I couldn't find the duplicate "/etc/conf.d/wpa_supplicant" though.
--Acalm (talk) 10:41, 7 August 2019 (UTC)
There is one in the section you added:
FILE /etc/conf.d/wpa_supplicant
wpa_supplicant_args="-c/etc/wpa_supplicant/wpa_supplicant_wired.conf -ieth0 -Dwired -N -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf"
And another one in the transcluded section from Wpa_supplicant/Setup_for_dhcpcd_as_network_manager:
FILE /etc/conf.d/wpa_supplicant
wpa_supplicant_args="-B -M -c/etc/wpa_supplicant/wpa_supplicant.conf"
Is it possible to have this harmonized and combined in the same "/etc/conf.d/wpa_supplicant" file?
----Charles17 (talk) 11:59, 7 August 2019 (UTC)
If I understand -M (MATCH_IFACE) correctly, it should be possible to do something like
FILE /etc/conf.d/wpa_supplicant
wpa_supplicant_args="-ieth0 -Dwired -c/etc/wpa_supplicant/wpa_supplicant_wired.conf -M -c/etc/wpa_supplicant/wpa_supplicant.conf"
which makes it less awkward, the driver switch (-D) needs to be specified wpa_supplicant is unable to figure out what driver to use by itself. As /etc/wpa_supplicant/wpa_supplicant.conf is for "everything else" but eth0 the -i switch can be omitted.
Edit: Tested previous unknowns, corrected statements and config.
--Acalm (talk) 10:41, 8 August 2019 (UTC)
It's also worth noting that the -M(atch interface) option isn't mentioned in the man page for wpa_supplicant (2.8-r1) which may be confusing for users, it is however present in the README and when issuing wpa_supplicant -h.
--Acalm (talk) 11:37, 8 August 2019 (UTC)
Thanks for that great contribution. I guess it's worth having it mentioned also in Network management using DHCPCD. So I added it to the Wpa supplicant/Setup for dhcpcd as network manager subarticle. This way the changes would appear in both articles. Will you please review
--Charles17 (talk) 13:11, 8 August 2019 (UTC)
Looks good!
--Acalm (talk) 13:15, 8 August 2019 (UTC)
Added a "talk" template; this discussion is clearly complete. --Davidbryant (talk) 15:52, 29 July 2020 (UTC)