Skip to main content
aikchar.dev
  • Blog
  • pytest-hidecaptured
  • brokerlso
  • Seagull
  • GitHub
  • Contact
  • RSS
  • Source

Configure Wifi on Ubuntu Server with Netplan

Hamza Sheikh

2023-08-06 05:28

Source

Add a file, 1-wlan0.yaml, to /etc/netplan/ with the following contents,

$ sudo cat << EOF >> /etc/netplan/1-wlan0.yaml
network:
    version: 2
    wifis:
        wlan0:
            optional: true
            access-points:
                NAME_OF_YOUR_ESSID:
                    password: "YOUR_SECRET_WPA_PSK_HERE"
            dhcp4: true
            dhcp6: true
EOF

Then apply the plan,

$ sudo netplan apply
  • ubuntu
  • Previous post
  • Next post
Contents © 2016-2024 Hamza Sheikh - Contact - Powered by Nikola AlmaLinux nginx