Package: vlan Version: 1.8-1 Severity: important Tags: patch On our packet filter/router system, we have several VLANs attached to a bonding interface.
/etc/network/interfaces has interface definitions like these: auto bond0 iface bond0 inet manual pre-up ifconfig bond0 up post-up ifenslave bond0 eth2 eth3 pre-down ifenslave -d bond0 eth2 eth3 post-down ifconfig bond0 down ## # bond0.101 auto bond0.101 iface bond0.101 inet static address xxx.xxx.xxx.xxx netmask 255.255.255.0 the reason why the ifup/ifdown can't bring the interfaces up/down is in /etc/network/if-{pre-up,post-down}/vlan. The patch is below. best regards Joerg Jungermann ([EMAIL PROTECTED]), Max Wilhelm([EMAIL PROTECTED]) diff -uar network.fw1/if-post-down.d/vlan network.fw2/if-post-down.d/vlan --- network.fw1/if-post-down.d/vlan 2006-08-16 18:17:58.000000000 +0200 +++ network.fw2/if-post-down.d/vlan 2006-08-16 18:17:32.000000000 +0200 @@ -11,6 +11,12 @@ eth*.*) IF_VLAN_RAW_DEVICE=`echo $IFACE|sed "s/\(eth[0-9][0-9]*\)\..*/\1/"` ;; + bond*.0*) + IF_VLAN_RAW_DEVICE=`echo $IFACE|sed "s/\(bond[0-9][0-9]*\)\..*/\1/"` + ;; + bond*.*) + IF_VLAN_RAW_DEVICE=`echo $IFACE|sed "s/\(bond[0-9][0-9]*\)\..*/\1/"` + ;; *) exit 0 ;; esac diff -uar network.fw1/if-pre-up.d/vlan network.fw2/if-pre-up.d/vlan --- network.fw1/if-pre-up.d/vlan 2006-08-16 18:17:58.000000000 +0200 +++ network.fw2/if-pre-up.d/vlan 2006-08-16 18:17:32.000000000 +0200 @@ -21,6 +21,16 @@ VLANID=`echo $IFACE|sed "s/eth[0-9][0-9]*\.0*//g"` IF_VLAN_RAW_DEVICE=`echo $IFACE|sed "s/\(eth[0-9][0-9]*\)\..*/\1/"` ;; + bond*.0*) + vconfig set_name_type DEV_PLUS_VID + VLANID=`echo $IFACE|sed "s/bond[0-9][0-9]*\.0*//g"` + IF_VLAN_RAW_DEVICE=`echo $IFACE|sed "s/\(bond[0-9][0-9]*\)\..*/\1/"` + ;; + bond*.*) + vconfig set_name_type DEV_PLUS_VID_NO_PAD + VLANID=`echo $IFACE|sed "s/bond[0-9][0-9]*\.0*//g"` + IF_VLAN_RAW_DEVICE=`echo $IFACE|sed "s/\(bond[0-9][0-9]*\)\..*/\1/"` + ;; *) exit 0 ;; esac -- System Information: Debian Release: 3.1 Architecture: i386 (i686) Kernel: Linux 2.6.15.7-client Locale: LANG=C, [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages vlan depends on: pn iproute Not found. ii libc6 2.3.2.ds1-22sarge3 GNU C Library: Shared libraries an -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]