Skip to content

Instantly share code, notes, and snippets.

@kwilczynski
Created March 21, 2021 09:36
Show Gist options
  • Save kwilczynski/0eaf0bcc7022fa2625c8cf3825085318 to your computer and use it in GitHub Desktop.
Save kwilczynski/0eaf0bcc7022fa2625c8cf3825085318 to your computer and use it in GitHub Desktop.
Disable dhclient listening on IPv6 on Debian or Ubuntu
allow-hotplug eth0
iface eth0 inet manual
up /sbin/dhclient -4 -v -i -pf /run/dhclient.${IFACE}.pid \
-lf /var/lib/dhcp/dhclient.${IFACE}.leases \
-I ${IFACE}
down /sbin/dhclient -4 -v -i -pf /run/dhclient.${IFACE}.pid \
-lf /var/lib/dhcp/dhclient.${IFACE}.leases \
-I ${IFACE} \
-r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment