From owner-freebsd-net@freebsd.org Fri Apr 27 15:57:59 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 9A11BFAB9EE for ; Fri, 27 Apr 2018 15:57:59 +0000 (UTC) (envelope-from ab.tariq90@gmail.com) Received: from mail-it0-x22d.google.com (mail-it0-x22d.google.com [IPv6:2607:f8b0:4001:c0b::22d]) (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 060A27875E for ; Fri, 27 Apr 2018 15:57:56 +0000 (UTC) (envelope-from ab.tariq90@gmail.com) Received: by mail-it0-x22d.google.com with SMTP id 71-v6so2402357ith.2 for ; Fri, 27 Apr 2018 08:57:56 -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=ke5JgO9zWrBtixGQB6dwHUCNqP89S/rNTExOz7N2M3M=; b=bsRdYtACIRz/4dPTgyEdcpnk9GzaU5vMUcso0qsaHauy4Ss9rxduT7yqTFENE/c73q alkTvHsYGWnS+ZKGcp2ImlYlqynkrIcFH9TFj3lajqy31CkHcs9A1W9XyF0330/aK2qd iBMxPJZ0+HYYpGuGYrQyLe93BGLX31D4aQq09gzV1Ohv7tN7ctnZhk001DEZ3lFVNI3N rDH/ZZyAKt4Pf9jaJpzSeXWtgRY1CliMH8p+txPYxzYquk89Vj3/tSEk+WP0vgadWhnG 7dsVf4uHN16Ac3DbYWUN5X55nUmXeq+l2N2FslLKqhaUj1xFgLtA8i84Uc4fKB7WyKoU KZdA== 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=ke5JgO9zWrBtixGQB6dwHUCNqP89S/rNTExOz7N2M3M=; b=Kx3ZVueSLNANFhHbnxGo4QXYhzWiGbuLvQdur4YnrriBRmG0zTLoCPQ18eh2/v1dBK rTzk3Hg7UZoRLA9xTAJTF1XD9VEa0XkdRFNDAIaxV7Xw5R+mmqESRHR36FO8apsJqVYU U1O4e0lvUOZ/wLxzqP4HaL8xvH56EMKJLxjA2BkQQmK1vKkLqcwbTpIpazZShWIku4x4 xV9W33TEKRk4chj8X4Twl94skkul//ZTTlcg7PbAXElHz+iHe9+jEdVn/U6RZgxsCdWr MxXqPgJJp6Sd0f+jjSY7jKgfpzHDNFXkIawYba7bbQn8mK9pvFFS7DEmLpAmB5mbFbJ0 YPvw== X-Gm-Message-State: ALQs6tC0uFnJLQvd1cUTF9EowxHo/4rwdOT/4wHzl0ZUzARL8klYLk8V lo/VOa8/hT6/tZ6zYyChZvnmltHawlDXEmacM6sx+g== X-Google-Smtp-Source: AB8JxZrMLkTdPEIou+igY1nqKn94/8U7hf7xcnmlGWu29PHDIcRCiVNa1poesh4oNh6raLRGJWibNkPTKuQzdalrs5Y= X-Received: by 2002:a24:a342:: with SMTP id p63-v6mr2460867ite.146.1524844676232; Fri, 27 Apr 2018 08:57:56 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:4a93:0:0:0:0:0 with HTTP; Fri, 27 Apr 2018 08:57:55 -0700 (PDT) In-Reply-To: <5AE34754.6040905@grosbein.net> References: <5AE216DC.7010905@grosbein.net> <5AE33513.1000001@grosbein.net> <5AE34754.6040905@grosbein.net> From: Abdullah Tariq Date: Fri, 27 Apr 2018 20:57:55 +0500 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: Fri, 27 Apr 2018 15:57:59 -0000 > > 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? On Fri, Apr 27, 2018 at 8:52 PM, Eugene Grosbein wrote: > 27.04.2018 21:39, Abdullah Tariq wrote: > > > > No, i am trying to bridge untagged frames between vlans of these > interfaces. Is it doable? > > > > Sure. If you need to accept untagged frames from igb5, add tag 5 and > send over igb6, > > just create a bridge and add igb5 and vlan2 (vlan 5 vlandev igb6) to > the bridge. > > > ok sounds good but when i use following config > > > > ifconfig vlan2 create vlan 5 vlandev igb5 > > ifconfig vlan3 create vlan 5 vlandev igb6 > > ifconfig bridge10 create addm vlan2 addm vlan3 up| > > > > then it doesnt work.. 2 vlans with same tag dont work? > > 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 > > And please do not top-post and reply to the list, not privately. Thank you. > >