From owner-freebsd-net@freebsd.org Sat Apr 28 09:26:43 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 69E67FA846D for ; Sat, 28 Apr 2018 09:26:43 +0000 (UTC) (envelope-from b.hawks123@gmail.com) Received: from mail-qt0-x235.google.com (mail-qt0-x235.google.com [IPv6:2607:f8b0:400d:c0d::235]) (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 046BB6FD75 for ; Sat, 28 Apr 2018 09:26:42 +0000 (UTC) (envelope-from b.hawks123@gmail.com) Received: by mail-qt0-x235.google.com with SMTP id l11-v6so5431164qtj.10 for ; Sat, 28 Apr 2018 02:26:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=m1QU+E8CYG88H50EjluZE/8PKxpNNI9vJ01a+gnTBxo=; b=Z5RySxACCvhQ9FS/BoYNXcR7G1Sx9QY/IhGdDq9mHpmimG9F+6Fhswycd5CLZtximR ek092/xXQoQhAjy+c07dShmK31hNXXaBjJwy0fUsGx3Z8qdB8qqCJHMiCUrB1gPJa/x1 kTdRplC4qz0Dca6MhBdrxjKXUZciWL+1znzkP55kjHgQ/1/5gNEyxDv35FQ7Z9uvlt+8 7s8ZkQL34Gt4siau/VvTci8X/ghBqsovnD0IembHQD/M2kvS1/24DVRg+UEC1VAUKK74 Gq/7ztvMlU9GZ2w1XsVoj9thgOvTSn4oM1QFIFGP6Q7zdvQ54ynggTSwTYyLB55TSSeG qGUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=m1QU+E8CYG88H50EjluZE/8PKxpNNI9vJ01a+gnTBxo=; b=MCXUsKtqhXQOxcgVWq2WpXgvOjNkIDeMhBpA2+aNhB05AEIgBRcahsrRoJMqXw81qo 0fLM639OzE1lJhBFoVPppMM8vC6V0VdYQV11e25xfhg1kxlxEivV6Wqq7gBwDnYaQk+L ze9YLd2nqezssAQx2JuGAJ95OGCY9aOvciYwakNBvEWGVxe+eOTWwGjyezNnphVqkvo8 ku4bGD7QzccDlDTj0OzyZsynetRldTHtJXG0+iXkAoWcKvIXZY/uYlr/twmBk/LgCuhd cQLSO45xmg82Pd+ynBbAIU8ApH1jhTdFm4fPuo8mAcOc6/IGFd/J39bzgSQaed9Z+36C XaiA== X-Gm-Message-State: ALQs6tDiXbA1m/s5278dCY2UVOSuqK0djRFjDAaCGJfi7dxhmPAyVw8g +IbxLP2eCBcu7nPHIPrWjNLSbWw0PJ4KXTX+n8166g== X-Google-Smtp-Source: AB8JxZqlVZZVlS/sx6UKWpgfB8IzKBw0jYcfBBMgKnHAET5VD5Rpp3UPmEalNkOseRemmLXF9XkmT5q0QE/4H5eg9gQ= X-Received: by 2002:a0c:8856:: with SMTP id 22-v6mr2252511qvm.79.1524907602472; Sat, 28 Apr 2018 02:26:42 -0700 (PDT) MIME-Version: 1.0 References: <5AE216DC.7010905@grosbein.net> <5AE33513.1000001@grosbein.net> <5AE34754.6040905@grosbein.net> <5AE34CFA.7000207@grosbein.net> <5AE437C1.8010706@grosbein.net> In-Reply-To: <5AE437C1.8010706@grosbein.net> From: Abdullah Date: Sat, 28 Apr 2018 09:26:31 +0000 Message-ID: Subject: Re: NETGRAPH- bridge vlans using netgraph help To: Eugene Grosbein Cc: freebsd-net@freebsd.org Content-Type: text/plain; charset="UTF-8" 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: Sat, 28 Apr 2018 09:26:43 -0000 Configuration style doesn't really matter. I am trying to figure out how to make tagged traffic talk in a bridge. I have always had good support from bsd people over the last 4 5 years since i started using it, maybe it's time to add something to it :) What gives me hope is that linux (cumulus linux, openswitch, ONL) are doing so, i dont see why BSD can't do it. I haven't searched much other bsd flavors though. Regards Abdullah On Sat, Apr 28, 2018, 13:59 Eugene Grosbein wrote: > 28.04.2018 12:49, Abdullah Tariq wrote: > > You still top-posting. Please don't. > > > > And please do not top-post and reply to the list, not > privately. Thank you. > > > sorry for that. > > > They do but that's not what you need. You deal with untagged > frames on igb5, > > > so do not create any vlan on top on igb5 but use it directly: > > > ifconfig bridge10 create addm igb5 addm vlan3 up > > > so if i need 2 ports with same vlan tags to communicate with each > other > > > i create 2 bridges > > > ifconfig vlan2 create vlan 5 vlandev igb5 > > > ifconfig vlan3 create vlan 5 vlandev igb6 > > > ifconfig bridge10 create addm igb5 addm vlan3 up > > > ifconfig bridge11 create addm igb6 addm vlan2 up > > > is this the right way? > > No. If you have two ports that should carry untagged frames and form > single vlan > > and this vlan has no other ports carrying tagged frames, then > > this vlan effectively has *no* tag number, or better say, its tag > number does not matter. > > In that case, do not create any vlan interfaces for the vlan at all > but bridge ports directly: > > ifconfig bridge10 addm igb5 addm igb6 > > So it is not possible to replicate behaviour of standard L2 switches > > using freebsd where we have different VLANs, access and trunk ports? > > It is possible to replicate *behaviour* but not configuration style. > > Unless you have real embedded switching chip in your system like many ARM > or MIPS-based routers do, > in which case you can use etherswitch(4) and etherswitchcfg(8) to create > vlans and configure > ports of such chip similar to L2 switches. > > >