Configure network interfaces on OpenBSD

Intro

Configuration

Installing

We need to create a /etc/hostname."interface_name" file for each interface, contening this information :

address_family address netmask broadcast [other options]

Settings

Examples

# echo "192.168.1.1" > /etc/mygate
# echo "dhcp" > /etc/hostname.em0
inet 192.168.1.2 255.255.255.0 NONE
inet 172.21.0.31 255.255.255.0 NONE vlan 10 vlandev em1
# sh /etc/netstart
Licence Creative Commons
This website http://shebangthedolphins.net is licensed to the public under a licence Creative Commons Attribution licence.
Contact :