This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Set a fixed WiFi connection for the Nordic OTBR

Hi,

I am trying to set a fixed WiFi connection in the "/etc/wpa_supplicant/wpa_supplicant.conf " file, but it gets lost on every reboot. I assume it is because of the Access Point feature. Could you please tell me what I have to do to disable it and leave my connection unchanged.

Thank you

Parents
  • Hello,

    Yes. I have struggled a bit with the same. 

    It is correct as you say, the Access Point service overwrites the default network configurations which is usually stored in wpa_supplicant/wpa_supplicant.conf.

    The Border Router uses NetworkManager to module to manage it's networks.

    I am not sure if step 1 is required, but at least it works if you include it.

    To disable the AP feature, type the command:

    1:

    $ nmcli connection down BorderRouter-AP

    2:

    $ sudo systemctl disable ap-config.service

    3:

    $ nmcli connection add con-name <ssid> ifname wlan0 type wifi ssid <ssid> ipv6.method ignore wifi-sec.key-mgmt wpa-psk wifi-sec.psk <password>

    where <ssid> is the name of your network, and <password> is your password. So if you have a network named "MyNetwork" with password "MyPassword":

    $ nmcli connection add con-name MyNetwork ifname wlan0 type wifi ssid MyNetwork ipv6.method ignore wifi-sec.key-mgmt wpa-psk wifi-sec.psk MyPassword

    So this will add your network to the network manager. If you restart ($ sudo reboot) it will connect to this network on the next startup.

    Hope that helps.

    Best regards,

    Edvin

  • Hi Edvin,

    I disable the BorderRouter-AP as you suggested and it worked. Then, I configured my network manually by writing in the /etc/wpa_supplicant/wpa_supplicant.conf and /etc/network/interfaces file, but it does not work. This is the way I do it since I got my RPi3 and it has always worked.

    /etc/wpa_supplicant/wpa_supplicant.conf

    network={
      ssid="newcastle-university"
      key_mgmt=WPA-EAP
      eap=TTLS
      identity="your_login_name"
      password="your_password"
      phase2="auth=MSCHAPv2"
    }

    /etc/network/interfaces

    allow-hotplug wlan0
    iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

    As you can see, it is an enterprise network. That is the reason I did not followed your example. You mention that the Border Router uses the NetworkManager module to manage it's networks. Does this means that the only possible way of enable connection is through it? So, would I have to use the NetworkManager for enterprise networks?

    Best regards,

    Ronald

Reply
  • Hi Edvin,

    I disable the BorderRouter-AP as you suggested and it worked. Then, I configured my network manually by writing in the /etc/wpa_supplicant/wpa_supplicant.conf and /etc/network/interfaces file, but it does not work. This is the way I do it since I got my RPi3 and it has always worked.

    /etc/wpa_supplicant/wpa_supplicant.conf

    network={
      ssid="newcastle-university"
      key_mgmt=WPA-EAP
      eap=TTLS
      identity="your_login_name"
      password="your_password"
      phase2="auth=MSCHAPv2"
    }

    /etc/network/interfaces

    allow-hotplug wlan0
    iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

    As you can see, it is an enterprise network. That is the reason I did not followed your example. You mention that the Border Router uses the NetworkManager module to manage it's networks. Does this means that the only possible way of enable connection is through it? So, would I have to use the NetworkManager for enterprise networks?

    Best regards,

    Ronald

Children
Related