Skip to content

Instantly share code, notes, and snippets.

@lidgnulinux
Last active July 10, 2024 09:09
Show Gist options
  • Save lidgnulinux/a71efa9e1651167c97d5b89c460b0b5b to your computer and use it in GitHub Desktop.
Save lidgnulinux/a71efa9e1651167c97d5b89c460b0b5b to your computer and use it in GitHub Desktop.
Netplan Example.
network:
wifis:
YOUR_WIRELESS_INTERFACE:
dhcp4: yes
dhcp6: yes
access-points:
"YOUR_SSID":
password: "YOUR_PASSWORD"
"YOUR_SSID":
auth:
key-management: eap
password: "YOUR_PASSWORD"
identity: "YOUR_EMAIL"
ethernets:
USB_TETHER_INTERFACE:
dhcp4: yes
dhcp6: yes
version: 2
renderer: networkd
# Apply your config with this command :
# $ sudo netplan apply your_config.yaml
network:
wifis:
YOUR_WIRELESS_INTERFACE:
dhcp4: no
dhcp6: no
addresses:
- x.x.x.x/24
routes:
- to: default
via: x.x.x.x
access-points:
"YOUR_SSID":
password: "YOUR_PASSWORD"
"YOUR_SSID":
auth:
key-management: eap
password: "YOUR_PASSWORD"
identity: "YOUR_EMAIL"
version: 2
renderer: networkd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment