Last week - with some struggle - I updated my Raspberry from Buster to Bullseye.
After I succeeded to complete the update, I had to reboot the Raspberry and was unable to reconnect to it with the known IP-address.
The trick I then used was to ping the hostname, only to find out that my Raspberry was using an IP 6 IP-address.
I disabled IP6 by editing the /etc/sysctl.conf file. I added these three lines;
- net.ipv6.conf.all.disable_ipv6 = 1
- net.ipv6.conf.default.disable_ipv6 = 1
- net.ipv6.conf.lo.disable_ipv6 = 1
Then when I wanted to access my Raspberry I still was not able to use the known IP-address. Ping-ing the Raspberry showed that it was using a IP4 address, but not the required static one.
With ifconfig I saw that the network interface was given a new name. In /etc/dhcpcd.conf I entered the same name to the network interface and finaly I got my static IP-address working again.