User talk:Bkuri

From ArchWiki
Jump to: navigation, search

Systemd with wpa_supplicant and static IP (ad-hoc version)

Hi, I've moved your example service to the Ad-hoc networking page, as I think it is much better place for it, Wireless Setup currently covers only client configuration (the managed mode of wireless cards).[1]

However, perhaps I have not made myself clear when writing the Ad-hoc networking#WPA supplicant section. It is meant as a replacement to the previous configuration, not as an addition. Could you please test the following service, if I'm not terribly wrong?

Description=Network connectivity for %i


ExecStart=/usr/bin/rfkill unblock wifi   # perhaps not needed for you
ExecStart=/usr/bin/wpa_supplicant -B -i %i -D nl80211,wext -c /etc/wpa_supplicant/adhoc.conf -P /run/
ExecStart=/usr/bin/ip addr add ${addr}/${mask} dev %i

ExecStop=/usr/bin/ip addr flush dev %i
ExecStop=/usr/bin/ip link set %i down


Thanks. -- Lahwaacz (talk) 09:27, 21 August 2013 (UTC)

No problem as far as moving it around. Whatever makes it clearer is fine by me.
As far as your service file, I was not able to get it to work. Perhaps it's due to the "ibss" line being absent?
Regarding the wpa_supplicant config, I personally found it to be pretty clear as to it being a replacement rather than an addition.
Well, that's interesting. Could you share some details (error outputs etc.)? I'm very curious about this now, since the last time I've tried it several times on different machines and it always worked. Does the manual wpa_supplicant method work for you without the iw commands? -- Lahwaacz (talk) 19:49, 31 August 2013 (UTC)