mirror of
https://github.com/systemd/systemd.git
synced 2026-06-24 08:47:49 +00:00
Links with link-local-only communication are typically peer-to-peer links between two laptops or similar. In such cases it makes sense to be able to see which device one is specifically connected to, hence let's just enable LLDP for it. This doesn't leak any data really, given that this is inherently local, and typically only used between isolated systems that are under the same user's possession. Background: I recently connected multiple laptops via thunderbolt networking and was kinda annoyed not being able to see what system I was actually talking to. (Also, the file touched here is an example only anyway, so even if this would leak too much info, it's not in effect by default)
23 lines
741 B
Plaintext
23 lines
741 B
Plaintext
# SPDX-License-Identifier: MIT-0
|
|
#
|
|
# This example config file is installed as part of systemd.
|
|
# It may be freely copied and edited (following the MIT No Attribution license).
|
|
#
|
|
# To use the file, one of the following methods may be used:
|
|
# 1. add a symlink from /etc/systemd/network to the current location of this file,
|
|
# 2. copy the file into /etc/systemd/network or one of the other paths checked
|
|
# by systemd-networkd and edit it there.
|
|
# This file should not be edited in place, because it'll be overwritten on upgrades.
|
|
|
|
# Enable IPv4LL + IPv6LL (but no DHCP/IPv6RA) for local links
|
|
[Match]
|
|
Type=ether
|
|
Property=ID_NET_AUTO_LINK_LOCAL_ONLY=1
|
|
|
|
[Network]
|
|
LinkLocalAddressing=yes
|
|
IPv6AcceptRA=no
|
|
MulticastDNS=yes
|
|
LLDP=yes
|
|
EmitLLDP=yes
|