Package: bridge-utils Version: 1.7-1 Severity: important Tags: patch In case there are vlan interfaces in /etc/network/interfaces and those are set up by ifupdown, it trims .*\.0* and uses the rest as vlan-id.
Bridge-utils duplicates the functionality but only trims .*\. and vlans that are padded with leading zeroes are treated as octal vlan-ids by iproute. The attached patch fixes this by unifying the processing. -- System Information: Debian Release: 11.0 APT prefers stable-security APT policy: (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-8-amd64 (SMP w/8 CPU threads) Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages bridge-utils depends on: ii libc6 2.31-13 bridge-utils recommends no packages. Versions of packages bridge-utils suggests: ii ifupdown 0.8.36 -- no debconf information
--- /lib/bridge-utils/bridge-utils.sh +++ /lib/bridge-utils/bridge-utils.sh @@ -69,7 +69,7 @@ then echo 1 > /proc/sys/net/ipv6/conf/$dev/disable_ipv6 fi ip link set "$dev" up - ip link add link "$dev" name "$port" type vlan id "${port#*.}" + ip link add link "$dev" name "$port" type vlan id "$(echo $port|sed 's/[^.]*\.0*//g')" fi fi }