Package: ifupdown
Version: 0.6.7
Severity: important
Hi,
I encounter a problem whith vlans when doing a /etc/init.d/networking
restart.
Everything goes smoothly when booting / rebooting, but when one restart
the network (doing ifdown -a immediatly followed by ifup -a), some vlan
are missing. The number of vlan does not change this behavior (vlan are
missing weither there is 3 or 255 vlan configured). e.g :
[EMAIL PROTECTED]:~/src/debian/ifupdown-0.6.7# /etc/init.d/networking restart
Setting up IP spoofing protection: rp_filter.
Reconfiguring network interfaces...
Removed VLAN -:eth0.5:-
Removed VLAN -:eth0.6:-
Removed VLAN -:eth0.7:-
ifup: interface lo already configured
<some output cut for the sake of clarity>
Set name-type for VLAN subsystem. Should be visible in
/proc/net/vlan/config
Added VLAN with VID == 5 to IF -:eth0:-
Set name-type for VLAN subsystem. Should be visible in
/proc/net/vlan/config
Added VLAN with VID == 6 to IF -:eth0:-
Set name-type for VLAN subsystem. Should be visible in
/proc/net/vlan/config
Added VLAN with VID == 7 to IF -:eth0:-
done.
[EMAIL PROTECTED]:~/src/debian/ifupdown-0.6.7# cat /proc/net/vlan/config
VLAN Dev name | VLAN ID
Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD
eth0.5 | 5 | eth0
eth0.6 | 6 | eth0
-> vlan 7 is missing
[EMAIL PROTECTED]:~/src/debian/ifupdown-0.6.7# /etc/init.d/networking restart
Setting up IP spoofing protection: rp_filter.
Reconfiguring network interfaces...
Removed VLAN -:eth0.5:-
Removed VLAN -:eth0.6:-
ifup: interface lo already configured
Set name-type for VLAN subsystem. Should be visible in
/proc/net/vlan/config
Added VLAN with VID == 5 to IF -:eth0:-
Set name-type for VLAN subsystem. Should be visible in
/proc/net/vlan/config
Added VLAN with VID == 6 to IF -:eth0:-
Set name-type for VLAN subsystem. Should be visible in
/proc/net/vlan/config
Added VLAN with VID == 7 to IF -:eth0:-
done.
[EMAIL PROTECTED]:~/src/debian/ifupdown-0.6.7# cat /proc/net/vlan/config
VLAN Dev name | VLAN ID
Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD
eth0.5 | 5 | eth0
eth0.7 | 7 | eth0
-> vlan 6 is missing
on the next run, only vlan 6 would be here, the vlan 5 and vlan 7 again, and so
on.
I added the following lines on each vlan interface in /etc/network/interfaces :
pre-up echo $IFACE pre-up | tee -a /var/log/kern.log
up echo $IFACE up | tee -a /var/log/kern.log
post-up echo $IFACE post-up | tee -a /var/log/kern.log
pre-down echo $IFACE pre-down | tee -a /var/log/kern.log
down echo $IFACE down | tee -a /var/log/kern.log
post-down echo $IFACE post-down | tee -a /var/log/kern.log
here is what I see in kernel.log then when I do a networking restart :
eth0.5 pre-down
eth0.5 down
eth0.5 post-down
eth0.7 pre-down
eth0.7 down
eth0.7 post-down
eth0.5 pre-up
Jul 7 15:05:50 clement kernel: eth0.5: add 01:00:5e:00:00:01 mcast address to
master interface
Jul 7 15:05:50 clement kernel: eth0.5: add 33:33:00:00:00:01 mcast address to
master interface
Jul 7 15:05:50 clement kernel: eth0.5: add 33:33:ff:29:ba:c3 mcast address to
master interface
eth0.5 up
eth0.5 post-up
eth0.6 pre-up
Jul 7 15:05:50 clement kernel: eth0.6: add 01:00:5e:00:00:01 mcast address to
master interface
Jul 7 15:05:50 clement kernel: eth0.6: add 33:33:00:00:00:01 mcast address to
master interface
Jul 7 15:05:50 clement kernel: eth0.6: add 33:33:ff:29:ba:c3 mcast address to
master interface
eth0.6 up
eth0.6 post-up
eth0.7 pre-up
Jul 7 15:05:50 clement kernel: eth0.7: add 01:00:5e:00:00:01 mcast address to
master interface
Jul 7 15:05:50 clement kernel: eth0.7: add 33:33:00:00:00:01 mcast address to
master interface
Jul 7 15:05:50 clement kernel: eth0.7: add 33:33:ff:29:ba:c3 mcast address to
master interface
eth0.7 up
eth0.7 post-up
eth0.5 pre-down
eth0.5 down
Jul 7 15:05:51 clement kernel: eth0.5: del 33:33:ff:29:ba:c3 mcast address
from vlan interface
Jul 7 15:05:51 clement kernel: eth0.5: del 33:33:ff:29:ba:c3 mcast address
from master interface
Jul 7 15:05:51 clement kernel: eth0.5: del 33:33:00:00:00:01 mcast address
from vlan interface
Jul 7 15:05:51 clement kernel: eth0.5: del 33:33:00:00:00:01 mcast address
from master interface
Jul 7 15:05:51 clement kernel: eth0.5: del 01:00:5e:00:00:01 mcast address
from vlan interface
Jul 7 15:05:51 clement kernel: eth0.5: del 01:00:5e:00:00:01 mcast address
from master interface
eth0.5 post-down
eth0.7 pre-down
eth0.7 down
Jul 7 15:05:51 clement kernel: eth0.7: del 33:33:ff:29:ba:c3 mcast address
from vlan interface
Jul 7 15:05:51 clement kernel: eth0.7: del 33:33:ff:29:ba:c3 mcast address
from master interface
Jul 7 15:05:51 clement kernel: eth0.7: del 33:33:00:00:00:01 mcast address
from vlan interface
Jul 7 15:05:51 clement kernel: eth0.7: del 33:33:00:00:00:01 mcast address
from master interface
Jul 7 15:05:51 clement kernel: eth0.7: del 01:00:5e:00:00:01 mcast address
from vlan interface
Jul 7 15:05:51 clement kernel: eth0.7: del 01:00:5e:00:00:01 mcast address
from master interface
eth0.7 post-down
indeed, there is only vlan 6 now.
I cannot see any trace of this on stdout, so I aknowledge it may be a
buffer/cache problem when writing to the log.
WORKAROUND :
If I add a sleep 1 between the ifdown and the ifup, the problem will disapear.
I can reproduce this on several machine, either sid or sarge ones, with
different hardware.
I'm not sure weither this bug belong to ifupdown, vlan (vconfig) or the vlan
kernel module. I tried different kernels (2.4.27, 2.6.8, 2.6.11), but the
problem is still there.
I shall continue to investigate and provide more information (or reassign the
bug) if I have any.
Anyway, here is the relevant section of my /etc/network/interface :
auto eth0.5
iface eth0.5 inet static
address 10.66.1.253
netmask 255.255.255.0
network 10.66.1.0
broadcast 10.66.1.255
pre-up echo $IFACE pre-up | tee -a /var/log/kern.log
up echo $IFACE up | tee -a /var/log/kern.log
post-up echo $IFACE post-up | tee -a /var/log/kern.log
pre-down echo $IFACE pre-down | tee -a /var/log/kern.log
down echo $IFACE down | tee -a /var/log/kern.log
post-down echo $IFACE post-down | tee -a /var/log/kern.log
auto eth0.6
iface eth0.6 inet static
address 10.66.2.253
netmask 255.255.255.0
network 10.66.2.0
broadcast 10.66.2.255
pre-up echo $IFACE pre-up | tee -a /var/log/kern.log
up echo $IFACE up | tee -a /var/log/kern.log
post-up echo $IFACE post-up | tee -a /var/log/kern.log
pre-down echo $IFACE pre-down | tee -a /var/log/kern.log
down echo $IFACE down | tee -a /var/log/kern.log
post-down echo $IFACE post-down | tee -a /var/log/kern.log
auto eth0.7
iface eth0.7 inet static
address 10.66.3.253
netmask 255.255.255.0
network 10.66.3.0
broadcast 10.66.3.255
pre-up echo $IFACE pre-up | tee -a /var/log/kern.log
up echo $IFACE up | tee -a /var/log/kern.log
post-up echo $IFACE post-up | tee -a /var/log/kern.log
pre-down echo $IFACE pre-down | tee -a /var/log/kern.log
down echo $IFACE down | tee -a /var/log/kern.log
post-down echo $IFACE post-down | tee -a /var/log/kern.log
Best regards,
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-1-686-smp
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
Versions of packages ifupdown depends on:
ii debconf [debconf-2.0] 1.4.51 Debian configuration management sy
ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an
ii net-tools 1.60-13 The NET-3 networking toolkit
-- debconf information excluded
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]