On 2023-03-01, Raimo Niskanen <raimo+open...@erix.ericsson.se> wrote: > On Tue, Feb 28, 2023 at 02:35:18PM +0100, Claudio Jeker wrote: >> On Tue, Feb 28, 2023 at 03:30:18PM +0200, Cristian Danila wrote: >> > Dear Misc, >> > >> > I would really appreciate if more experienced members of you >> > could suggest if there is a dedicated place or recommended >> > place for OpenBSD where static arp entries should be stored. >> > I found many answers over the internet, in some books it is >> > mentioning /etc/netstart. >> > Also on very old thread fro OpenBSD I see it was discussed at >> > some point a possible idea like /etc/arp.conf >> > https://marc.info/?l=openbsd-bugs&m=103773290509612&w=2 >> > In the same thread it was mentioned rc.conf but definitly rc.conf >> > is a file that states that is should not be edited. >> > Or maybe rc.conf.local as an alternative? >> > >> > Where do you recommend storing static arp entries? >> >> To be honest I never had the need to store static arp entries. So for me >> the best place is /dev/null. Now if I really had to choose I would select >> the interface's hostname.if file to add static entries. It is the place >> where the interface gets its network which is the place arp entries hang >> off of. It will all be configured together and immediatly usable. > > Please exuse me if this is a stupid counter question, > but isn't this what ethers(5) is for?
Not really - you could use it as input to a handrolled script if you wanted, but the main purpose of that file is to lookup addresses/names for ether_ntohost()/ether_hostton(). Like Claudio, if I needed this I'd add ! commands in hostname.if. Usually the only place I'd do MAC enforcement (and then only rarely) would be on switches though. -- Please keep replies on the mailing list.