From b6fa180dc2c33ab1ccab6c36e25f996d49806603 Mon Sep 17 00:00:00 2001 From: Jordan Sokolic Date: Tue, 15 Sep 2020 11:28:55 +0300 Subject: [PATCH] note on dhcpcd in rpi --- docs/rpi.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/rpi.md b/docs/rpi.md index 6630fff..34820c2 100644 --- a/docs/rpi.md +++ b/docs/rpi.md @@ -36,10 +36,20 @@ $ docker save $BUILD_TAG | ssh docker load ``` ## IPv6 -By default Raspbian does not load the kernel module for IPv6 `iptables` on boot. +By default Raspberry Pi OS does not load the kernel module for IPv6 `iptables` on boot. Run `sudo modprobe ip6_tables` to load it immediately. To persist on reboot, run - $ echo 'ip6_tables' | sudo tee /etc/modules-load.d/ip6-tables.conf \ No newline at end of file + $ echo 'ip6_tables' | sudo tee /etc/modules-load.d/ip6-tables.conf + +## DHCP +Raspberry Pi OS ships with a default `dhcpcd` configuration that assigns a DHCP address to every new interface added to the system including virtual ones. + +This is not necessarily what we want. Instead we would like to limit the interfaces `dhcpcd` watches to only the physical ones, i.e., interfaces `eth*` and `wl*`: + +``` +$ echo 'allowinterfaces eth* wl*' | sudo tee -a /etc/dhcpcd.conf +$ sudo dhcpcd -n +``` \ No newline at end of file