Skip to content

Instantly share code, notes, and snippets.

View NathanAdhitya's full-sized avatar

Nathan Adhitya NathanAdhitya

View GitHub Profile
@NathanAdhitya
NathanAdhitya / lldpd-quick-setup.sh
Last active February 22, 2025 06:53
Debian (and derivatives) quick lldpd idempotent setup script. Set interfaces to en* only and enable other protocols. Tested on Proxmox VE 8.3.
#!/bin/bash
# Credits: https://github.com/abdellbar1/ProxLLDPConfig
apt-get update
apt-get install -y lldpd
echo 'DAEMON_ARGS="-c -s -e"' > /etc/default/lldpd
echo 'configure system interface pattern en*' > /etc/lldpd.d/if.conf
systemctl restart lldpd
systemctl enable lldpd