Bug 1300755 - ifup network with an interface name with more than 16 characters
Summary: ifup network with an interface name with more than 16 characters
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: NetworkManager
Version: 7.4
Hardware: Unspecified
OS: Linux
Target Milestone: rc
: ---
Assignee: Thomas Haller
QA Contact: Desktop QE
Depends On:
TreeView+ depends on / blocked
Reported: 2016-01-21 16:05 UTC by steverweber
Modified: 2016-11-03 19:06 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2016-11-03 19:06:45 UTC

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:2581 normal SHIPPED_LIVE Low: NetworkManager security, bug fix, and enhancement update 2016-11-03 12:08:07 UTC

Description steverweber 2016-01-21 16:05:47 UTC
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

Comment 2 steverweber 2016-01-21 16:33:30 UTC
reported upstream to systemd

Comment 3 Thomas Haller 2016-01-21 17:51:09 UTC
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:

This only concerns NetworkManager. It is unrelated to using ifup with NetworkManager disabled.

Comment 5 Vladimir Benes 2016-08-30 10:04:54 UTC
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.

Comment 7 errata-xmlrpc 2016-11-03 19:06:45 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.