Re: kern/102607: [if_bridge] don't generate random L2 address



Here's my suggestion for an addition to if_bridge(4):

--- if_bridge.4.orig Sun Aug 13 20:44:18 2006
+++ if_bridge.4 Fri Sep 1 18:53:19 2006
@@ -107,6 +107,13 @@
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
The MTU of the first member interface to be added is used as the bridge MTU.
All additional members are required to have exactly the same value.
.Pp
@@ -231,6 +238,16 @@
addm fxp6 stp fxp6 \e
addm fxp7 stp fxp7 \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="link 12:34:56:78:9a:bc addm em0 addm em0 DHCP"
+ifconfig_em0="up"
+ifconfig_em1="up"
.Ed
.Pp
The bridge can tunnel Ethernet across an IP internet using the EtherIP


--
Stefan Bethke <stb@xxxxxxxxxx> Fon +49 170 346 0140


_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: If_bridge behaving as HUB
    ... I have a bridge setup with a number of vlan IF's as members. ... while traffic destined for one member IF are sent to all member IF's. ... Mark an interface as a ``discovering'' interface. ... sometimes customers connection fails because the bridge fdb doesn't get ...
    (freebsd-net)
  • Re: bridge issues with pf rules on OpenBSD/Sparc
    ... confused as to which physical interface traffic goes in and out on ... for the bridge, I was hoping to have the bridge tell it. ... >> router always appears to match rules for le2 outbound traffic from ... I want to be functional between the LAN and AP. ...
    (comp.unix.bsd.openbsd.misc)
  • Re: Paketfiler als Bridge (was: Stealth Gateway)
    ... >>der Hauptnachteil eines solchen Paketfilters. ... Eine Ethernet Bridge nimmt alle Ethernetpakete auf einem Interface ...
    (de.comp.security.firewall)
  • Re: Multiple pvcs on Cisco 878
    ... full bridge. ... interface BRI0 ... ip route 0.0.0.0 0.0.0.0 Dialer0 ... The gateway of last resort disappears, and the routing table is shut ...
    (comp.dcom.sys.cisco)
  • Re: kern/102607: [if_bridge] dont generate random L2 address
    ... The MTU of the first member interface to be added is used as the ... +The bridge can be used as a regular host interface at the same time as ...
    (freebsd-net)