From owner-freebsd-net@FreeBSD.ORG Sat Feb 25 07:45:00 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D87B106564A for ; Sat, 25 Feb 2012 07:45:00 +0000 (UTC) (envelope-from bagadeh@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 78A508FC08 for ; Sat, 25 Feb 2012 07:44:59 +0000 (UTC) Received: by bkcjg1 with SMTP id jg1so3481142bkc.13 for ; Fri, 24 Feb 2012 23:44:58 -0800 (PST) Received-SPF: pass (google.com: domain of bagadeh@gmail.com designates 10.204.141.10 as permitted sender) client-ip=10.204.141.10; Authentication-Results: mr.google.com; spf=pass (google.com: domain of bagadeh@gmail.com designates 10.204.141.10 as permitted sender) smtp.mail=bagadeh@gmail.com; dkim=pass header.i=bagadeh@gmail.com Received: from mr.google.com ([10.204.141.10]) by 10.204.141.10 with SMTP id k10mr2668217bku.51.1330155898321 (num_hops = 1); Fri, 24 Feb 2012 23:44:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=NKe8BgiDoQOXe1L02CIeM5vNqqwr9SbA+QDaTrViENc=; b=FHcSVSr2JzpHQPeI47I/kBHcVcuyJRICNgyrgI4zouShrIXrYbHPDj2IsP3CjWUsxA +8NyVJpJd05s5PyAfFp0y5V5kMiddUXDAJAwlT8axjPCPATMtRDN0EMwnRgPFbpFHmda iP9z8pOTHNDPWU29ddDeEqQ6lL6oXcyfj+4B8= MIME-Version: 1.0 Received: by 10.204.141.10 with SMTP id k10mr2161574bku.51.1330154244144; Fri, 24 Feb 2012 23:17:24 -0800 (PST) Received: by 10.204.167.139 with HTTP; Fri, 24 Feb 2012 23:17:23 -0800 (PST) Date: Sat, 25 Feb 2012 10:47:23 +0330 Message-ID: From: h bagade To: freebsd-net Content-Type: multipart/related; boundary=0015175cac8838003804b9c4ab2d X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: problem with netgraph vlan tagging X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 25 Feb 2012 07:45:00 -0000 --0015175cac8838003804b9c4ab2d Content-Type: text/plain; charset=ISO-8859-1 Hi all, I have designed a topology(illustrated below) using netgraph to add vlan2 tag to the frames coming from eth0 and send it to eth1 to go out of the box. it works fine. [image: Inline image 1] Then I tried to add another interface like eth0 which named eth2 to be tagged vlan2 too. Then I bridged eth0 and eth2 using ifconfig. When traffic comes from eth0(system1) to the destination eth2(system2), all traffic also sent out eth1 which is not suitable! In the mentioned scenario, I don't want the traffic pass to the eth1. Is there any way that eth1 recognize which mac addresses don't belong to this box then sends the traffic out? I mean I want to send taraffic out of eth1 when the destination is not accessible via FreeBSD box so it should be sent out to be find out. Any comments or hints are really appreciated p.s. I use netgraph on freebsd 8.2 box. --0015175cac8838003804b9c4ab2d--