rss logo

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
Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Contact :

contact mail address