summaryrefslogtreecommitdiffstats
path: root/share/man/man4/bridge.4
blob: 4b13e6038a666565fbf4e5365cb131e0ec28d8ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
.\"
.\" $FreeBSD$
.\"
.Dd Sep 28, 1998
.Dt BRIDGE 4
.Os
.Sh NAME
.Nm bridge
.Nd Bridging support
.Sh DESCRIPTION
Starting from version 2.2.8,
.Fx
supports bridging on ethernet-type
interfaces.
This is achieved using the following option
.Bd -literal
    options BRIDGE
.Ed
.Pp
in the kernel config file, and is controlled by two
.Nm sysctl
variables:
.Bd -literal
    net.link.ether.bridge
.Ed
.Pp
Set to 1 to enable bridging, set to 0 to disable it
.Bd -literal
    net.link.ether.bridge_ipfw
.Ed
.Pp
Set to 1 to enable
.Nm ipfw
filtering on bridged packets.
Note that
.Nm ipfw
rules only apply
to IP packets.
Non-IP packets are subject to the default
.Nm ipfw
rule
.Pq number 65535
which must be an
.Ar allow
rule if we want ARP and other non-IP packets to flow through the
bridge.
.Sh BUGS
.Pp
Care must be taken not to construct loops in the bridge topology.
The kernel supports only a primitive form of loop detection, by disabling
some interfaces when a loop is detected.
No support for a daemon running the
spanning tree algorithm is currently provided.
.Pp
With bridging active, interfaces are in promiscuous mode,
thus causing some load on the system to receive and filter
out undesired traffic.
.Pp
Extended functionality to enable bridging selectively on clusters
of interfaces is still in the works.
.Pp
Interfaces that cannot be put into promiscuous mode or that don't
support sending packets with arbitrary Ethernet source addresses
are not compatible with bridging.
.Sh SEE ALSO
.Xr ip 4 ,
.Xr ng_bridge 4 ,
.Xr ipfw 8 ,
.Xr sysctl 8
.Sh HISTORY
.Nm
bridging was introduced in
.Fx 2.2.8
by
.An Luigi Rizzo Aq luigi@iet.unipi.it .
OpenPOWER on IntegriCloud