Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

long style network device names are too long for vlans > 999 #2407

Closed
steverweber opened this issue Jan 21, 2016 · 2 comments
Closed

long style network device names are too long for vlans > 999 #2407

steverweber opened this issue Jan 21, 2016 · 2 comments

Comments

@steverweber
Copy link

the new long style network device names are too long because vlans with 4 digits cause interface name to be > 15 chars

related: https://bugzilla.redhat.com/show_bug.cgi?id=1300755

you get the error:

systemctl stop NetworkManager
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

and ip a list the interface as "eno33557248.300" missing the 8

...
8: eno33557248.300@eno33557248: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP 
    link/ether 00:50:56:84:21:80 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::250:56ff:fe84:2180/64 scope link 
       valid_lft forever preferred_lft forever

some thoughts, change:
https://github.com/systemd/systemd/blob/master/src/udev/udev-builtin-net_id.c
to generate names that are one char shorter.

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
@poettering
Copy link
Member

Well, "eno33557248" is already borked, and that's what should be fixed... Apparently your BIOS exposes rubbish interface indexes, and the kernel doesn't clean them up. This should really be fixed in the kernel, it should not pass on data that is obviously borked.

poettering added a commit to poettering/systemd that referenced this issue Jan 25, 2016
…kernel

Let's not accept onboard interface indexes, that are so high that they are obviously non-sensical.

Fixes: systemd#2407
@teg teg closed this as completed in 6c1e69f Jan 25, 2016
@steverweber
Copy link
Author

this is a vm guest under vmware.

whot pushed a commit to whot/systemd that referenced this issue Oct 10, 2017
…kernel

Let's not accept onboard interface indexes, that are so high that they are obviously non-sensical.

Fixes: systemd#2407

Cherry-picked from: 6c1e69f
Resolves: #1230210
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants