Background
I'm using Ubuntu 18.04 server (on a laptop, for development) and am trying to get my wifi configured to work with an WPA-EAP network.
To enable Wifi I followed the guide Wifi on Ubuntu 18 server
I looked at the Netplan Examples (none with WPA-EAP )
I've read the Netplan Full Documentation.
I've got netplan to work with an an open network, even with a password protected network, but haven't been able to get it to work with WPA-EAP where both an identity and password are required.
Attempted Configuration
I've tried this in my /etc/netplan/config.yaml file:
network:
wifis:
wlp1s0:
dhcp4: yes
access-points:
"My-Enterprise-Network":
auth:
key-management: eap
identity: johndoe1
password: pass1234
But when I run netplan apply I get:
Error in network definition /etc/netplan/config.yaml: unknown key auth
From the Documentation
From the online netplan documentation:
The ``auth`` block supports the following properties:
``key-management`` (scalar)
: The supported key management modes are ``none`` (no key management);
``psk`` (WPA with pre-shared key, common for home wifi); ``eap`` (WPA
with EAP, common for enterprise wifi); and ``802.1x`` (used primarily
for wired Ethernet connections).
``password`` (scalar)
: The password string for EAP, or the pre-shared key for WPA-PSK.
The following properties can be used if ``key-management`` is ``eap``
or ``802.1x``:
``method`` (scalar)
: The EAP method to use. The supported EAP methods are ``tls`` (TLS),
``peap`` (Protected EAP), and ``ttls`` (Tunneled TLS).
``identity`` (scalar)
: The identity to use for EAP.
From man netplan
access-points (mapping)
This provides pre-configured connections to NetworkManager.
Note that users can of course select other access points/SSIDs.
The keys of the mapping are the SSIDs, and the values are mappings
with the following supported properties:
password (scalar)
Enable WPA2 authentication and set the passphrase for it.
If not given, the network is assumed to be open.
**Other authentication modes are not currently supported.**
Note the last line: Other authentication modes are not currently supported.
Questions
- What's the right way to use netplan with WPA-EAP?
- Does Ubuntu 18.04 ship with an outdated version of netplan? (
netplan --versionis not supported ) Hence perhaps why the online documentation has options that themanversion does not? - If so, can I upgrade netplan to a more cutting edge release?
- Or does netplan need to be used with something like a
wpa_supplicant.confto specify additional parameters?