The OpenBSD brconfig utility is used for user-space bridge administration. Consult the man page for details.
Example 5-23 shows the interface status before bridge initialization, Example 5-24 shows the bridge configuration commands, and Examples 5-25 through 5-27 show the resulting status information.
[root@ganymed:~#] ifconfig ?A
...
bridge0: flags=0<> mtu 1500
bridge1: flags=0<> mtu 1500
...
[root@ganymed:~#] brconfig bridge0 add ne5 [root@ganymed:~#] brconfig bridge0 add ne4 [root@ganymed:~#] brconfig bridge0 up
[root@ganymed:~#] ifconfig ?A
...
bridge0: flags=41<UP,RUNNING> mtu 1500
bridge1: flags=0<> mtu 1500
...
[root@ganymed:~#] brconfig bridge0 addr
00:05:9a:5b:23:fc ne5 1 flags=0<>
00:10:5a:c4:2c:04 ne4 1 flags=0<>
[root@ganymed:~#] brconfig -a
bridge0: flags=41<UP,RUNNING>
Configuration:
priority 32768 hellotime 2 fwddelay 15 maxage 15
Interfaces:
ne4 flags=3<LEARNING,DISCOVER>
port 2 priority 128
ne5 flags=3<LEARNING,DISCOVER>
port 3 priority 128
Addresses (max cache: 100, timeout: 240):
00:05:9a:5b:23:fc ne5 1 flags=0<>
00:10:5a:c4:2c:04 ne4 1 flags=0<>