On Wed, Nov 13, 2024 at 08:30:40AM +0000, Richard Bostrom wrote: > I have a static ip using this configuration in my hostname.interface > inet 192.168.1.240 255.255.255.0 > > It wont allow for internet access. I have an openbsd book but I cannot find > the right syntax.
The syntax looks OK. Assuming the address is valid for the local network and the chosen address is not already in use, I would suspect wrong filename or permissions. Interface config files are supposed to be in /etc/, with a name of hostname.$interfacename where $interfacename is the interface name as it turns up in your dmesg, here em1: em1 at pci3 dev 0 function 0 "Intel I210" rev 0x03: msi, address 00:25:90:47:88:8c and the configuration is stored in $ ls -l /etc/hostname.em1 -rw-r----- 1 root wheel 207 Jul 17 2023 /etc/hostname.em1 Hope this helps. All the best, Peter -- Peter N. M. Hansteen, member of the first RFC 1149 implementation team https://bsdly.blogspot.com/ https://www.bsdly.net/ https://www.nuug.no/ "Remember to set the evil bit on all malicious network traffic" delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.