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

vishnu singh <[email protected]>
Newsgroups org.yoctoproject.lists.meta-arago
Message-ID <[email protected]>
From: Vishnu Singh <[email protected]>

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 <[email protected]>
---
 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 --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
-- 
2.50.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.