]> git.ipfire.org Git - people/stevee/network.git/commitdiff
doc: Add man page for the bridge hook.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 7 Jun 2012 21:41:22 +0000 (21:41 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 7 Jun 2012 21:41:22 +0000 (21:41 +0000)
hooks/zones/bridge
man/Makefile
man/network-zone-bridge.8.in [new file with mode: 0644]

index eae6ece1a9d007731219743e3a6429ee4de822d0..3db92aa832a1e817b100b23c76c1d4b27ae7fbd7 100755 (executable)
@@ -21,6 +21,8 @@
 
 . /usr/lib/network/header-zone
 
+HOOK_MANPAGE="network-zone-bridge"
+
 HOOK_SETTINGS="HOOK STP STP_FORWARD_DELAY STP_HELLO STP_MAXAGE STP_MODE"
 HOOK_SETTINGS="${HOOK_SETTINGS} STP_PRIORITY MAC MTU"
 
index 285f9a36369a002c76b2ed3d000b785a92e9ae37..eadee58d66f73194c3941308246fab6aff7da17e 100644 (file)
@@ -29,7 +29,8 @@ MANPAGES8   = \
        network.8 \
        network-config.8 \
        network-device.8 \
-       network-zone.8
+       network-zone.8 \
+       network-zone-bridge.8
 
 .PHONY: all
 all: $(MANPAGES)
diff --git a/man/network-zone-bridge.8.in b/man/network-zone-bridge.8.in
new file mode 100644 (file)
index 0000000..06b4532
--- /dev/null
@@ -0,0 +1,88 @@
+.TH network-zone-bridge 8 "8 Jun 2012" "@VERSION@" "network man page"
+
+.SH NAME
+network-zone-bridge \- Network Configuration Control Program
+
+.SH SYNOPSIS
+\fBnetwork [OPTIONS] zone create <zone> bridge ...\fR
+.P
+All options may be edited on zones which have already been set up with the \fBbridge\fR hook:
+.P
+\fBnetwork [OPTIONS] zone <zone> edit ...\fR
+
+.SH DESCRIPTION
+The bridge hook creates an ethernet bridge which acts as an unmanaged network
+switch. It contains one or multiple phyisical network interfaces or virtual
+devices which will be connected to each other.
+.PP
+The bridge hook is the prefered hook for local area network zones which are
+connected to an ethernet network.
+
+.SH OPTIONS
+The \fBbridge\fR hook offers various configuration options:
+
+\fB--stp\fR = [\fBon\fR|off]
+.RS 4
+This option enables or disable the use of the \fBSpanning Tree Protocol\fR (STP).
+This protocol is used to avoid loops in networks by dynamically disabling packet
+forwarding on links.
+.PP
+It is highly recommended to leave this option enabled when you add more than
+one device to the zone. Read below how the behaviour of STP can be changed.
+.RE
+.PP
+
+\fB--mtu\fR = 1500
+.RS 4
+Sets the default MTU of the bridge. All ports in the bridge must support this
+MTU.
+.RE
+.PP
+
+\fB--mac\fR = ...
+.RS 4
+By this option, you may define the MAC address of the bridge. If this option
+is missing, a random MAC address will be generated.
+.RE
+.PP
+
+Spanning Tree Protocol configuration options:
+
+\fB--stp-mode\fR = [\fBrstp\fR|stp]
+.RS 4
+When STP is enabled, this option will set the operational mode which can either be:
+.PP
+* \fBSpanning Tree Protocol IEEE 802.1W\fR (stp) was introduced in 1998 by Radia
+Perlman.
+.P
+* \fBRapid Spanning Tree Protocol IEEE 802.1D\fR (rstp) which has much faster convergence
+times and was introduced in 2004. This is the default option.
+.RE
+.PP
+
+\fB--stp-forward-delay\fR = 0
+.RS 4
+This sets the default time the interfaces are hold off after they have been added
+to a bridge. The default value is 0.
+.RE
+.PP
+
+\fB--stp-hello\fR = 2
+.RS 4
+This option defines how often a hello message should be sent. The value is given in seconds
+and the default is 2.
+.RE
+.PP
+
+\fB--stp-priority\fR = 512
+.RS 4
+The STP priority sets the ranking of this network device within the network. The bridge
+with the best rank (0 is best) will become the root bridge.
+.RE
+.PP
+
+.SH SEE ALSO
+network(8)
+
+.SH AUTHOR
+Michael Tremer (michael.tremer@ipfire.org)