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

Similar topics

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
Replies Reply to this message
#2 Adrian Ban
July 02nd, 2012 - 12:40 pm ET | Report spam
Hi,

This patch is integrated in ifup?
I'll try to check if is working.

Adrian

On 7/1/2012 11:42 AM, Andrew Shadura wrote:
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.








To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Replies Reply to this message
#3 Andrew Shadura
July 02nd, 2012 - 12:50 pm ET | Report spam

Hello,

On Mon, 02 Jul 2012 19:21:07 +0300
Adrian Ban wrote:

This patch is integrated in ifup?
I'll try to check if is working.



You can try it from here:
http://ifupdown.org/ifupdown/diff/i...52b8ca1fb8

WBR, Andrew






To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Replies Reply to this message
#4 Adrian Ban
July 11th, 2012 - 06:00 am ET | Report spam
Hi,

Thanks for the fix. Is working fine now!

Best regards,
Adrian

On 07/01/2012 11:42 AM, Andrew Shadura wrote:
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.






To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
email Follow the discussion Replies Reply to this message
Help Create a new topicReplies Make a reply
Search Make your own search