In a Photon OS 5.0 environment, the system fails to automatically acquire an IPv6 address after startup.
VMware vSphere ESXi 8.x
VMware vSphere ESX 9.x
Photon OS 5.0
The default network configuration disables the receipt of IPv6 Router Advertisements (RA). Specifically, the IPv6AcceptRA parameter is set to no in the systemd-networkd configuration, and the kernel parameter net.ipv6.conf.eth0.accept_ra defaults to 0.
Use one of the following two methods to resolve this issue and restore IPv6 address acquisition capabilities.
Method 1: Modify systemd-networkd configuration (Persistent)
Edit the network configuration file /etc/systemd/network/99-dhcp-en.network.
Locate the [Network] section and modify the IPv6AcceptRA value from no to yes:IPv6AcceptRA=yes
systemctl restart systemd-networkd
Method 2: Modify kernel parameter via sysctl (Runtime)
Execute the following command to set the accept_ra parameter to 1 for the target network interface (e.g., eth0):sysctl -w net.ipv6.conf.eth0.accept_ra=1
net.ipv6.conf.eth0.accept_ra=1 to the /etc/sysctl.d/99-sysctl.conf file and execute sysctl -p to reload the configuration.