Configure CAN bus under Debian Bullseye

Until now to configure the CAN bus network, I used the /etc/network/interfaces file with for example the addition of the following lines: allow-plughot can1, iface can1 can static, bitrate 250000. Now with the arrival of under Bullseye is this still good practice?

This should be configurable with systemd-networkd…

one example: Pengutronix - Did you know? Initializing CAN interfaces with systemd-networkd