OpenBSD Network Cheat Sheet

Mindwatering Incorporated

Author: Tripp Black

Created: 10/10/2007 at 12:39 PM

 

Category:
Linux
Other

Change Password:
passwd

Setup IP Address:
netconfig
- if not loaded do following:
type "ifconfig -a" to get network card interface (eg. nl0 or pcn0)
edit /etc/resolv.conf and add nameservers
(if current server is dns server than add it to first line - e.g. search mindwatering.com, (newline), nameserver=192.168.1.2)
edit /etc/rc.conf
(e.g. gateway_enabled="YES", (newline), defaultrouter=192.168.1.1, (newline), ifconfig_pcn0="inet 192.168.1.5 netmask 255.255.255.0")
--- note: if this doesn't work, then create/update mygate with gateway, and find hostname.pcn0 and add inet section in quotes above)
edit /etc/myname and enter fqdn.

Shutdown/Reboot:
halt, reboot, or init 0


previous page

×