Hello,
Maybe I'm wrong, but it looks like the /etc/network/*.d/vlan conflicts
with normal behaviour of ifup/ifdown in wheezy.
The script ifup/ifdown already use "ip link" to configure and create vlan.
Configuration file /etc/network/interfaces
auto bond2.341
iface bond2.341 inet static
address 192.168.1.1
netmask 255.255.255.0
With VLAN package installed:
# ifconfig bond2.341
bond2.341: error fetching interface information: Device not found
# ifup bond2.341
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
ERROR: trying to add VLAN #341 to IF -:bond2:- error: File exists
# ifconfig bond2.341
bond2.341 Link encap:Ethernet HWaddr 00:10:18:f0:88:b8
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::210:18ff:fef0:88b8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:398 (398.0 B)
# ifdown bond2.341
Removed VLAN -:bond2.341:-
Cannot find device "bond2.341"
# ifconfig bond2.341
bond2.341: error fetching interface information: Device not found
Without VLAN package:
# dpkg -P vlan
Removing vlan ...
Purging configuration files for vlan ...
# ifup bond2.341
# ifconfig bond2.341
bond2.341 Link encap:Ethernet HWaddr 00:10:18:f0:88:b8
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::210:18ff:fef0:88b8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:398 (398.0 B)
# ifdown bond2.341
# ifconfig bond2.341
bond2.341: error fetching interface information: Device not found
The scripts /etc/network/*.d/vlan should be modified or removed ?
On the web site of the author
http://www.candelatech.com/~greear/vlan.html
<http://www.candelatech.com/%7Egreear/vlan.html> it's written : "802.1Q
VLAN code is now part of the official kernel, and has been for years and
years. MAC-VLAN code has been added since around 2.6.29. It is very
unlikely that you need to download anything from this site, the packages
are left here for posterity's sake."
Thanks.
--
*Emmanuel DECAEN*