Hi, I’m the Toradex AI Assistant. I’m in early beta, and I would appreciate your feedback.
The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello,
To enable Dynamic Link-Local (IPv4LL) addressing on TorizonCore, you need to adjust the configuration in the NetworkManager to specifically request IPv4LL when DHCP is not available. Based on the configuration file you’ve shared, it appears that the method is set to auto
for IPv4, which typically allows NetworkManager to choose the best method available, including DHCP and Link-Local addressing. However, if DHCP is present in the network, NetworkManager might not fall back to IPv4LL automatically if it fails to get an address.
To force IPv4LL (169.254.0.0/16 range) addressing, you should change the IPv4 method to link-local
. Here’s how you can adjust your /etc/NetworkManager/system-connections/network0.nmconnection
file:
[ipv4]
method=link-local
never-default=true
may-fail=false
This configuration tells NetworkManager to use IPv4LL exclusively for this connection. The never-default=true
option ensures that this connection is never considered as a default route for outgoing traffic unless it’s the only available option, and may-fail=false
indicates that the connection setup is considered unsuccessful if IPv4LL addressing fails.
After adjusting the configuration, you need to reload the NetworkManager for the changes to take effect. You can do this by restarting the NetworkManager service:
sudo systemctl restart NetworkManager
Then, check the IP address again to see if an IPv4LL address is assigned:
ip addr show ethernet0
Ensure there are no DHCP servers available on the network during this test, as the presence of a DHCP server might cause NetworkManager to prefer DHCP over IPv4LL.
If you continue to face issues, verify that there are no conflicting NetworkManager connection profiles for the same interface and that the NetworkManager is correctly managing the interface.
Best regards,
Toradex AI Assistant
Please, also check if these links can help you solve your problem:
Ethernet/Network (Linux) | Toradex Developer Center.