Saturday, August 26, 2006

using trunk(4) interface in openbsd

In OpenBSD you can use trunk(4) interface for creating link aggregation and link failover.

Introduction
The trunk(4) interface support was added in OpenBSD since 3.9 version (last release at present moment) for allowing link aggregation and link failover. One virtual trunk(4) interface can be created from multiple network interfaces.

Example
Simple example, creating failover trunk, using two Gigabit Ethernet interfaces and one wireless interface:

# ifconfig bge0 up
# ifconfig bge1 up
# ifconfig ath0 nwid test_network up
# ifconfig trunk0 trunkproto failover trunkport bge0 trunkport bge1 trunkport ath0 192.168.0.1 netmask 255.255.255.0
Of course, in this example, loadbalance also can be used.

Links