• @mlfh@lemmy.sdf.org
    link
    fedilink
    392 months ago

    ifupdown2 has a 15-character interface name limit, and the systemd predictable interface naming system uses the mac address for usb nics (giving them a 15-character name), so if you try to create a vlan subinterface of a usb nic using the standard interface.vlan naming scheme on a systemd host, it will fail, and you’ll have to set up systemd network link files to rename the base interfaces to something shorter.

    • @orsetto@lemmy.dbzer0.com
      link
      fedilink
      342 months ago

      I’m almost sure the backstory to how you gained this knowledge is “i spent hours debugging something, and that 15 chars limit was the problem”

      • @mlfh@lemmy.sdf.org
        link
        fedilink
        202 months ago

        Yep exactly! Setting up a raspberry pi low-performance computing cluster with secondary usb nics, going slowly insane trying to figure out why the vlan interfaces wouldn’t work when their base interfaces worked just fine, and going down all of the wrong rabbit holes along the way.

        • @orsetto@lemmy.dbzer0.com
          link
          fedilink
          122 months ago

          And all that just because someone decided that an array bigger that 16 bytes would have been too expensive (/s probably)