[AWS EC2] cloud-init fails to bring up ipv6 on RHEL 8 and RHEL 9 images

Solution In Progress - Updated -

Issue

  • IPv6 address is not assigned to the interface after configuring cloud-init /etc/cloud/cloud.cfg.d/99-custom-networking.cfg file with dhcp6

  • cloud-init should add the following parameters to the network interface configuration file:

      # cat /etc/sysconfig/network-scripts/ifcfg-eth0 
      # Created by cloud-init on instance boot automatically, do not edit.
      #
      BOOTPROTO=dhcp
      DEVICE=eth0
      DHCPV6C=yes  <<-----
      IPV6INIT=yes <<-----
      ONBOOT=yes
      STARTMODE=auto
      TYPE=Ethernet
      USERCTL=no
    

Environment

Red Hat Enterprise Linux 8.5
Red Hat Enterprise Linux 9.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content