Ubuntu 18.04 netplan configuration for WPA-EAP
Clash Royale CLAN TAG#URR8PPP
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 --version
is not supported ) Hence perhaps why the online documentation has options that theman
version 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.conf
to specify additional parameters?
ubuntu wifi authentication wpa2-eap netplan
add a comment |
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 --version
is not supported ) Hence perhaps why the online documentation has options that theman
version 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.conf
to specify additional parameters?
ubuntu wifi authentication wpa2-eap netplan
Did you try leaving out the lineauth:
... and simply jump right to thekey-management:
line?
– RubberStamp
Dec 18 at 20:36
@RubberStamp - I did try that. It saysError in network definition: unknown key key-management
– cwd
Dec 19 at 19:46
The problem is with the form of the definition... theunknown key
is because the yaml file is incorrect... it doesn't mean that the authentication method isn't working, because netplan didn't get that far... Make sure that there are no tabs in the file, only spaces. And then create a very basic netplan configuration for a regular network port to ensure you have the proper format, spacing, and so forth.
– RubberStamp
Dec 19 at 20:12
add a comment |
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 --version
is not supported ) Hence perhaps why the online documentation has options that theman
version 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.conf
to specify additional parameters?
ubuntu wifi authentication wpa2-eap netplan
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 --version
is not supported ) Hence perhaps why the online documentation has options that theman
version 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.conf
to specify additional parameters?
ubuntu wifi authentication wpa2-eap netplan
ubuntu wifi authentication wpa2-eap netplan
asked Dec 18 at 19:23
cwd
13.4k52115156
13.4k52115156
Did you try leaving out the lineauth:
... and simply jump right to thekey-management:
line?
– RubberStamp
Dec 18 at 20:36
@RubberStamp - I did try that. It saysError in network definition: unknown key key-management
– cwd
Dec 19 at 19:46
The problem is with the form of the definition... theunknown key
is because the yaml file is incorrect... it doesn't mean that the authentication method isn't working, because netplan didn't get that far... Make sure that there are no tabs in the file, only spaces. And then create a very basic netplan configuration for a regular network port to ensure you have the proper format, spacing, and so forth.
– RubberStamp
Dec 19 at 20:12
add a comment |
Did you try leaving out the lineauth:
... and simply jump right to thekey-management:
line?
– RubberStamp
Dec 18 at 20:36
@RubberStamp - I did try that. It saysError in network definition: unknown key key-management
– cwd
Dec 19 at 19:46
The problem is with the form of the definition... theunknown key
is because the yaml file is incorrect... it doesn't mean that the authentication method isn't working, because netplan didn't get that far... Make sure that there are no tabs in the file, only spaces. And then create a very basic netplan configuration for a regular network port to ensure you have the proper format, spacing, and so forth.
– RubberStamp
Dec 19 at 20:12
Did you try leaving out the line
auth:
... and simply jump right to the key-management:
line?– RubberStamp
Dec 18 at 20:36
Did you try leaving out the line
auth:
... and simply jump right to the key-management:
line?– RubberStamp
Dec 18 at 20:36
@RubberStamp - I did try that. It says
Error in network definition: unknown key key-management
– cwd
Dec 19 at 19:46
@RubberStamp - I did try that. It says
Error in network definition: unknown key key-management
– cwd
Dec 19 at 19:46
The problem is with the form of the definition... the
unknown key
is because the yaml file is incorrect... it doesn't mean that the authentication method isn't working, because netplan didn't get that far... Make sure that there are no tabs in the file, only spaces. And then create a very basic netplan configuration for a regular network port to ensure you have the proper format, spacing, and so forth.– RubberStamp
Dec 19 at 20:12
The problem is with the form of the definition... the
unknown key
is because the yaml file is incorrect... it doesn't mean that the authentication method isn't working, because netplan didn't get that far... Make sure that there are no tabs in the file, only spaces. And then create a very basic netplan configuration for a regular network port to ensure you have the proper format, spacing, and so forth.– RubberStamp
Dec 19 at 20:12
add a comment |
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f489753%2fubuntu-18-04-netplan-configuration-for-wpa-eap%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f489753%2fubuntu-18-04-netplan-configuration-for-wpa-eap%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Did you try leaving out the line
auth:
... and simply jump right to thekey-management:
line?– RubberStamp
Dec 18 at 20:36
@RubberStamp - I did try that. It says
Error in network definition: unknown key key-management
– cwd
Dec 19 at 19:46
The problem is with the form of the definition... the
unknown key
is because the yaml file is incorrect... it doesn't mean that the authentication method isn't working, because netplan didn't get that far... Make sure that there are no tabs in the file, only spaces. And then create a very basic netplan configuration for a regular network port to ensure you have the proper format, spacing, and so forth.– RubberStamp
Dec 19 at 20:12