How to share dhcpcd.conf amongst multiple Pis - Raspberry Pi Forums


hello,

in charge of maintaining decent amount of raspberry pis on same network. trying make these pis easier maintain creating master configuration files in git repo. 1 example of master udev rules file. have shared same udev rules file in git repo , add symlink file in repo /etc/udev/rules.d/. works have keep 1 master udev rules file.

same network configuration files. have pool of static ip addresses have been given me use of pis. use dhcpcd.conf configure network interfaces on pis so:

code: select all

interface eth0      static ip_address=192.168.0.10/24      static routers=192.168.0.1      static domain_name_servers=192.168.0.1

way use mac address of pi assign own static ip address. similar way profile keyword supposed work seems related mac address of router i'm connecting to.
arping address [address]
dhcpcd arping each address in order before attempting dhcp.
if address found, select replying hardware
address profile, otherwise ip address. example:

code: select all

                   interface bge0                    arping 192.168.0.1                     # specific 192.168.0.1 network                    profile dd:ee:aa:dd:bb:ee                    static ip_address=192.168.0.10/24                     # generic 192.168.0.1 network                    profile 192.168.0.1                    static ip_address=192.168.0.98/24
know typically handled on dhcp server not have access , handle myself.

the answer predictable interface names. can have single /etc/dhcpcd.conf every rpi on network (which precisely i've done week).

there's new option in raspi-config enable predictable names. names built "enx" or "wlx" concatenated mac-48 address interface.


raspberrypi



Comments

Popular posts from this blog

Help with Missing Filename Error?

more info - Joomla! Forum - community, help and support

Using phone battery to power a plane.