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