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

Add support for a DHCP client-id kernelarg

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • NetworkManager-1.55.4-1.el10
    • None
    • rhel-net-mgmt
    • 3
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • Hide

      Definition of Done:

      Please mark each item below with ( / ) if completed or ( x ) if incomplete:

      ( ) The acceptance criteria defined below are met.

      Given the kernel command line specifies a DHCP client-id for interface <iface> using the supported kernel argument,

      When initrd networking is brought up by nm-initrd-generator and DHCP is requested on <iface>,

      Then DHCP packets from <iface> include Option 61 equal to the specified client-id and interfaces without a specified client-id continue to use the default (MAC-based) client-id


      ( ) Integration test case is available upstream.


      ( ) Code is reviewed and merged upstream.


      ( ) Preliminary testing is done.


      ( ) Upstream documentation is written in the upstream MR.


      ( ) Release notes text is written in the RHEL issue.


      ( ) A demo is recorded

      Show
      Definition of Done: Please mark each item below with ( / ) if completed or ( x ) if incomplete: ( ) The acceptance criteria defined below are met. Given the kernel command line specifies a DHCP client-id for interface <iface> using the supported kernel argument, When initrd networking is brought up by nm-initrd-generator and DHCP is requested on <iface>, Then DHCP packets from <iface> include Option 61 equal to the specified client-id and interfaces without a specified client-id continue to use the default (MAC-based) client-id ( ) Integration test case is available upstream. ( ) Code is reviewed and merged upstream. ( ) Preliminary testing is done. ( ) Upstream documentation is written in the upstream MR. ( ) Release notes text is written in the RHEL issue. ( ) A demo is recorded
    • Pass
    • Automated
    • Enhancement
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      With NetworkManager and basically any DHCP client you can choose a custom client-id to send in the DHCP request. In NeworkManager can be chosen with the `ipv4.dhcp-client-id` property.

      The client-id is often used by the DHCP server to give the same IP address to each client.

      However, when passing kernelargs like `ip=dhcp` one cannot specify the client-id, so we send the MAC address as client-id by default when establishing a connection in initrd.

      The proposal is to add support in nm-initrd-generator to specify the DHCP client-id.

      • Maybe a `rd.net.dhcp.client-id` arg. Maybe it's not enough because we need to specify different client-id per interface?
      • An optional value `dhcp-client-id` to the `ip=` kernelarg.

              rhn-engineering-vbenes Vladimir Benes
              ihuguet@redhat.com Inigo Huguet
              Network Management Team Network Management Team
              Vladimir Benes Vladimir Benes
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated: