xref: /freebsd/share/man/man4/bridge.4 (revision 1ddff51060ad759e35dcc4716b0bdcdb40255862)
1.\"
2.\" SPDX-License-Identifier: BSD-4-Clause
3.\"
4.\"	$NetBSD: bridge.4,v 1.5 2004/01/31 20:14:11 jdc Exp $
5.\"
6.\" Copyright 2001 Wasabi Systems, Inc.
7.\" All rights reserved.
8.\"
9.\" Written by Jason R. Thorpe for Wasabi Systems, Inc.
10.\"
11.\" Redistribution and use in source and binary forms, with or without
12.\" modification, are permitted provided that the following conditions
13.\" are met:
14.\" 1. Redistributions of source code must retain the above copyright
15.\"    notice, this list of conditions and the following disclaimer.
16.\" 2. Redistributions in binary form must reproduce the above copyright
17.\"    notice, this list of conditions and the following disclaimer in the
18.\"    documentation and/or other materials provided with the distribution.
19.\" 3. All advertising materials mentioning features or use of this software
20.\"    must display the following acknowledgement:
21.\"	This product includes software developed for the NetBSD Project by
22.\"	Wasabi Systems, Inc.
23.\" 4. The name of Wasabi Systems, Inc. may not be used to endorse
24.\"    or promote products derived from this software without specific prior
25.\"    written permission.
26.\"
27.\" THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``AS IS'' AND
28.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
29.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
30.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL WASABI SYSTEMS, INC
31.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
32.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
33.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
34.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
35.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
36.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37.\" POSSIBILITY OF SUCH DAMAGE.
38.\"
39.Dd October 13, 2025
40.Dt IF_BRIDGE 4
41.Os
42.Sh NAME
43.Nm if_bridge
44.Nd network bridge device
45.Sh SYNOPSIS
46To compile this driver into the kernel,
47place the following line in your
48kernel configuration file:
49.Bd -ragged -offset indent
50.Cd "device if_bridge"
51.Ed
52.Pp
53Alternatively, to load the driver as a
54module at boot time, place the following lines in
55.Xr loader.conf 5 :
56.Bd -literal -offset indent
57if_bridge_load="YES"
58bridgestp_load="YES"
59.Ed
60.Sh DESCRIPTION
61The
62.Nm
63driver creates a logical link between two or more IEEE 802 networks
64that use the same (or
65.Dq "similar enough" )
66framing format.
67For example, it is possible to bridge Ethernet and 802.11 networks together,
68but it is not possible to bridge Ethernet and Token Ring together.
69.Pp
70Each
71.Nm
72interface is created at runtime using interface cloning.
73This is
74most easily done with the
75.Xr ifconfig 8
76.Cm create
77command or using the
78.Va cloned_interfaces
79variable in
80.Xr rc.conf 5 .
81.Pp
82When it is created, the
83.Nm
84interface gets assigned a link (MAC) address in the range of universally
85administered addresses reserved for the FreeBSD Foundation by hashing
86the host UUID, jail name, and the interface name.
87If this fails, a random, locally administered address is generated instead.
88This address is guaranteed to be unique
89.Em only
90across all
91.Nm
92interfaces on the local machine.
93Thus you can theoretically have two bridges on different machines with
94the same link addresses.
95The address can be changed by assigning the desired link address using
96.Xr ifconfig 8 .
97.Pp
98If
99.Xr sysctl 8
100node
101.Va net.link.bridge.inherit_mac
102has a non-zero value, the newly created bridge will inherit the MAC
103address from its first member instead of choosing a random link-level
104address.
105This will provide more predictable bridge MAC addresses without any
106additional configuration, but currently this feature is known to break
107some L2 protocols, for example PPPoE that is provided by
108.Xr ng_pppoe 4
109and
110.Xr ppp 8 .
111Currently this feature is considered as experimental and is turned off
112by default.
113.Pp
114A bridge can be used to provide several services, such as a simple
115802.11-to-Ethernet bridge for wireless hosts, or traffic isolation.
116.Pp
117A bridge works like a switch, forwarding traffic from one interface
118to another.
119Multicast and broadcast packets are always forwarded to all
120interfaces that are part of the bridge.
121For unicast traffic, the bridge learns which MAC addresses are associated
122with which interfaces and will forward the traffic selectively.
123.Pp
124By default the bridge logs MAC address port flapping to
125.Xr syslog 3 .
126This behavior can be disabled by setting the
127.Xr sysctl 8
128variable
129.Va net.link.bridge.log_mac_flap
130to
131.Li 0 .
132.Pp
133All the bridged member interfaces need to be up
134in order to pass network traffic.
135These can be enabled using
136.Xr ifconfig 8
137or
138.Va ifconfig_ Ns Ao Ar interface Ac Ns Li ="up"
139in
140.Xr rc.conf 5 .
141.Pp
142The MTU of the first member interface to be added is used as the bridge MTU.
143All additional members will have their MTU changed to match.
144If the MTU of a bridge is changed after its creation, the MTU of all member
145interfaces is also changed to match.
146.Pp
147The TOE, TSO, TXCSUM and TXCSUM6 capabilities on all interfaces added to the
148bridge are disabled if any of the interfaces do not support/enable them.
149The LRO capability is always disabled.
150All the capabilities are restored when the interface is removed from the bridge.
151Changing capabilities at run-time may cause NIC reinit and a link flap.
152.Pp
153The bridge supports
154.Dq monitor mode ,
155where the packets are discarded after
156.Xr bpf 4
157processing, and are not processed or forwarded further.
158This can be used to multiplex the input of two or more interfaces into a single
159.Xr bpf 4
160stream.
161This is useful for reconstructing the traffic for network taps
162that transmit the RX/TX signals out through two separate interfaces.
163.Pp
164To allow the host to communicate with bridge members, IP addresses
165should be assigned to the
166.Nm
167interface itself, not to the bridge's member interfaces.
168Attempting to assign an IP address to a bridge member interface, or add
169a member interface with an assigned IP address to a bridge, will return
170an
171.Dv EINVAL
172.Dq ( "Invalid argument" )
173error.
174For compatibility with older releases where this was permitted, setting
175the
176.Xr sysctl 8
177variable
178.Va net.link.bridge.member_ifaddrs
179to 1 will permit this configuration.
180This sysctl variable will be removed in
181.Fx 16.0.
182.Sh IPV6 SUPPORT
183.Nm
184supports the
185.Li AF_INET6
186address family on bridge interfaces.
187The following
188.Xr rc.conf 5
189variable configures an IPv6 link-local address on
190.Li bridge0
191interface:
192.Bd -literal -offset indent
193ifconfig_bridge0_ipv6="inet6 auto_linklocal"
194.Ed
195.Pp
196However, the
197.Li AF_INET6
198address family has a concept of scope zone.
199Bridging multiple interfaces changes the zone configuration because
200multiple links are merged to each other and form a new single link
201while the member interfaces still work individually.
202This means each member interface still has a separate link-local scope
203zone and the
204.Nm
205interface has another single,
206aggregated link-local scope zone at the same time.
207This situation is clearly against the description
208.Qq zones of the same scope cannot overlap
209in Section 5,
210RFC 4007.
211Although it works in most cases,
212it can cause some counterintuitive or undesirable behavior in some
213edge cases when both, the
214.Nm
215interface and one of the member interfaces, have an IPv6 address
216and applications use both of them.
217.Pp
218To prevent this situation,
219.Nm
220checks whether a link-local scoped IPv6 address is configured on
221a member interface to be added and the
222.Nm
223interface.
224When the
225.Nm
226interface has IPv6 addresses,
227IPv6 addresses on the member interface will be automatically removed
228before the interface is added.
229.Pp
230This behavior can be disabled by setting
231.Xr sysctl 8
232variable
233.Va net.link.bridge.allow_llz_overlap
234to
235.Li 1 .
236.Pp
237Note that
238.Li ACCEPT_RTADV
239and
240.Li AUTO_LINKLOCAL
241interface flags are not enabled by default on
242.Nm
243interfaces even when
244.Va net.inet6.ip6.accept_rtadv
245and/or
246.Va net.inet6.ip6.auto_linklocal
247is set to
248.Li 1 .
249.Sh SPANNING TREE
250The
251.Nm
252driver implements the Rapid Spanning Tree Protocol (RSTP or 802.1w) with
253backwards compatibility with the legacy Spanning Tree Protocol (STP).
254Spanning Tree is used to detect and remove loops in a network topology.
255.Pp
256RSTP provides faster spanning tree convergence than legacy STP, the protocol
257will exchange information with neighbouring switches to quickly transition to
258forwarding without creating loops.
259.Pp
260The code will default to RSTP mode but will downgrade any port connected to a
261legacy STP network so is fully backward compatible.
262A bridge can be forced to operate in STP mode without rapid state transitions
263via the
264.Va proto
265command in
266.Xr ifconfig 8 .
267.Pp
268The bridge can log STP port changes to
269.Xr syslog 3
270by setting the
271.Va net.link.bridge.log_stp
272node using
273.Xr sysctl 8 .
274.Sh VLAN SUPPORT
275Virtual LANs (VLANs), defined in the IEEE 802.1Q standard, allow traffic
276on a bridge to be segregated into separate logical networks which cannot
277communicate with each other.
278For example, two interfaces in VLAN 10 would be able to communicate
279with each other, but not with another interface in VLAN 20.
280.Pp
281Each VLAN is identified by a number between 1 and 4094 inclusive.
282By default, all traffic on the bridge is assigned to "VLAN 0",
283a pseudo-VLAN used for historical compatibility.
284When VLANs are in use on a bridge, it is recommended to explicitly
285assign all traffic to a VLAN rather than using VLAN 0.
286.Pp
287The bridge implements Independent VLAN Learning (IVL), meaning that
288host addresses are learned separately for each VLAN, and the same host
289address may exist on several different ports in different VLANs.
290.Pp
291If a
292.Xr vlan 4
293interface is configured on an interface which is also an
294.Nm
295member interface, all tagged frames will be processed by the
296.Xr vlan 4
297interface and will not be visible to the bridge.
298This configuration is not recommended and may be unsupported in a
299future release.
300.Ss Tagged and untagged traffic
301Incoming frames on a member interface may be either tagged or untagged.
302Tagged frames contain an 802.1Q header indicating which VLAN the
303frame belongs to, while untagged frames do not.
304When a tagged frame is received, the frame is automatically assigned to
305the VLAN in the tag (subject to any configured VLAN access list),
306while untagged frames are assigned to the interface's configured
307Port VLAN ID (PVID), or to VLAN 0 if no PVID is configured.
308.Ss Assigning interfaces to VLANs
309An interface's PVID may be configured using the
310.Xr ifconfig 8
311.Cm ifuntagged
312command:
313.Bd -literal -offset indent
314ifconfig bridge0 ifuntagged ix0 10
315.Ed
316.Pp
317Or by using the
318.Cm untagged
319option to
320.Cm addm :
321.Bd -literal -offset indent
322ifconfig bridge0 addm ix0 untagged 10
323.Ed
324.Pp
325This will assign all untagged traffic received on the interface to the
326specified VLAN, and any traffic transmitted on the interface in this
327VLAN will have its VLAN tag (if present) removed.
328Conversely, any traffic transmitted on the interface in a different
329VLAN will have a tag added, to allow the remote system to assign the
330traffic to the appropriate VLAN.
331.Ss Host communication in a VLAN
332Sometimes it is useful to allow the host itself to communicate in a VLAN,
333for example to provide routing to other hosts in the VLAN.
334To do this, create a
335.Xr vlan 4
336interface on top of the
337.Nm
338interface with the appropriate VLAN tag.
339For example, to allow the host to communicate in VLAN 10:
340.Bd -literal -offset indent
341ifconfig bridge0.10 create inet6 2001:db8::1/64
342.Ed
343.Ss Configuring the VLAN access list (VLAN filtering)
344For historical reasons, the default
345.Nm
346configuration allows all interfaces to send tagged traffic for any VLAN,
347meaning that VLANs do not provide security separation.
348To restrict which interfaces may communicate in which VLANs,
349enable VLAN filtering on the bridge:
350.Bd -literal -offset indent
351ifconfig bridge0 vlanfilter
352.Ed
353.Pp
354This has the following effects on bridge members:
355.Bl -bullet -offset indent
356.It
357No untagged frames will be accepted from a member interface unless
358the interface has a PVID configured.
359.It
360No tagged frames will be accepted from a member interface unless
361the VLAN identifier is present in the interface's VLAN access list.
362.It
363Frames with stacked tags (Q-in-Q) will not be accepted from a
364member interface unless the
365.Cm qinq
366option (see below) has been configured for that member.
367.El
368.Pp
369To configure the VLAN access list, use the
370.Xr ifconfig 8
371.Cm iftagged ,
372.Cm +iftagged
373or
374.Cm -iftagged
375commands.
376For example, to allow an interface to communicate in VLANs 10, 20,
377and any VLAN from 100 to 199:
378.Bd -literal -offset indent
379ifconfig bridge0 iftagged ix0 10,20,100-199
380.Ed
381.Ss IEEE 802.1ad (Q-in-Q) configuration
382IEEE 802.1ad, also called Q-in-Q or
383.Dq tag stacking ,
384allows a single Ethernet frame to contain multiple tags.
385This allows one Ethernet network to transport traffic between endpoints
386using its own VLAN tags without interfering with any pre-existing tags,
387and is often used in service provider networks to provide
388.Dq virtual wire
389Ethernet services.
390.Pp
391When VLAN filtering is enabled,
392.Nm
393does not permit member interfaces to send Q-in-Q frames, because in
394certain configuration this allows
395.Dq VLAN-hopping
396attacks on the bridge.
397For example, consider a bridge with port ix0 configured as a tagged
398port in VLAN 10, and port ix1 configured as untagged in VLAN 10 and
399tagged in VLAN 20.
400If ix0 is allowed to send Q-in-Q frames, then it can send a frame with
401two tags: one for VLAN 10, followed by one for VLAN 20.
402When the bridge forwards the frame to ix1, it will strip the VLAN tag
403for VLAN 10, then forward the frame to ix1 with the tag for VLAN 20
404intact, effectively allowing ix1 to send traffic on VLAN 20 even
405though the bridge configuration should not permit that.
406.Pp
407To permit an interface to send Q-in-Q frames, set the
408.Xr ifconfig 8
409.Cm qinq
410flag on the interface.
411This is only required on the interface which will send Q-in-Q frames,
412not the interface receiving the frames.
413.Pp
414Alternatively, set the
415.Cm defqinq
416flag on the bridge itself to enable Q-in-Q for all newly-added
417interfaces by default.
418.Sh PACKET FILTERING
419Packet filtering can be used with any firewall package that hooks in via the
420.Xr pfil 9
421framework.
422When filtering is enabled, bridged packets will pass through the filter
423inbound on the originating interface, on the bridge interface and outbound on
424the appropriate interfaces.
425Either stage can be disabled.
426The filtering behavior can be controlled using
427.Xr sysctl 8 :
428.Bl -tag -width indent
429.It Va net.link.bridge.pfil_onlyip
430Controls the handling of non-IP packets which are not passed to
431.Xr pfil 9 .
432Set to
433.Li 1
434to only allow IP packets to pass (subject to firewall rules), set to
435.Li 0
436to unconditionally pass all non-IP Ethernet frames.
437.It Va net.link.bridge.pfil_member
438Set to
439.Li 1
440to enable filtering on the incoming and outgoing member interfaces, set
441to
442.Li 0
443to disable it.
444.It Va net.link.bridge.pfil_bridge
445Set to
446.Li 1
447to enable filtering on the bridge interface, set
448to
449.Li 0
450to disable it.
451.It Va net.link.bridge.pfil_local_phys
452Set to
453.Li 1
454to additionally filter on the physical interface for locally destined packets.
455Set to
456.Li 0
457to disable this feature.
458.It Va net.link.bridge.ipfw
459Set to
460.Li 1
461to enable layer2 filtering with
462.Xr ipfirewall 4 ,
463set to
464.Li 0
465to disable it.
466This needs to be enabled for
467.Xr dummynet 4
468support.
469When
470.Va ipfw
471is enabled,
472.Va pfil_bridge
473and
474.Va pfil_member
475will be disabled so that IPFW
476is not run twice; these can be re-enabled if desired.
477.It Va net.link.bridge.ipfw_arp
478Set to
479.Li 1
480to enable layer2 ARP filtering with
481.Xr ipfirewall 4 ,
482set to
483.Li 0
484to disable it.
485Requires
486.Va ipfw
487to be enabled.
488.El
489.Pp
490ARP and REVARP packets are forwarded without being filtered and others
491that are not IP nor IPv6 packets are not forwarded when
492.Va pfil_onlyip
493is enabled.
494IPFW can filter Ethernet types using
495.Cm mac-type
496so all packets are passed to
497the filter for processing.
498.Pp
499The packets originating from the bridging host will be seen by
500the filter on the interface that is looked up in the routing
501table.
502.Pp
503The packets destined to the bridging host will be seen by the filter
504on the interface with the MAC address equal to the packet's destination
505MAC.
506There are situations when some of the bridge members are sharing
507the same MAC address (for example the
508.Xr vlan 4
509interfaces: they are currently sharing the
510MAC address of the parent physical interface).
511It is not possible to distinguish between these interfaces using
512their MAC address, excluding the case when the packet's destination
513MAC address is equal to the MAC address of the interface on which
514the packet was entered to the system.
515In this case the filter will see the incoming packet on this
516interface.
517In all other cases the interface seen by the packet filter is chosen
518from the list of bridge members with the same MAC address and the
519result strongly depends on the member addition sequence and the
520actual implementation of
521.Nm .
522It is not recommended to rely on the order chosen by the current
523.Nm
524implementation since it may change in the future.
525.Pp
526The previous paragraph is best illustrated with the following
527pictures.
528Let
529.Bl -bullet
530.It
531the MAC address of the incoming packet's destination is
532.Nm nn:nn:nn:nn:nn:nn ,
533.It
534the interface on which packet entered the system is
535.Nm ifX ,
536.It
537.Nm ifX
538MAC address is
539.Nm xx:xx:xx:xx:xx:xx ,
540.It
541there are possibly other bridge members with the same MAC address
542.Nm xx:xx:xx:xx:xx:xx ,
543.It
544the bridge has more than one interface that are sharing the
545same MAC address
546.Nm yy:yy:yy:yy:yy:yy ;
547we will call them
548.Nm vlanY1 ,
549.Nm vlanY2 ,
550etc.
551.El
552.Pp
553If the MAC address
554.Nm nn:nn:nn:nn:nn:nn
555is equal to
556.Nm xx:xx:xx:xx:xx:xx
557the filter will see the packet on interface
558.Nm ifX
559no matter if there are any other bridge members carrying the same
560MAC address.
561But if the MAC address
562.Nm nn:nn:nn:nn:nn:nn
563is equal to
564.Nm yy:yy:yy:yy:yy:yy
565then the interface that will be seen by the filter is one of the
566.Nm vlanYn .
567It is not possible to predict the name of the actual interface
568without the knowledge of the system state and the
569.Nm
570implementation details.
571.Pp
572This problem arises for any bridge members that are sharing the same
573MAC address, not only to the
574.Xr vlan 4
575ones: they were taken just as an example of such a situation.
576So if one wants to filter the locally destined packets based on
577their interface name, one should be aware of this implication.
578The described situation will appear at least on the filtering bridges
579that are doing IP-forwarding; in some of such cases it is better
580to assign the IP address only to the
581.Nm
582interface and not to the bridge members.
583Enabling
584.Va net.link.bridge.pfil_local_phys
585will let you do the additional filtering on the physical interface.
586.Sh NETMAP
587.Xr netmap 4
588applications may open a bridge interface in emulated mode.
589The netmap application will receive all packets which arrive from member
590interfaces.
591In particular, packets which would otherwise be forwarded to another
592member interface will be received by the netmap application.
593.Pp
594When the
595.Xr netmap 4
596application transmits a packet to the host stack via the bridge interface,
597.Nm
598receive it and attempts to determine its
599.Ql source
600interface by looking up the source MAC address in the interface's learning
601tables.
602Packets for which no matching source interface is found are dropped and the
603input error counter is incremented.
604If a matching source interface is found,
605.Nm
606treats the packet as though it was received from the corresponding interface
607and handles it normally without passing the packet back to
608.Xr netmap 4 .
609.Sh EXAMPLES
610The following when placed in the file
611.Pa /etc/rc.conf
612will cause a bridge called
613.Dq Li bridge0
614to be created, and will add the interfaces
615.Dq Li wlan0
616and
617.Dq Li fxp0
618to the bridge, and then enable packet forwarding.
619Such a configuration could be used to implement a simple
620802.11-to-Ethernet bridge (assuming the 802.11 interface is
621in ad-hoc mode).
622.Bd -literal -offset indent
623cloned_interfaces="bridge0"
624ifconfig_bridge0="addm wlan0 addm fxp0 up"
625.Ed
626.Pp
627For the bridge to forward packets,
628all member interfaces and the bridge need to be up.
629The above example would also require:
630.Bd -literal -offset indent
631create_args_wlan0="wlanmode hostap"
632ifconfig_wlan0="up ssid my_ap mode 11g"
633ifconfig_fxp0="up"
634.Ed
635.Pp
636The following will cause a bridge to be created with two VLANs,
63710 and 20, where the
638.Dq Li em
639interfaces can only communicate in their assigned VLANs,
640while
641.Dq Li ix0
642is a trunk port which can communicate in either VLAN:
643.Bd -literal -offset indent
644cloned_interfaces="bridge0"
645ifconfig_bridge0="vlanfilter \e
646	addm em0 untagged 10 \e
647	addm em1 untagged 10 \e
648	addm em2 untagged 20 \e
649	addm em3 untagged 20 \e
650	addm ix0 tagged 10,20"
651ifconfig_em0="up"
652ifconfig_em1="up"
653ifconfig_em2="up"
654ifconfig_em3="up"
655ifconfig_ix0="up"
656.Ed
657.Pp
658The previous example could be extended to allow the host to
659communicate in VLANs 10 and 20:
660.Bd -literal -offset indent
661vlans_bridge0="10 20"
662ifconfig_bridge0_10_ipv6="inet6 2001:db8:0:10::1/64"
663ifconfig_bridge0_20_ipv6="inet6 2001:db8:0:20::1/64"
664.Ed
665.Pp
666Consider a system with two 4-port Ethernet boards.
667The following will cause a bridge consisting of all 8 ports with
668Rapid Spanning Tree enabled to be created:
669.Bd -literal -offset indent
670ifconfig bridge0 create
671ifconfig bridge0 \e
672    addm fxp0 stp fxp0 \e
673    addm fxp1 stp fxp1 \e
674    addm fxp2 stp fxp2 \e
675    addm fxp3 stp fxp3 \e
676    addm fxp4 stp fxp4 \e
677    addm fxp5 stp fxp5 \e
678    addm fxp6 stp fxp6 \e
679    addm fxp7 stp fxp7 \e
680    up
681.Ed
682.Pp
683The bridge can be used as a regular host interface at the same time as bridging
684between its member ports.
685In this example, the bridge connects em0 and em1, and will receive its IP
686address through DHCP:
687.Bd -literal -offset indent
688cloned_interfaces="bridge0"
689ifconfig_bridge0="addm em0 addm em1 DHCP"
690ifconfig_em0="up"
691ifconfig_em1="up"
692.Ed
693.Pp
694The bridge can tunnel Ethernet across an IP internet using the EtherIP
695protocol.
696This can be combined with
697.Xr ipsec 4
698to provide an encrypted connection.
699Create a
700.Xr gif 4
701interface and set the local and remote IP addresses for the
702tunnel, these are reversed on the remote bridge.
703.Bd -literal -offset indent
704ifconfig gif0 create
705ifconfig gif0 tunnel 1.2.3.4 5.6.7.8 up
706ifconfig bridge0 create
707ifconfig bridge0 addm fxp0 addm gif0 up
708.Ed
709.Sh SEE ALSO
710.Xr gif 4 ,
711.Xr ipf 4 ,
712.Xr ipfw 4 ,
713.Xr netmap 4 ,
714.Xr pf 4 ,
715.Xr vlan 4 ,
716.Xr ifconfig 8
717.Sh HISTORY
718The
719.Nm
720driver first appeared in
721.Fx 6.0 .
722.Sh AUTHORS
723.An -nosplit
724The
725.Nm bridge
726driver was originally written by
727.An Jason L. Wright Aq Mt jason@thought.net
728as part of an undergraduate independent study at the University of
729North Carolina at Greensboro.
730.Pp
731This version of the
732.Nm
733driver has been heavily modified from the original version by
734.An Jason R. Thorpe Aq Mt thorpej@wasabisystems.com .
735.Pp
736Rapid Spanning Tree Protocol (RSTP) support was added by
737.An Andrew Thompson Aq Mt thompsa@FreeBSD.org .
738.Sh BUGS
739The
740.Nm
741driver currently supports only Ethernet and Ethernet-like (e.g., 802.11)
742network devices, which can be configured with the same MTU size as the bridge
743device.
744