From owner-freebsd-net@freebsd.org Wed May 9 15:24:24 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5965AFC0D52 for ; Wed, 9 May 2018 15:24:24 +0000 (UTC) (envelope-from ab.tariq90@gmail.com) Received: from mail-it0-x230.google.com (mail-it0-x230.google.com [IPv6:2607:f8b0:4001:c0b::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D47F87E888; Wed, 9 May 2018 15:24:23 +0000 (UTC) (envelope-from ab.tariq90@gmail.com) Received: by mail-it0-x230.google.com with SMTP id q4-v6so21086516ite.3; Wed, 09 May 2018 08:24:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Aw7plBq69tQmdHGFtQtaDRcva+xgjO1GL5YUBtPSzgM=; b=BwcawcVmhnp3RUOdY1r7N8XDJNRjWg1MIk/HaWNgtOIrJUaTf7dJ+7zUQv6YK3f0yh O0Z6uAGJmHuUvQOSWhQUhfNdbCVVmFnyMguM3FP9XscOqqvk3h5hfnvt3CL45GSmaO3o cPreuE+aY8FV3xs6gqqg3pJHpgXEw5fTd3BjGI4q7rIv7YjcwOcXwbUFy609GO59H8I+ kjF4dk3uHVCt1K1H7a7Lei64i3RzGr1H+AoAXmjWoTv0FlpLeQJMmnt2ptFLgFYsJ4yR JkhEjGstWXz2UmYX9/s1EaUvmMBdf2qd/OL140ccVpg6zyfL6yILijttgnTKpcYCNy4r L1IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Aw7plBq69tQmdHGFtQtaDRcva+xgjO1GL5YUBtPSzgM=; b=Mo3bhxzBxnGlpDwRnBy59FE2P0dhp2wwkPo7z+X6ZCs5ePnoVKQNneNK9p4E/vjGYb Sc4O1NqG3MwI8N1wdeGQosOMHSibFjLGrxNnsyX42HBa/2cIVtVWoyhWFRVCkMc7YJtv 3+9IKtui46+80Iro/elmHO2QjKNbBRxahDwEyvlTcxLZJB8696SkrmuqYfLdLDPIr3oI VpJ75NJxAnuxhv4eVd0tGFrbkT19tmNebGc3BqyxlgQoB2a01fWpeAyVnBz/0PMYDIe7 mgbg/goYpOtxD8u48cGzNG0TWuqRhxVFYYr4hGFUkkKbbg+SQGP/IkNxFYOkUDetbzRz D4wA== X-Gm-Message-State: ALQs6tAqB4Nz943mz4f4dhXV+9pGA/B0j4fSnFtl/JWe9YmRvvaZ2OJ5 NiTV+Kc1cieKQVQgrNeotg+bxxgpJslFOs+NeF23yg== X-Google-Smtp-Source: AB8JxZo20FgnMGBzL//jCN5xg/XSqgXd5aWz1CwsECCnug8BcZ7x0cquP6uML4F1hUo73mJqTKm2SCimX7bMa1lYEFk= X-Received: by 2002:a24:8093:: with SMTP id g141-v6mr11110351itd.118.1525879463175; Wed, 09 May 2018 08:24:23 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:4a93:0:0:0:0:0 with HTTP; Wed, 9 May 2018 08:24:22 -0700 (PDT) In-Reply-To: <946595c0-8dd5-145f-6c13-c150a053a17c@freebsd.org> References: <5AE34CFA.7000207@grosbein.net> <5AE437C1.8010706@grosbein.net> <5AE44ADD.7020302@grosbein.net> <5AE468D5.9030702@grosbein.net> <5AE4D1AC.3080702@grosbein.net> <5AE75988.3020306@grosbein.net> <5AE75BAD.8030303@grosbein.net> <946595c0-8dd5-145f-6c13-c150a053a17c@freebsd.org> From: Abdullah Tariq Date: Wed, 9 May 2018 20:24:22 +0500 Message-ID: Subject: Re: NETGRAPH- bridge vlans using netgraph help To: Julian Elischer Cc: Freddie Cash , Eugene Grosbein , freebsd-net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 May 2018 15:24:24 -0000 > > a picture would do wonders to understand what he wants. Apologies for being AWOL Attaching an image link: https://ibb.co/nt1s4S On Tue, May 1, 2018 at 8:39 PM, Julian Elischer wrote: > On 1/5/18 11:16 pm, Freddie Cash wrote: > > On Tue, May 1, 2018 at 6:08 AM, Julian Elischer > wrote: > >> On 1/5/18 2:08 am, Eugene Grosbein wrote: >> >>> 01.05.2018 1:03, Freddie Cash wrote: >>> >>> On Mon, Apr 30, 2018 at 10:59 AM, Eugene Grosbein >>> >wrote: >>>> >>>> > What the OP is trying to do is have PC1 send untagged packets t= o >>>> igb0 on FreeBSD which is configured for tagged vlan 5. >>>> > Then bridge the packets to igb1 which is also configured for >>>> tagged vlan 5. Then send the packets out, untagged, to PC2. >>>> >>>> Why would one want to "configure igb0 for tagged vlan 5" when igb= 0 >>>> supposed to receive untagged frames? >>>> This does not make any sense. One should just bridge igb0 as is, >>>> without creation vlan on it and problem's solved. >>>> >>>> =E2=80=8BYes, agree. What the OP wants to do can't be done. :)=E2=80= =8B >>>> >>> Perhaps, you missed a message from him when he states that configuratio= n >>> style does no matter for him really. >>> So, what he wants can be done, just using different style. >>> >>> >> >> a picture would do wonders to understand what he wants >> =E2=80=8B. >> > > =E2=80=8BA FreeBSD system with multiple NICs, with separate vlans interna= lly to > separate untagged traffic between PCs.=E2=80=8B > > https://forums.freebsd.org/threads/bridge-with-vlans-not-working.65592/ > > =E2=80=8B=E2=80=8Bhttps://forums.freebsd.org/attachments/capture-png.4744= / > > =E2=80=8Bhttps://forums.freebsd.org/threads/bridge-with-vlans-not- > working.65592/#lg=3Dpost-385584&slide=3D0 > > =E2=80=8BThe "easy" solution is to just bridge together the interfaces yo= u want to > be part of the same "virtual lan", thus allowing traffic between those > stations only. Want PC1 and PC2 to be part of one vlan? Then bridge > together igb0 and igb1. Want PC3, connected to igb2, and PC4, connected = to > igb3, to be part of a separate "virtual lan"? Then create a separate > bridge between igb2 and igb3. No vlan tags required anywhere. > > > ok so does he want to have those vlans terminated at his box or just pass > them through? > and if they are untagged, why is it being called a vlan? > untagged vlan is what we call "ethernet". > > if it's untagged then only the internal state of the switches decides > which "virtual network" it is on.. > > > > > But, the OP (in the forum thread and here) keeps getting hung up on > "needing" vlan tags on the NICs, trying to treat the FreeBSD box like a > switch with hybrid ports and PVIDs set on the ports. > > -- > Freddie Cash > fjwcash@gmail.com > > >