Ubuntu 18.04 netplan configuration for WPA-EAP












1















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




  1. What's the right way to use netplan with WPA-EAP?

  2. 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?

  3. If so, can I upgrade netplan to a more cutting edge release?

  4. Or does netplan need to be used with something like a wpa_supplicant.conf to specify additional parameters?










share|improve this question























  • Did you try leaving out the line auth: ... and simply jump right to the key-management: line?

    – RubberStamp
    Dec 18 '18 at 20:36











  • @RubberStamp - I did try that. It says Error in network definition: unknown key key-management

    – cwd
    Dec 19 '18 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 '18 at 20:12
















1















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




  1. What's the right way to use netplan with WPA-EAP?

  2. 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?

  3. If so, can I upgrade netplan to a more cutting edge release?

  4. Or does netplan need to be used with something like a wpa_supplicant.conf to specify additional parameters?










share|improve this question























  • Did you try leaving out the line auth: ... and simply jump right to the key-management: line?

    – RubberStamp
    Dec 18 '18 at 20:36











  • @RubberStamp - I did try that. It says Error in network definition: unknown key key-management

    – cwd
    Dec 19 '18 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 '18 at 20:12














1












1








1








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




  1. What's the right way to use netplan with WPA-EAP?

  2. 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?

  3. If so, can I upgrade netplan to a more cutting edge release?

  4. Or does netplan need to be used with something like a wpa_supplicant.conf to specify additional parameters?










share|improve this question














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




  1. What's the right way to use netplan with WPA-EAP?

  2. 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?

  3. If so, can I upgrade netplan to a more cutting edge release?

  4. Or does netplan need to be used with something like a wpa_supplicant.conf to specify additional parameters?







ubuntu wifi authentication wpa2-eap netplan






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 18 '18 at 19:23









cwdcwd

13.9k52115157




13.9k52115157













  • Did you try leaving out the line auth: ... and simply jump right to the key-management: line?

    – RubberStamp
    Dec 18 '18 at 20:36











  • @RubberStamp - I did try that. It says Error in network definition: unknown key key-management

    – cwd
    Dec 19 '18 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 '18 at 20:12



















  • Did you try leaving out the line auth: ... and simply jump right to the key-management: line?

    – RubberStamp
    Dec 18 '18 at 20:36











  • @RubberStamp - I did try that. It says Error in network definition: unknown key key-management

    – cwd
    Dec 19 '18 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 '18 at 20:12

















Did you try leaving out the line auth: ... and simply jump right to the key-management: line?

– RubberStamp
Dec 18 '18 at 20:36





Did you try leaving out the line auth: ... and simply jump right to the key-management: line?

– RubberStamp
Dec 18 '18 at 20:36













@RubberStamp - I did try that. It says Error in network definition: unknown key key-management

– cwd
Dec 19 '18 at 19:46





@RubberStamp - I did try that. It says Error in network definition: unknown key key-management

– cwd
Dec 19 '18 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 '18 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 '18 at 20:12










1 Answer
1






active

oldest

votes


















0














I have exactly the same problem
Are you able to resolve this issue?






share|improve this answer























    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
    });


    }
    });














    draft saved

    draft discarded


















    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

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I have exactly the same problem
    Are you able to resolve this issue?






    share|improve this answer




























      0














      I have exactly the same problem
      Are you able to resolve this issue?






      share|improve this answer


























        0












        0








        0







        I have exactly the same problem
        Are you able to resolve this issue?






        share|improve this answer













        I have exactly the same problem
        Are you able to resolve this issue?







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 50 mins ago









        dondondondon

        61




        61






























            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            CARDNET

            Boot-repair Failure: Unable to locate package grub-common:i386

            濃尾地震