Skip to content

Instantly share code, notes, and snippets.

@ckemere
Created June 10, 2021 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ckemere/56ff61e9af6c670a89e364d3bb85516d to your computer and use it in GitHub Desktop.
Save ckemere/56ff61e9af6c670a89e364d3bb85516d to your computer and use it in GitHub Desktop.
Configure netplan for eduroam

Modifying the default Raspberry Pi Ubuntu 21.04 Server for use with the eduroam network.

The "wifis" section from the file below needs to go in /etc/netplan/50-cloud-init.yaml. (This will be the default file in that directory. It will start out with just the eth0 section.)

You may need to run sudo netplan generate and then sudo netplan apply to get everything updated.

# This file is generated from information provided by the datasource.  Changes
# to it will not persist across an instance reboot.  To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
    ethernets:
        eth0:
            dhcp4: true
            optional: true

    wifis:
        wlan0:
            dhcp4: true
            access-points:
                "eduroam":
                    auth:
                      key-management: eap
                      password: "your password"
                      method: ttls
                      identity: "netid@rice.edu"
                      phase2-auth: "MSCHAPV2"
    version: 2
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment