Bug#679672: ifupdown: ifup doesn't recognize aliases IPs for vlan in form ethX.Y:A

June 30th, 2012 - 01:00 pm ET by Adrian Ban | Report spam
Package: ifupdown
Version: 0.7
Severity: critical
Justification: breaks the whole system

Dear Maintainer,

After an upgrade of the system the ifup command doesn't recognize anymore the aliases for the VLANs.
I have severals vlans configured in /etc/network/interfaces like this:

auto eth1.10
iface eth1.10 inet static
address a.b.c.d
netmask 255.255.255.192

auto eth1.10:1
iface eth1.10:1 inet static
# description Malu-rosu
address a.b.c.d
netmask 255.255.255.192

auto eth1.11
iface eth1.11 inet static
# description Armasesti
address a.b.c.d
netmask 255.255.255.192

auto eth1.11:2
iface eth1.11:2 inet static
# description Armasesti
address a.b.c.d
netmask 255.255.255.192

If you want to start the interfaces the ifup -a gives this error:

root@router:/etc/network# ifup -a
Error: argument "10:1" is wrong: id is invalid
Ignoring unknown interface eth1.10:1=eth1.10:1.
Error: argument "11:2" is wrong: id is invalid
Ignoring unknown interface eth1.11:2=eth1.11:2.

Best regards.


Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (x86_64)

Kernel: Linux 3.3.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.ISO-8859-1, LC_CTYPE=en_US.ISO-8859-1 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages ifupdown depends on:
ii dpkg 1.16.4.3
ii initscripts 2.88dsf-22.1
ii iproute 20120521-2
ii libc6 2.13-33
ii lsb-base 4.1+Debian7

ifupdown recommends no packages.

Versions of packages ifupdown suggests:
ii isc-dhcp-client [dhcp-client] 4.2.2.dfsg.1-5
ii net-tools 1.60-24.1
pn ppp <none>
pn rdnssd <none>




To UNSUBSCRIBE, email to debian-bugs-rc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 4 repliesReplies Make a reply

Replies

#1 Andrew Shadura
July 01st, 2012 - 04:50 am ET | Report spam

Hello,

On Sat, 30 Jun 2012 19:37:57 +0300
Adrian Ban wrote:

After an upgrade of the system the ifup command doesn't recognize
anymore the aliases for the VLANs. I have severals vlans configured
in /etc/network/interfaces like this:



I've just committed a fix.

For this:

iface eth2.2:3 inet static
address 3.4.5.6/23

It now runs the following:

if test -d /sys/class/net/eth2 -a ! -d /sys/class/net/eth2.2 ; then ip link set up dev eth2; ip link add link eth2 name eth2.2 type vlan id 2; fi
ip addr add 3.4.5.6/255.255.254.0 broadcast 3.4.5.255 dev eth2.2:3 label eth2.2:3
ip link set dev eth2.2:3 up

Please check if that's correct.

WBR, Andrew






To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

Similar topics