Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-34774

dhclient does not accept long interface altnames

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-9.4
    • dhcp
    • None
    • None
    • None
    • sst_cs_infra_services
    • ssg_core_services
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • All
    • None

      What were you trying to do that didn't work?

      dhclient fails to start when specifying an interface with a name longer than 15 chars. sometimes systemd creates names of this length:

      Apr 30 08:27:26 localhost systemd[1]: Started dhclient on interface enp0s20f0u14u2c2.
      Apr 30 08:27:26 localhost dhclient[650]: enp0s20f0u14u2c2: interface name too long (is 16)
      Apr 30 08:27:26 localhost dhclient[650]: enp0s20f0u14u2c2: interface name too long (is 16)

      Please provide the package NVR for which bug is seen:

      dhcp-client-4.4.2-19.b1.el9.x86_64

      (but same with rhel8 version, as far as I can tell every released version is affected)

      How reproducible:

      Steps to reproduce

       

      ~# ip link add name bridge0 type bridge
      ~# ip link property add dev bridge0 altname bridge0_long_altname
      ~# dhclient bridge0_long_altname
      bridge0_long_altname: interface name too long (is 20)This version of ISC DHCP is based on the release available
      on ftp.isc.org. Features have been added and other changes
      have been made to the base software release in order to make
      it work better with this distribution.Please report issues with this software via: 
      https://bugzilla.redhat.com/exiting.

      Notes:

      • building the package with IF_NAMESIZE set to larger values should solve the issue
      • the maximum size for altnames which linux seems to accept is 127 chars

            rhn-support-mosvald Martin Osvald
            omangold Oliver Mangold (Inactive)
            Martin Osvald Martin Osvald
            rhel-cs-infra-services-qe rhel-cs-infra-services-qe rhel-cs-infra-services-qe rhel-cs-infra-services-qe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: