Package: ifupdown
Version: 0.6.8
Severity: Normal
ifupdown fails to bring up the tap interface during boot. If "ifup tap0" is
run after the boot has completed, it works properly all of the time,
including when the tun driver isn't already loaded, so that is only a problem
during boot.
Using a stock Debian kernel (2.6.21 on AMD64 although I saw the same behaviour
with 2.6.18 and 2.6.20), the following messages are generated during boot:
Configuring network interfaces...SIOCSIFADDR: No such device
tap0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <[EMAIL PROTECTED]>
Failed to bring up tap0
done
Loading the tun driver after attempting to bring up the device is obviously a
problem (assuming that the load messages aren't delayed). As such, a test
with the tun driver loaded via /etc/modules yields the following output
during boot:
Configuring network interfaces...SIOCSIFADDR: No such device
tap0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: Cannot assign requested address
Failed to bring up tap0
done
Running ifconfig after booting with the tap module loaded via /etc/modules
yields the following output for tap0:
tap0 Link encap:Ethernet HWaddr 2E:1C:30:A7:9C:C2
inet6 addr: fe80::2c1c:30ff:fea7:9cc2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:53 (53.0 b) TX bytes:468 (468.0 b)
Without loading the modules via /etc/modules ifconfig yields no output for
tap0. I have seen similar behaviour with the tap driver statically linked
into a custom kernel, however it wasn't as consistent, there were a a few
times where it would actually work.
Here is the contents of /etc/network/interfaces.
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
auto tap0
iface tap0 inet static
address 172.24.0.1
netmask 255.255.255.0
vde2-switch -
James
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]