But if I try to run "netctl start home" after the enable command I always get the OP error. Also if I do "netctl stop home", the connection goes down, but when I try to bring it up with "netctl start home" I always get the OP error
So if I "netctl enable" any network and reboot the computer, that network connection will work; if I stop it, there is no way to restart the connection, even with the iwconfig tampering mentioned in the OP.. The only way is to reboot or "netctl disable home" and use the OP method..
Maybe I'm missing something here?
]]># netctl enable mynetwork
first before I could start it with
# netctl start mynetwork
otherwise I got the same error as you did.
]]>Description='Home network'
Interface=wlan0
Connection=wireless
Security=wpa
IP=dhcp
ESSID=net
Key=\"5f6e1ebcedsdtn...
It works only after the essid is manually set on wlan0
# iwconfig wlan0 essid net
After which I can enable the connection with "netctl start home".
If iwconfig was not run before it, netcl produces the following output
Job for netctl@home.service failed. See 'systemctl status netctl@home.service' and 'journalctl -xn' for details.
# systemctl status netctl@home.service
netctl@home.service - Home network
Loaded: loaded (/etc/systemd/system/netctl@home.service; static)
Active: failed (Result: exit-code) since Thu 2013-04-11 13:36:23 EEST; 11s ago
Docs: man:netctl.profile(5)
Process: 4026 ExecStart=/usr/lib/network/network start %I (code=exited, status=1/FAILURE)
Apr 11 13:36:07 adiPc systemd[1]: Starting Home network...
Apr 11 13:36:07 adiPc network[4026]: Starting network profile 'home'...
Apr 11 13:36:23 adiPc network[4026]: WPA association/authentication failed for interface 'wlan0'
Apr 11 13:36:23 adiPc network[4026]: Failed to bring the network up for profile 'home'
Apr 11 13:36:23 adiPc systemd[1]: netctl@home.service: main process exited, code=exited, status=1/FAILURE
Apr 11 13:36:23 adiPc systemd[1]: Failed to start Home network.
Apr 11 13:36:23 adiPc systemd[1]: Unit netctl@home.service entered failed state
# dmesg
[ 2857.256393] wlan0: authenticate with 68:7f:74:4c:76:8b
[ 2857.259465] wlan0: direct probe to 68:7f:74:4c:76:8b (try 1/3)
[ 2857.462240] wlan0: direct probe to 68:7f:74:4c:76:8b (try 2/3)
[ 2857.665208] wlan0: direct probe to 68:7f:74:4c:76:8b (try 3/3)
[ 2857.868192] wlan0: authentication with 68:7f:74:4c:76:8b timed out
I could't find a method to eliminate the step of setting the essid manually with iwconfig. Can someone please help me with this?
]]>