Raspberry Pi OS (Bullseye) network

I wiped my Raspberry Pi today and installed the latest OS (Debian Bullseye).

It looks like there’s some changes on the networking side of things. Nothing new I guess, just that it’s new to me as this is my first Bullseye encounter.

In the past I would have files in /etc/network/interfaces.d, or modify /etc/network/interfaces itself. They’d contain entries like:

Looks like we don’t do things that way any more. Instead, you skip the above and use /etc/dhcpcd.conf:

You still need the interfaces file/folder if you want to create virtual interfaces. For instance I have /etc/network/interfaces.d/eth0.0 with the following contents:

And dhcpcd.conf has the rest:

There’s also a /etc/network/interfaces.new file. Not sure what that does, but I don’t care as I am using the interfaces.d folder to add stuff and both files point to the contents of that folder.