On Thu, Oct 16, 2014 at 4:53 PM, walt <w41...@gmail.com> wrote:
> On 10/15/2014 08:23 PM, Tom H wrote:
>> On Mon, Oct 13, 2014 at 7:39 PM, walt <w41...@gmail.com> wrote:
>>>
>>> I just switched my home LAN from wired to all wifi and I'm having trouble
>>> with NetworkManager at boot time.
>>>
>>> I have systemd start NetworkManager at boot because I need the internet
>>> for ntpdate and to start the nfs server for the LAN. Before I switched
>>> to all-wireless this method worked perfectly, but no longer.
>>>
>>> After bootup I see that NetworkManager started wpa_supplicant in the
>>> background, but apparently does *not* run dhcpcd. (The wlan0 is up
>>> but it has no IP address and the routing table is empty.)
>>>
>>> As an alternative to NetworkManager I can have systemd start dhcpcd
>>> at boot, which almost (but not quite) works well enough. This
>>> causes a race condition because wlan0 takes several seconds to come
>>> up properly and by then both ntpdate and nfs-server have already
>>> run and failed.
>>>
>>> So, I asked myself, why not have systemd start dhcpcd at boot in
>>> addition to NetworkManager?
>>>
>>> The reason that fails is that they both start wpa_supplicant in
>>> the background and the two instances interfere with each other.
>>>
>>> Anyone see a way around this catch22?
>>
>> Do you have "All users may connect" unticked in the NM applet or
>> "permissions=user:walt:;" in the NM connection's config?
>
> After studying the logs I'm beginning to think that NM is actually
> trying to start wlan0 at boot time but failing with this message:
> 'no secrets', which I assume means no password, maybe?
>
> Yes, I do have the all-users box ticked. Question: I've set up the
> wlan0 connection (as root) several times using nmtui, including the
> SSID password, yet each time I start nmtui the password field is blank
> again. Is this normal behavior? How can I tell if the password is
> actually being stored somewhere?

I've never used nmtui (I didn't even know about it).

This the config that I use when i visit my parents (I use a static
address at home so this corresponds to your use-case). It has to be in
0600 mode for NM to use it.

# cat /etc/NetworkManager/system-connections/mumdad
[connection]
id=mumdad
uuid=da59ada3-1349-49fe-b63b-bc68f67b6f89
type=802-11-wireless

[802-11-wireless]
ssid=number96
mode=infrastructure
security=802-11-wireless-security

[802-11-wireless-security]
key-mgmt=wpa-psk
psk=xxxxxxxxx

[ipv4]
method=auto
dns=8.8.8.8;8.8.4.4;

[ipv6]
method=link-local

You have to have "plugins=keyfile" in the "[main]" section of
"/etc/NetworkManager/NetworkManager.conf" for the above to work.

Reply via email to