arnaucube
arnaucube/configsPublic Self-hosted repository
configs/raspberry/netplan-config.yaml
raspberry/netplan-config.yamlRaw
 1# static ip configuration
 2# /etc/netplan/50-cloud-init.yaml
 3
 4network:
 5    ethernets:
 6        eth0:
 7            dhcp4: true
 8            optional: true
 9    wifis:
10        wlan0:
11            dhcp4: no
12            dhcp6: no
13            addresses: [192.168.1.150/24]
14            gateway4: 192.168.1.1
15            nameservers:
16                addresses: [1.1.1.1, 8.8.8.8]
17            access-points:
18                "wifiname":
19                    password: "password"
20    version: 2
21