Ubuntu 18.04 netplan configuration for WPA-EAP
1
vote
1
answer
12984
views
##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](https://gist.github.com/austinjp/9b968c75c3e54004be7cd7a134881d85)
- I looked at the [Netplan Examples](https://netplan.io/examples) (none with WPA-EAP )
- I've read the [Netplan Full Documentation](https://github.com/CanonicalLtd/netplan/blob/master/doc/netplan.md) .
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](https://github.com/CanonicalLtd/netplan/blob/master/doc/netplan.md) :
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
1. What's the right way to use netplan with WPA-EAP?
1. Does Ubuntu 18.04 ship with an outdated version of netplan? ( netplan --version
is not supported ) Hence perhaps why the online documentation has options that the man
version does not?
1. If so, can I upgrade netplan to a more cutting edge release?
1. Or does netplan need to be used with something like a wpa_supplicant.conf
to specify additional parameters?
Asked by cwd
(46887 rep)
Dec 18, 2018, 07:23 PM
Last activity: Jul 15, 2025, 11:03 AM
Last activity: Jul 15, 2025, 11:03 AM