Skip to content

Instantly share code, notes, and snippets.

@NathanAdhitya
Last active February 22, 2025 06:53
Show Gist options
  • Save NathanAdhitya/ae4938cabb336bfefa4a04d996dc9601 to your computer and use it in GitHub Desktop.
Save NathanAdhitya/ae4938cabb336bfefa4a04d996dc9601 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment