Lab 5-3: OpenBSD Bridging and Spanning Tree

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.

Example 5-23. OpenBSD Bridge Interfaces Before Initialization

[root@ganymed:~#] ifconfig ?A

...

bridge0: flags=0<> mtu 1500

bridge1: flags=0<> mtu 1500

...


Example 5-24. OpenBSD Bridge Configuration

[root@ganymed:~#] brconfig bridge0 add ne5

[root@ganymed:~#] brconfig bridge0 add ne4

[root@ganymed:~#] brconfig bridge0 up


Example 5-25. OpenBSD Bridge Interfaces After Initialization

[root@ganymed:~#] ifconfig ?A

...

bridge0: flags=41<UP,RUNNING> mtu 1500

bridge1: flags=0<> mtu 1500

...


Example 5-26. OpenBSD Bridge Group Members

[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<>


Example 5-27. OpenBSD Bridge Detail Information

[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<>