How to Set Static IP on #OpenBSD

https://radhitya.id/how-to-set-static-ip-on-openbsd/

Reply to this note

Please Login to reply.

Discussion

Good post. You could save one step doing just

โ€˜โ€™โ€™

# inet 192.168.1.19 0xffffff00 > /etc/hostname.urtwn0

โ€˜โ€™โ€™

And the:

โ€˜โ€™โ€™

$ doas echo 192.168.1.1 >> /etc/mygate

โ€˜โ€™โ€™

Would be better like:

โ€˜โ€™โ€™

$ doas echo 192.168.1.1 > /etc/mygate

โ€˜โ€™โ€™

Just to make sure you donโ€™t end with a multiple lines /etc/mygate