Updating ip adresses in OpenBSD
For our purposes, the relevant files are called /etc/hostname.em1 and /etc/hostname.em2.
The official doc are here and the faq
Note that the default keyboard in the terminal is US.
-
log in to the router
Username:
root, password:root123 -
Install
nano(a text editor), usingpkg_add nano -
Use
nano /etc/hostname.em1and update ip address (and perhaps) netmask.This is the second interface, where the first
em0is the upload and uses dhcp.Ignore the comments on the first line.
-
Use
nano /etc/hostname.em2and update ip address (and perhaps) netmask.This is the third interface
-
Apply the changes, using
sh /etc/netstart -
Test that it works by pinging internal and external addresses.