diff mbox series

[scarthgap,2/2] systemd-networkd: Enable IPv4 Link-Local addressing for Ethernet interfaces

Message ID 20260123042812.10342-3-v-singh1@ti.com
State New
Headers show
Series Add Zeroconf networking support for Dante DEP | expand

Commit Message

vishnu singh Jan. 23, 2026, 4:28 a.m. UTC
From: Vishnu Singh <v-singh1@ti.com>

Added LinkLocalAddressing=ipv4 to the network configuration to enable
automatic IPv4 address self-configuration (169.254.x.x/16) when no DHCP server
is available on the network. This configuration applies to all physical Ethernet
interfaces (eth*) and USB Ethernet adapters (usb*).

This change:
- Allows devices to communicate on local networks without manual IP configuration
- Ensures addresses are assigned directly to the physical interfaces (not virtual interfaces)
- Maintains network connectivity in zero-configuration environments
- Follows the RFC 3927 standard for IPv4 Link-Local addressing
- Provides consistent behavior across all Ethernet connections, including USB adapters

The Link-Local addressing serves as a fallback mechanism, enabling basic
network functionality and service discovery even in the absence of network
infrastructure.

Signed-off-by: Vishnu Singh <v-singh1@ti.com>
---
 meta-arago-distro/recipes-core/systemd/systemd/10-eth.network | 1 +
 meta-arago-distro/recipes-core/systemd/systemd/15-eth.network | 1 +
 meta-arago-distro/recipes-core/systemd/systemd/60-usb.network | 1 +
 3 files changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/meta-arago-distro/recipes-core/systemd/systemd/10-eth.network b/meta-arago-distro/recipes-core/systemd/systemd/10-eth.network
index b16ce4c3..aad5e194 100644
--- a/meta-arago-distro/recipes-core/systemd/systemd/10-eth.network
+++ b/meta-arago-distro/recipes-core/systemd/systemd/10-eth.network
@@ -3,4 +3,5 @@  Name=eth0
 KernelCommandLine=!root=/dev/nfs
 
 [Network]
+LinkLocalAddressing=ipv4
 DHCP=yes
diff --git a/meta-arago-distro/recipes-core/systemd/systemd/15-eth.network b/meta-arago-distro/recipes-core/systemd/systemd/15-eth.network
index be47a01f..0aa8b22d 100644
--- a/meta-arago-distro/recipes-core/systemd/systemd/15-eth.network
+++ b/meta-arago-distro/recipes-core/systemd/systemd/15-eth.network
@@ -6,4 +6,5 @@  KernelCommandLine=!root=/dev/nfs
 RequiredForOnline=no
 
 [Network]
+LinkLocalAddressing=ipv4
 DHCP=yes
diff --git a/meta-arago-distro/recipes-core/systemd/systemd/60-usb.network b/meta-arago-distro/recipes-core/systemd/systemd/60-usb.network
index dbba1898..73e5587c 100644
--- a/meta-arago-distro/recipes-core/systemd/systemd/60-usb.network
+++ b/meta-arago-distro/recipes-core/systemd/systemd/60-usb.network
@@ -2,4 +2,5 @@ 
 Name=usb*
 
 [Network]
+LinkLocalAddressing=ipv4
 DHCP=yes