From 6ef560faa087d804b9941821595121fde8612b3a Mon Sep 17 00:00:00 2001 From: thompsa Date: Sun, 8 Oct 2006 19:41:05 +0000 Subject: - Note that the bridge uses a random MAC and can be overridden. - Provide an example of assigning an IP to the bridge. PR: kern/102607 Submitted by: Stefan Bethke MFC after: 3 days --- share/man/man4/if_bridge.4 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'share/man') diff --git a/share/man/man4/if_bridge.4 b/share/man/man4/if_bridge.4 index ca3afcb..ea43589 100644 --- a/share/man/man4/if_bridge.4 +++ b/share/man/man4/if_bridge.4 @@ -78,6 +78,13 @@ command or using the variable in .Xr rc.conf 5 . .Pp +The +.Nm +interface randomly chooses a link (MAC) address in the range reserved for +locally adminstered addresses when it is created. +The address can be changed by assigning the desired link address using +.Xr ifconfig 8 . +.Pp A bridge can be used to provide several services, such as a simple 802.11-to-Ethernet bridge for wireless hosts, and traffic isolation. .Pp @@ -232,6 +239,17 @@ ifconfig bridge0 \e up .Ed .Pp +The bridge can be used as a regular host interface at the same time as bridging +between it's member ports. +In this example, the bridge connects em0 and em1, and will receive it's IP +address through DHCP: +.Bd -literal -offset indent +cloned_interfaces="bridge0" +ifconfig_bridge0="addm em0 addm em1 DHCP" +ifconfig_em0="up" +ifconfig_em1="up" +.Ed +.Pp The bridge can tunnel Ethernet across an IP internet using the EtherIP protocol. This can be combined with -- cgit v1.1