From owner-freebsd-net Sun Jun 16 6:55:51 2002 Delivered-To: freebsd-net@freebsd.org Received: from ns1.interbgc.com (mail.interbgc.com [217.9.224.3]) by hub.freebsd.org (Postfix) with SMTP id D697B37B411 for ; Sun, 16 Jun 2002 06:55:40 -0700 (PDT) Received: (qmail 12805 invoked by uid 1005); 16 Jun 2002 13:55:35 -0000 Received: from misho@interbgc.com by keeper.interbgc.com with qmail-scanner-1.01 (uvscan: v4.0.50/v4206. . Clean. Processed in 0.321259 secs); 16 Jun 2002 13:55:35 -0000 Received: from unknown (HELO misho) (217.9.226.238) by mail.interbgc.com with SMTP; 16 Jun 2002 13:55:35 -0000 Message-ID: <004701c2153d$28068720$eee209d9@interbgc.com> Reply-To: "Mihail Balikov" From: "Mihail Balikov" To: References: <20020616060836.A22557@iguana.icir.org> Subject: Re: Netgraph bridging vlans Date: Sun, 16 Jun 2002 16:53:12 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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" To: Cc: 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