1 .\" $NetBSD: bridge.4,v 1.7 2005/06/23 12:47:38 peter Exp $
3 .\" Copyright 2001 Wasabi Systems, Inc.
4 .\" All rights reserved.
6 .\" Written by Jason R. Thorpe for Wasabi Systems, Inc.
8 .\" Redistribution and use in source and binary forms, with or without
9 .\" modification, are permitted provided that the following conditions
11 .\" 1. Redistributions of source code must retain the above copyright
12 .\" notice, this list of conditions and the following disclaimer.
13 .\" 2. Redistributions in binary form must reproduce the above copyright
14 .\" notice, this list of conditions and the following disclaimer in the
15 .\" documentation and/or other materials provided with the distribution.
16 .\" 3. All advertising materials mentioning features or use of this software
17 .\" must display the following acknowledgement:
18 .\" This product includes software developed for the NetBSD Project by
19 .\" Wasabi Systems, Inc.
20 .\" 4. The name of Wasabi Systems, Inc. may not be used to endorse
21 .\" or promote products derived from this software without specific prior
22 .\" written permission.
24 .\" THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``AS IS'' AND
25 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
26 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
27 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL WASABI SYSTEMS, INC
28 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34 .\" POSSIBILITY OF SUCH DAMAGE.
41 .Nd network bridge device
43 .Cd "pseudo-device bridge"
47 driver creates a logical link between two or more IEEE 802 networks
51 For example, it is possible to bridge Ethernet and 802.11 networks together,
52 but it is not possible to bridge Ethernet and Token Ring together.
56 the administrator must first create the interface and configure
57 the bridge parameters.
58 The bridge is created using the
62 The learning and forwarding behavior and other parameters of a
63 bridge are configured by the
67 A bridge can be used to provide several services, such as a simple
68 802.11-to-Ethernet bridge for wireless hosts, and traffic isolation.
70 A bridge works like a hub, forwarding traffic from one interface
72 Multicast and broadcast packets are always forwarded to all
73 interfaces that are part of the bridge.
74 For unicast traffic, the bridge learns which MAC addresses are associated
75 with which interfaces and will forward the traffic selectively.
79 driver implements the IEEE 802.1D Spanning Tree protocol (STP).
80 Spanning Tree is used to detect and remove loops in a network topology.
82 Transparent filtering for IP and IPv6 packets can be added with the kernel
84 .Cd options BRIDGE_IPF .
86 When filtering is enabled, bridged packets will pass through the filter
87 inbound on the originating interface and outbound on the appropriate
89 ARP and REVARP packets are forwarded without being filtered and others
90 that are not IP nor IPv6 packets are not forwarded when filtering is
93 Note that packets to and from the bridging host will be seen by the
94 filter on the interface with the appropriate address configured as well
95 as on the interface on which the packet arrives or departs.
104 driver first appeared in
110 driver was originally written by
112 .Aq jason@thought.net
113 as part of an undergraduate independent study at the University of
114 North Carolina at Greensboro.
118 driver has been heavily modified from the original version by
120 .Aq thorpej@wasabisystems.com .
124 driver currently supports only Ethernet and Ethernet-like (e.g. 802.11)
125 network devices, with exactly the same interface MTU size as the bridge device.
129 driver currently does not support snooping via