configs/raspberry/netplan-config.yaml
raspberry/netplan-config.yamlRaw
1# UPDATE: for newer systems better directly use:
2# vim /etc/dhcpcd.conf:
3#
4# interface eth0
5# static ip_address=192.168.1.150/24
6# static routers=192.168.1.1
7# static domain_name_servers=192.168.1.1
8#
9# now reboot the rpi
10
11
12# static ip configuration
13# /etc/netplan/50-cloud-init.yaml
14
15network:
16 ethernets:
17 eth0:
18 dhcp4: true
19 optional: true
20 wifis:
21 wlan0:
22 dhcp4: no
23 dhcp6: no
24 addresses: [192.168.1.150/24]
25 gateway4: 192.168.1.1
26 nameservers:
27 addresses: [1.1.1.1, 8.8.8.8]
28 access-points:
29 "wifiname":
30 password: "password"
31 version: 2
32