Date: Sun, 16 Jun 2002 16:53:12 +0300 From: "Mihail Balikov" <misho@interbgc.com> To: <freebsd-net@freebsd.org> Subject: Re: Netgraph bridging vlans Message-ID: <004701c2153d$28068720$eee209d9@interbgc.com> References: <Pine.LNX.4.33.0206161859300.19020-100000@internal.pipenetworks.com> <20020616060836.A22557@iguana.icir.org>
next in thread | previous in thread | raw e-mail | index | archive | help
I have not succeeded to setup vlan bridging even with 4.6. Looking in source
code :
if_vlan.c :
[...]
case SIOCSIFFLAGS:
/*
* We don't support promiscuous mode
* right now because it would require help from the
* underlying drivers, which hasn't been implemented.
*/
if (ifr->ifr_flags & (IFF_PROMISC)) {
ifp->if_flags &= ~(IFF_PROMISC);
error = EINVAL;
}
break;
[...]
In if_ethersubr.c ether_demux() it's easy to see that vlan packets with
unicast mac addresses different of parent mac would be dropped.
for freebsd 4.4 I have wrote small patch to allow promisc mode on vlan
interfaces and bridgiing of vlan interfaces. If you are interested I will
renew it for 4.6.
regards,
misho
----- Original Message -----
From: "Luigi Rizzo" <rizzo@icir.org>
To: <steve@pipenetworks.com>
Cc: <freebsd-net@FreeBSD.ORG>
Sent: Sunday, June 16, 2002 4:08 PM
Subject: Re: Netgraph bridging vlans
> On Sun, Jun 16, 2002 at 07:14:14PM +1000, steve@pipenetworks.com wrote:
> >
> > Hello,
> >
> > I have been working with Netgrpah in bridging vlans using the vtun
> > package. I recently tried to extend this to bridging vlans but found
that
>
> native (not netgraph) bridging in 4.6 works with vlans too.
>
> cheers
> luigi
>
> > it did not work. I think the reason was that the scriptI had been using
> > (/usr/share/examples/netgraph/ether.bridge)to happily do bridging
between
> > two real interfaces seemed not to place the vlan interfaces into PROMISC
> > mode.
> >
> > When I start the ether.bridge I do get a message saying promiscuos mode
> > enabled on the vlan1 interface but subsequent "ifconfig" commands do not
> > show the flag set on the interface.
> >
> > Has anybody come across this before ?
> >
> > I am running i386 hardware and 4.5-RELEASE if that helps.
> >
> > Thanks.
> >
> > --
> > Stephen Baxter
> > Director - PIPE Networks
> > phone : 07 3220 1100/ 0417 818 695
> > fax : 07 3220 1800
> >
> >
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-net" in the body of the message
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-net" in the body of the message
>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004701c2153d$28068720$eee209d9>
