Hi!

TSL2.2 have problem with VLAN over Bond interface

See /usr/share/doc/kernel-doc-2.4.32/networking/bonding.txt at :
"8021q VLAN support"

------------------------------------------------
VLAN interfaces *must* be added on top of a bonding interface only after
enslaving at least one slave. This is because until the first slave is added the
bonding interface has a HW address of 00:00:00:00:00:00, which will be copied by
the VLAN interface when it is created.
------------------------------------------------

In attachment patch for fix this problem.

Bye!



--- ifup_original       2006-09-12 11:59:01.000000000 +0200
+++ ifup        2006-09-12 12:42:44.000000000 +0200
@@ -65,7 +65,7 @@

# Ethernet 802.1Q VLAN support
if [ -x /sbin/vconfig -a "${VLAN}" = "yes" ]; then
-    if echo ${DEVICE} | LANG=C egrep -v '(:)' | LANG=C egrep -q
'eth[0-9][0-9]*\.[0-9][0-9]?[0-9]?[0-9]?' ; then
+    if echo ${DEVICE} | LANG=C egrep -v '(:)' | LANG=C egrep -q
'(eth|bond)[0-9][0-9]*\.[0-9][0-9]?[0-9]?[0-9]?' ; then
        if [ ! -d /proc/net/vlan ]; then
            if modprobe 8021q >/dev/null 2>&1 ; then
                /sbin/vconfig set_name_type DEV_PLUS_VID_NO_PAD >/dev/null 2>&1 
|| {
@@ -77,10 +77,10 @@
            fi
        fi
        VID="`echo ${DEVICE} | \
-           LANG=C egrep 'eth[0-9]+\.[0-9][0-9]?[0-9]?[0-9]?$' | \
+           LANG=C egrep '(eth|bond)[0-9]+\.[0-9][0-9]?[0-9]?[0-9]?$' | \
            LANG=C sed 's/^[a-z0-9]*\.//g;s/^0*//'`"
        PHYSDEV="`echo ${DEVICE} | \
-           LANG=C egrep 'eth[0-9]+\.[0-9][0-9]?[0-9]?[0-9]?$' | \
+           LANG=C egrep '(eth|bond)[0-9]+\.[0-9][0-9]?[0-9]?[0-9]?$' | \
            LANG=C sed 's/\.[a-z0-9]*$//g'`"

        is_available ${PHYSDEV} || {






--- network.original    2003-02-04 03:19:20.000000000 +0100
+++ network     2006-09-12 12:40:14.000000000 +0200
@@ -50,12 +50,21 @@
. network-functions

# find all the interfaces besides loopback.
-# ignore aliases, alternative configurations, and editor backup files
+# ignore aliases, alternative configurations, editor backup files and vlans
interfaces=`ls ifcfg* | LANG=C egrep -v
'(ifcfg-lo|:|rpmsave|rpmorig|rpmnew)' | \
+            LANG=C egrep -v '\.' | \
            LANG=C egrep -v '(~|\.bak)$' | \
            LANG=C egrep 'ifcfg-[A-Za-z0-9\._-]+$' | \
            sed 's/^ifcfg-//g'`

+interfacevlan=`ls ifcfg* | LANG=C egrep -v
'(ifcfg-lo|:|rpmsave|rpmorig|rpmnew)' | \
+               LANG=C egrep '\.' | \
+               LANG=C egrep -v '(~|\.bak)$' | \
+               LANG=C egrep 'ifcfg-[A-Za-z0-9\._-]+$' | \
+               sed 's/^ifcfg-//g'`
+
+interfaces="$interfaces $interfacevlan"
+
# See how we were called.
case "$1" in
  start)
_______________________________________________
tsl-discuss mailing list
[email protected]
http://lists.trustix.org/mailman/listinfo/tsl-discuss

Reply via email to