Static IP on NetBSD

Edit the /etc/rc.conf file and add:

defaultroute="192.168.1.1"

Create a file ifconfig.nfe0 with the following contents:

192.168.1.188 netmask 255.255.255.0 media autoselect

All IPs and interface names (nfe0) might be different in your case.

To see current settings, use:

# ifconfig