[Pkg-vsquare-devel] Bug#418065: vde2: integration with ifup/ifdown
needlessly restrict the naming of the interface
Raphael Hertzog
hertzog at debian.org
Fri Apr 6 14:09:04 UTC 2007
Package: vde2
Version: 2.1.6-1
Severity: normal
The scripts /etc/network/if-pre-up.d/vde2 and
/etc/network/if-post-down.d/vde2 won't do anything if the interface name
doesn't match "tap*".
The goal is probably to avoid messing with real already existing
interfaces but it has the bad side-effect that it prevents me from naming my
tap interface following my wishes.
For instance, I wanted to name my tap interface "qemu" because I was
planning to use it as switch between the various qemu virtual machines.
I removed the check:
case $IFACE in
tap*)
# Remainder of script.
;;
*)
# Not a tun/tap device.
exit 0
;;
esac
And afterwards my qemu entry in /etc/network/interfaces worked:
iface qemu inet static
address 10.0.2.1
netmask 255.255.255.0
vde2-switch -
up /etc/init.d/dnsmasq restart || true
If the goal was to avoid messing with real interfaces, you should rather rework
the test based on the output of "iconfig -s -a" or something similar.
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Versions of packages vde2 depends on:
ii adduser 3.102 Add and remove users and groups
ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries
ii libvdeplug2 2.1.6-1 Virtual Distributed Ethernet - Plu
Versions of packages vde2 recommends:
ii daemon 0.6.3-1 turns other processes into daemons
-- no debconf information
More information about the Pkg-vsquare-devel
mailing list