IP Configuration on Debian Bookworm - no interfaces file

Hello,

I'm quite used to Debian, however on my newly installed Debian Bookworm server I can't find the usual IP configuration files (/etc/network/interfaces). Is this method deprecated ? I can't even find any file containing the usable public IP, or where to add new IPs (IPv6 or 4), nothing looks like what's in the OVH guides.

The only file I found contains the IPv6 config and the network interface is /etc/netplan/50-cloud-init.yaml which shouldn't be edited, but points to /etc/cloud/ stuff which I've never seen before.

I'm sure I'm missing something very obvious and right in front of me, but it seems I might need help seeing it.

Cheers,

Hi,

OVH use "netplan" on the cloud image.

Best regards,
Janus57

Thanks for the info. I'm still not sure how that works (I can't seem to find anything clear about that in the OVH docs). I'm wondering if there's a way to go back to the default Debian style, as it's documented.

Edit: Actually, I managed to add an extra IPv6, I'm trying to migrate an IPv4 FO from an old server, if I can get that to work and configure it, then perhaps I "get it".

Hi,

Maybe this link can be helpful for you : https://community.ovh.com/t/R%C3%89SOLU-Sous-Debian-12-passer-la-configuration-r%C3%A9seau-DHCP-%C3%A0-STATIC/62767/7?u=janus57

Best regards, janus57

The output of `netplan status` is just so much better than `ip`, OMG. Just for that I insisted and managed to add an IPv4, I think I get the logic now. At least for adding IPs directly.

Thanks!

Hello,

Yes, netplan is not bad when you understand how its work and the file syntax is pretty clear.

Best regards, janus57

FYI we asked Debian about this change in https://www.1archive.com/debian-cloud@lists.debian.org/msg06128.htmlarchive.com/debian-cloud@lists.debian.org/msg06128.html
If I recall correctly, normal installations still use ifupdown but their cloud images now use netplan. Because we try to stick closely to upstream's choices (our images are based on Debian's cloud images), we just kept netplan.

In my experience, netplan is a bit more reliable than ifupdown and the configuration file is easier to read.