J'ai résolu mon problème en ajoutant une instruction "vlan-raw-device br1" dans la déclaration de l'interface br1.82 comme ici:
iface br1.82 inet static vlan-raw-device br1 address 192.168.32.242/24 gateway 192.168.32.254 dns-nameservers 192.168.32.254 Merci Daniel pour ton aide. Le mer. 11 déc. 2024 à 12:24, NoSpam <no-s...@tootai.net> a écrit : > > Bonjour. Je fais > > auto bone lan > > # The bone interface > iface bone inet manual > bridge_ports eno1 > bridge_stp on > bridge_maxwait 0 > bridge_fd 0 > pre-up ifup eno1 > > iface lan inet static > address 192.168.1.242/24 > bridge_ports bone.1 > bridge_stp on > bridge_maxwait 0 > bridge_fd 0 > pre-up ifup voice || true > pre-up ifup eno1 || true > post-down ifdown voice || true > > > iface eno1 inet manual > > iface bone.1 inet manual > pre-up ifup bone.1000 || true ; une interface pour le vlan 1000, > ici trunk switchs > post-up ip link set link bone name bone.1 type vlan id 1 > > iface voice inet manual > bridge_ports bone.2 > bridge_stp on > bridge_maxwait 0 > bridge_fd 0 > > iface bone.2 inet manual > post-up ip link set link bone name bone.2 type vlan id 2 > > Les VM sont ensuite connectées à leur interface respectives ou à toutes > pour celle qui fait passerelle d'ou pas d'IP sur l'interface voice. > > Ceci n'est qu'un extrait du fichier interfaces, j'ai tenté de l'adapter, > peut être y a t'il des erreurs/omissions mais l'idée est là ;) > > Le 10/12/2024 à 18:56, Olivier a écrit : > > Bonjour, > > > > Je configure un serveur sous Bookworm. > > Il va héberger deux VM libvirt/qemu. > > Il n'a qu'une unique interface Ethernet eno1. > > Il utilise le paquet classique ifupdown pour sa configuration réseau. > > > > J'ai essayé la configuration ci-après dans /etc/network/interfaces > > > > auto eno1 > > iface eno1 inet manual > > > > auto br1 > > iface br1 inet static > > bridge_ports eno1 > > bridge_stp off > > bridge_fd 0 > > bridge_maxwait 0 > > address 192.168.1.242/24 > > > > auto br1.82 > > iface br1.82 inet static > > address 192.168.32.242/24 > > gateway 192.168.32.254 > > dns-nameservers 192.168.32.254 > > > > > > Elle provoque une erreur "RTNETLINKS answers: File exists". > > Comment corriger ? > > > > Slts >