- I completely reinstalled Raspbian using balenaEtcher.
- I connected the Raspberry Pi 4 to a TV via HDMI (relevant?!).
- I logged in with the username
piand passwordraspberry. - I ran
sudo raspi-config. - I selected
1 Change User Passwordand set a new password. - I selected
2 Network Options>N1 Hostnameand set it tohassio. - I selected
2 Network Options>N2 Wi-fiand I entered my Wi-Fi SSID and password. - I selected
5 Interfacing Options>P2 SSHand enabled it. - I selected
Finishand rebooted. - I SSHed into it using
ssh [email protected]and entering the password. - I ran
ifconfig, which printed
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether dc:a6:32:0d:3e:9a txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.111 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::9e53:e5ff:f1bf:c2a prefixlen 64 scopeid 0x20<link>
ether dc:a6:32:0d:3e:9b txqueuelen 1000 (Ethernet)
RX packets 1641 bytes 218905 (213.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1134 bytes 106043 (103.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- I ran
sudo reboot. - I ran
ifconfig, which printed the same MAC addresses. - I ran
sudo apt-get update. - I ran
sudo apt-get install network-manager, as it is mentioned in the official guide, which “stopped” at
Setting up modemmanager (1.10.0-1) …
- I ran
ssh [email protected]. - I ran
ifconfig, which printed
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
- inet 192.168.0.111 netmask 255.255.255.0 broadcast 192.168.0.255
+ inet 192.168.0.108 netmask 255.255.255.0 broadcast 192.168.0.255
- inet6 fe80::9e53:e5ff:f1bf:c2a prefixlen 64 scopeid 0x20<link>
+ inet6 fe80::8dc7:e73a:310f:552e prefixlen 64 scopeid 0x20<link>
- ether dc:a6:32:0d:3e:9b txqueuelen 1000 (Ethernet)
+ ether 9e:bd:79:78:5b:b4 txqueuelen 1000 (Ethernet)
- RX packets 1641 bytes 218905 (213.7 KiB)
+ RX packets 17081 bytes 21368136 (20.3 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 1134 bytes 106043 (103.5 KiB)
+ TX packets 7932 bytes 853589 (833.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- I ran
sudo reboot. - I ran
ssh [email protected]. - I ran
ifconfig, which printed
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
- inet 192.168.0.108 netmask 255.255.255.0 broadcast 192.168.0.255
+ inet 192.168.0.117 netmask 255.255.255.0 broadcast 192.168.0.255
- inet6 fe80::8dc7:e73a:310f:552e prefixlen 64 scopeid 0x20<link>
+ inet6 fe80::2105:7f1:9a1a:147d prefixlen 64 scopeid 0x20<link>
- ether 9e:bd:79:78:5b:b4 txqueuelen 1000 (Ethernet)
+ ether aa:17:35:2b:22:c2 txqueuelen 1000 (Ethernet)
- RX packets 17081 bytes 21368136 (20.3 MiB)
+ RX packets 339 bytes 36629 (35.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 7932 bytes 853589 (833.5 KiB)
+ TX packets 316 bytes 45023 (43.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- I ran
sudo systemctl disable ModemManagerandsudo apt-get purge modemmanager(again, from the official guide). - I ran
ifconfig, which printed the same MAC addresses as the last time. - I ran
sudo reboot. - I ran
ssh [email protected]. - I ran
ifconfig, which printed
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
- inet 192.168.0.117 netmask 255.255.255.0 broadcast 192.168.0.255
+ inet 192.168.0.105 netmask 255.255.255.0 broadcast 192.168.0.255
- inet6 fe80::2105:7f1:9a1a:147d prefixlen 64 scopeid 0x20<link>
+ inet6 fe80::c9fd:f715:6019:afbb prefixlen 64 scopeid 0x20<link>
- ether aa:17:35:2b:22:c2 txqueuelen 1000 (Ethernet)
+ ether 06:a2:2d:bc:4d:84 txqueuelen 1000 (Ethernet)
- RX packets 339 bytes 36629 (35.7 KiB)
+ RX packets 244 bytes 32537 (31.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 316 bytes 45023 (43.9 KiB)
+ TX packets 274 bytes 40498 (39.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
As you can see, after installing network-manager, the MAC address started to change on every reboot. Exactly like I guessed in the very first comment. The difference was that, the first time, I installed all the required packages at once, installed Home Assistant, set it up, and I didn’t know which exact step caused it.
Now, was there something I did wrong?