Red Hat Bugzilla – Bug 1300755
ifup network with an interface name with more than 16 characters
Last modified: 2016-11-03 15:06:45 EDT
Description of problem: the new long style network device names are to long because vlans with 4 digits cause interface name to be > 15 chars you get the error: ifup eno33557248.3008 Error: argument "eno33557248.3008" is wrong: "name" too long ERROR : [/usr/sbin/ifup] ERROR: could not add vlan 3008 as eno33557248.3008 on dev eno33557248 NetworkManager also cant bring the interface up. and `ip a` list the interface as "eno33557248.300" missing the 8 Steps to Reproduce: 1. create a network device with a vlan > 999 while using longer name format 2. (optional) disable NetorkManager 3. try and bring the interface online Actual results: Error: argument "eno33557248.3008" is wrong: "name" too long Expected results: all good
reported upstream to systemd https://github.com/systemd/systemd/issues/2407
As workaround, in NetworkManager you can configure the interface-name in the connection. $ nmcli connection modify $CONNECTION_ID connection-interface vlan3008 Pushed a fix to upstream master: http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=944065c1154a656846dcf37e1cce35d3fb1792ed http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=778207f23eb2ac022b2ee47968a484fdb94626fe This only concerns NetworkManager. It is unrelated to using ifup with NetworkManager disabled.
NM now cuts name to fit the device name limitation (16) so long_device_name with vlan to 1024 is shortened from long_device_name.1024 to long_device_.1024 and everything works as expected.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2016-2581.html