You are not logged in.
I'm working through the wiki pages Wireless Setup, to wpa_supplicant, and now NetCtl for the past three days. My progression is not continuous--I've jumped around. I can get connected, but I'm not sure what's managing that connection. I'm lost.
I'm sure any response will help me to determine where I am in the migration from manual to automatic to seamless
1) The first thing to notice in my setup is NetCtl reports to be managing my wireless network.
# netctl list
wlp2s2-MrWizardWiFi //[My wifi device]-[My WiFI's SSID]Wifi does connect at startup, but its not connecting with NetCtl profile "/etc/netctl/wlp2s2-MrWizardWiFi":
#netctl status wlp2s2-MrWizardWiFi
netctl@wlp2s2\x2dMrWizardWiFi.service - Networking for netctl profile wlp2s2-MrWizardWiFi
Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static)
Active: inactive (dead)
Docs: man:netctl.profile(5)
Sep 13 14:43:24 frylock systemd[1]: netctl@wlp2s2\x2dMrWizardWiFi.service: main process exited, code=exited, status=1/FAILURE
Sep 13 14:43:24 frylock systemd[1]: Failed to start Networking for netctl profile wlp2s2-MrWizardWiFi.
Sep 13 14:43:24 frylock systemd[1]: Unit netctl@wlp2s2\x2dMrWizardWiFi.service entered failed state.
Sep 14 14:12:34 frylock systemd[1]: Stopped Networking for netctl profile wlp2s2-MrWizardWiFi.
Sep 14 14:12:34 frylock systemd[1]: Starting Networking for netctl profile wlp2s2-MrWizardWiFi...
Sep 14 14:12:34 frylock network[1108]: Starting network profile 'wlp2s2-MrWizardWiFi'...
Sep 14 14:12:34 frylock network[1108]: The interface of network profile 'wlp2s2-MrWizardWiFi' is already up
Sep 14 14:12:34 frylock systemd[1]: netctl@wlp2s2\x2dMrWizardWiFi.service: main process exited, code=exited, status=1/FAILURE
Sep 14 14:12:34 frylock systemd[1]: Failed to start Networking for netctl profile wlp2s2-MrWizardWiFi.
Sep 14 14:12:34 frylock systemd[1]: Unit netctl@wlp2s2\x2dMrWizardWiFi.service entered failed state.I do get a connection to my WPA router, so I assume its systemctl doing the work. WPA_supplicant must also be working because of the encryption. What else should I be checking to know that NetCtl is ready to take over managing WiFi before stopping systemctl management of dhcpcd and ethernet?
2) Speaking of migrating my active ethernet connection to NetCtl... I'm Look at the contents of this active ethernet configuration file:
# cat /etc/systemd/system/netctl@[MyHostName]_network.service
[Unit]
Description=A basic dhcp ethernet connection
BindsTo=sys-subsystem-net-devices-eth0.device
After=sys-subsystem-net-devices-eth0.deviceThis file doesn't compare equally to the example ethernet config file for NetCtl:
# cat /etc/netctl/examples/ethernet-dhcp
Description='A basic dhcp ethernet connection'
Interface=eth0
Connection=ethernet
IP=dhcp
## for DHCPv6
#IP6=dhcp
## for IPv6 autoconfiguration
#IP6=statelessAre all of the parameters currently handled in this systemctl ethernet file all contained in the NetCtl config profiles (/etc/netctl/example/[profiles])?
I see NetCtl has other profile examples such as confsection. In addition there are hooks and interfaces which NetCtl processes before the profiles (both directories are empty). How much further do I have in this process?
What's the next step?
Last edited by xtian (2013-09-17 21:16:09)
Offline
I don't use netctl but I can tell you that in order to get netctl working, you need to disable anything else trying to manage your connection. When more than one thing tries to manage the connection, they just get in each other's way and it doesn't work right at all. I'm not sure but this may be what netctl is complaining about when it says that the interface is already up - it has been put up by something else.
systemctl does a lot of things but it does not, of itself, manage the network that I know of. So presumably you mean that it is calling other tools to do the same job as it is asking netctl to do.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Netctl is basically a systemd script called by systemd, but managed by netctl. If you use ifconfig or iwconfig to bring up the interface, netctl will say that the interface is already configured (by something other than it).
I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.
Offline
...in order to get netctl working, you need to disable anything else trying to manage your connection.
Thanks for you quick response cfr. NetCtl is working now. You were right. I needed to jump ahead and disable the systemctl services. I was too chicken S#!t to do it after three days of slogging through setup possibilities.
There are a few points I would make:
First, the first command sent to NetCtl, as I note in the discussion section, is "start" early in the page. And later, under the subsection "Automatic operation", its given as "enable". If you read the manual page "enable" seems the more appropriate first command.
Second, consider that users following the wiki pages are likely coming to NetCtl from Wireless Setup where the NetCtl wiki link is under the heading of "Automatic Setup". Automatic is a misnomer. From the perspective of Wireless setup, NetCtl is shown to manage ip, iw/iwconfg+wpa_supplicant, dhcpcd. From the perspective of NetCtl setup, automatic refers to "Automatic switching of profiles" using wpa_actiond and ifplugd packages. Its a fine distinction which makes a difficult state to describe in the wiki or in forum posts.
//EDIT Broke off the Automatic NetCtl comment so I can close this post...
Last edited by xtian (2013-09-17 21:15:09)
Offline