[Bug 1567744] Re: RTNETLINK answers: Numerical result out of range for alias interface from a usb NIC
I actually re-started the discussion about that (about the third time) a few days ago on https://lists.ubuntu.com/archives/ubuntu- devel/2016-April/039302.html . This is actually another point in favor of moving to location based USB names by default. @Andres: For the time being, please see /usr/share/doc/udev/README.Debian.gz for an overview how to configure the naming. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1567744 Title: RTNETLINK answers: Numerical result out of range for alias interface from a usb NIC To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/iproute2/+bug/1567744/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1567744] Re: RTNETLINK answers: Numerical result out of range for alias interface from a usb NIC
This isn't a simple problem at all. The new naming scheme from systemd makes it so that these specific devices (USB dongles) get their MAC address encoded in the device name, which brings it up to a length of 15 characters + \0; so 16 bytes. This happens to also be the size limit for interface names (set as IFNAMSIZ to 16). Adding more characters to the end of this string makes it too long to be allowed by {libnl3, kernel, iproute2}. This is because while we're not strictly dealing with interface names here, we're dealing with a label which is bound by the same sized buffer (limited to IFNAMSIZ size). There are a few possible avenues for a solution: - Rename the address yourself to something smaller. This should be possible using udev rules. - Fix systemd to pick a different naming method. - Fix ip addr to better deal with address labels, which may mean dropping some backward compatibility (more below) - Increasing the buffer size for address labels (which means changes in the kernel, libnl, iproute2 at the very least, and probably many more userland utilities). For iproute2: label LABEL Each address may be tagged with a label string. In order to preserve compatibility with Linux-2.0 net aliases, this string must coincide with the name of the device or must be prefixed with the device name followed by colon. It may be possible to strip out anything before the colon if a label is passed in that format to hand to the netlink layer a shorter label, but I haven't looked more closely at what such a change might impact. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1567744 Title: RTNETLINK answers: Numerical result out of range for alias interface from a usb NIC To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/iproute2/+bug/1567744/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1567744] Re: RTNETLINK answers: Numerical result out of range for alias interface from a usb NIC
I pinged pitti on IRC earlier today, and just subscribed him for guidance on whether this can be fixed in systemd; which seems to be the least intrusive way to handle this (aside from expecting users to know about this limitation and renaming interfaces themselves). ** Changed in: iproute2 (Ubuntu) Status: In Progress => Triaged ** Changed in: iproute2 (Ubuntu) Status: Triaged => Confirmed ** Changed in: iproute2 (Ubuntu) Status: Confirmed => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1567744 Title: RTNETLINK answers: Numerical result out of range for alias interface from a usb NIC To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/iproute2/+bug/1567744/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1567744] Re: RTNETLINK answers: Numerical result out of range for alias interface from a usb NIC
ifupdown handles the passed names correctly, but it looks like iproute2 is very unhappy about something in these long names like "enx000be608397d:1"; when setting the label for the address. Since the label must match the device and it otherwise works with "eth1:1", I'll looking into the iproute2 code now. ** Package changed: ifupdown (Ubuntu) => iproute2 (Ubuntu) ** Changed in: iproute2 (Ubuntu) Status: New => In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1567744 Title: RTNETLINK answers: Numerical result out of range for alias interface from a usb NIC To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/iproute2/+bug/1567744/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1567744] Re: RTNETLINK answers: Numerical result out of range for alias interface from a usb NIC
Looks like at first glance ifupdown is confused by this naming format together with the subif. I'll try to reproduce here, I do happen to have a USB ethernet dongle that should show this problem. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1567744 Title: RTNETLINK answers: Numerical result out of range for alias interface from a usb NIC To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1567744/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1567744] Re: RTNETLINK answers: Numerical result out of range for alias interface from a usb NIC
** Changed in: ifupdown (Ubuntu) Importance: Undecided => Critical -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1567744 Title: RTNETLINK answers: Numerical result out of range for alias interface from a usb NIC To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1567744/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1567744] Re: RTNETLINK answers: Numerical result out of range for alias interface from a usb NIC
** Changed in: ifupdown (Ubuntu) Assignee: (unassigned) => Mathieu Trudel-Lapierre (cyphermox) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1567744 Title: RTNETLINK answers: Numerical result out of range for alias interface from a usb NIC To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1567744/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1567744] Re: RTNETLINK answers: Numerical result out of range for alias interface from a usb NIC
** Description changed: - I have a USB NIC that is connected to my xenial system: + I have a USB NIC that is connected to my denial system. I tried to + create an alias, and after reboot, it wasn't created. When I manually + try to bring it up I have the error. /e/n/i: auto enx000ec688b79f iface enx000ec688b79f inet static address 10.90.90.1 netmask 255.255.255.0 auto enx000ec688b79f:1 iface enx000ec688b79f:1 inet static address 192.168.100.1 netmask 255.255.255.0 ubuntu@maas00:~$ sudo ifup enx000ec688b79f ubuntu@maas00:~$ sudo ifup enx000ec688b79f:1 RTNETLINK answers: Numerical result out of range Failed to bring up enx000ec688b79f:1. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1567744 Title: RTNETLINK answers: Numerical result out of range for alias interface from a usb NIC To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1567744/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs