Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 977  / 2 Years ago, thu, june 23, 2022, 11:51:53

Set up pi with a static IP (10.0.0.180/24) following https://ubuntu.com/tutorials/how-to-install-ubuntu-on-your-raspberry-pi
Raspberrypi4 -4 with 8g


At boot it displays


eth0 IP 10.0.0.180
eth0 IP 10.0.0.55

10.0.0.55 seems to be from my router dhcp.
Gateway & Nameserver are as I setup in network-config file.
In the tutorial, it suggest I have to replace "dhcp4 : true"
Do I have to set dhcp4 : false?


More From » raspberrypi

 Answers
7

My comment above "There is also a "dhcp4 : true" in the netplan file that links the hardware to eth0" is the problem.
I guess it should not be in that file at all (ever?).
It should only be part of the network-config, since the cloud-init causes netplan to write a new YAML file. Both YAML files are read and combined so netplan subsequently uses the static address & then does a DHCP as well


[#1016] Friday, June 24, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nnaisdio

Total Points: 369
Total Questions: 112
Total Answers: 108

Location: Kenya
Member since Mon, Jun 14, 2021
3 Years ago
nnaisdio questions
;