You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
703 B

  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. # static ip configuration
  11. # /etc/netplan/50-cloud-init.yaml
  12. network:
  13. ethernets:
  14. eth0:
  15. dhcp4: true
  16. optional: true
  17. wifis:
  18. wlan0:
  19. dhcp4: no
  20. dhcp6: no
  21. addresses: [192.168.1.150/24]
  22. gateway4: 192.168.1.1
  23. nameservers:
  24. addresses: [1.1.1.1, 8.8.8.8]
  25. access-points:
  26. "wifiname":
  27. password: "password"
  28. version: 2