From owner-freebsd-net Sun Jun 16 15: 0:42 2002 Delivered-To: freebsd-net@freebsd.org Received: from pipenetworks.com (cartman.pipenetworks.com [202.4.251.18]) by hub.freebsd.org (Postfix) with ESMTP id EF24D37B428 for ; Sun, 16 Jun 2002 15:00:35 -0700 (PDT) Received: from internal (internal.pipenetworks.com [10.10.10.1]) by pipenetworks.com (8.11.2/8.11.2) with ESMTP id g5GLv4Q19620; Mon, 17 Jun 2002 07:57:06 +1000 Date: Mon, 17 Jun 2002 08:01:11 +1000 (EST) From: To: Mihail Balikov Cc: Subject: Re: Netgraph bridging vlans In-Reply-To: <004701c2153d$28068720$eee209d9@interbgc.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Mihail, > 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. I am very interested :-) Any chance it would work on 4.5 ? SB > > 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 > -- 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