if_bridge on a vlan-trunk
Erik Osterholm
freebsd-lists-erik at erikosterholm.org
Fri Oct 12 13:16:34 PDT 2007
On Fri, Oct 12, 2007 at 08:46:53AM +1300, Andrew Thompson wrote:
> On Thu, Oct 11, 2007 at 09:42:15PM +0200, Jon Otterholm wrote:
> > Hi.
> >
> > Does anyone know if it is possible to put a transparent bridge on a
> > vlan-trunk?
>
> As from rev1.100 of if_bridge back in June it will correctly use the
> vlan number if the forwarding table so it is now possible to bridge a
> vlan trunk. Is this all you need? (7+ only, it wont be in 6-stable)
Does anything special need to be done in order for this to work? I've
got a machine running a recent snapshot (7.0-CURRENT-200709) where it
simply isn't bridging the trunk. It looks like ARP isn't getting
passed. If I remove the FreeBSD box from the line, everything works.
If I explicitly create VLANs interfaces on the FreeBSD box and just
bridge the VLAN interfaces, it works.
em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=88<VLAN_MTU,VLAN_HWCSUM>
ether 00:30:48:43:7e:dc
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
em1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=88<VLAN_MTU,VLAN_HWCSUM>
ether 00:30:48:43:7e:dd
media: Ethernet autoselect (1000baseTX <full-duplex>)
status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> metric 0 mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 2e:8d:bb:a9:15:94
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
member: em1 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
member: em0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
FreeBSD 7.0-CURRENT-200709 FreeBSD 7.0-CURRENT-200709 #0: Tue Sep 11 04:44:48 UTC 2007 root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
Thanks,
Erik
More information about the freebsd-net
mailing list