p To use .Nm bridge , the administrator must first create the interface and configure the bridge parameters. The bridge is created using the .Xr ifconfig 8 .Cm create subcommand. The learning and forwarding behavior and other parameters of a bridge are configured by the .Xr brconfig 8 utility.
p A bridge can be used to provide several services, such as a simple 802.11-to-Ethernet bridge for wireless hosts, and traffic isolation.
p A bridge works like a switch, forwarding traffic from one interface to another. Multicast and broadcast packets are always forwarded to all interfaces that are part of the bridge. For unicast traffic, the bridge learns which MAC addresses are associated with which interfaces and will forward the traffic selectively.
p The .Nm driver implements the IEEE 802.1D Spanning Tree protocol (STP). Spanning Tree is used to detect and remove loops in a network topology.
p When filtering is enabled, bridged packets will pass through the filter inbound on the originating interface and outbound on the appropriate interfaces. ARP and REVARP packets are forwarded without being filtered and others that are not IP nor IPv6 packets are not forwarded when filtering is enabled.
p Note that packets to and from the bridging host will be seen by the filter on the interface with the appropriate address configured as well as on the interface on which the packet arrives or departs.
p The .Nm driver will enable passing of VLAN tagged packets automatically if the underlying interfaces support it. This is to facilitate XEN network configurations with .Xr xennet 4 .
p It is not possible to assign an IP address directly to the .Nm interface. Instead, assign an IP address to a .Xr vether 4 interface which can be added to the bridge. .Sh SEE ALSO .Xr l2tp 4 , .Xr options 4 , .Xr xennet 4 , .Xr vether 4 , .Xr brconfig 8 , .Xr ipf 8 .Sh HISTORY The .Nm driver first appeared in .Nx 1.6 . .Sh AUTHORS .An -nosplit The .Nm bridge driver was originally written by .An Jason L. Wright .Aq jason (at] thought.net as part of an undergraduate independent study at the University of North Carolina at Greensboro.
p This version of the .Nm driver has been heavily modified from the original version by .An Jason R. Thorpe .Aq thorpej (at] wasabisystems.com . .Sh BUGS The .Nm driver currently supports only Ethernet and Ethernet-like (e.g. 802.11) network devices, with exactly the same interface MTU size as the bridge device.
p The .Nm driver currently does not support snooping via .Xr bpf 4 .