From owner-freebsd-net@FreeBSD.ORG Sun Mar 4 10:32:47 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 3AA59106564A for ; Sun, 4 Mar 2012 10:32:47 +0000 (UTC) (envelope-from rozhuk.im@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 AE42B8FC12 for ; Sun, 4 Mar 2012 10:32:46 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so3329305bkc.13 for ; Sun, 04 Mar 2012 02:32:45 -0800 (PST) Received-SPF: pass (google.com: domain of rozhuk.im@gmail.com designates 10.204.155.154 as permitted sender) client-ip=10.204.155.154; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rozhuk.im@gmail.com designates 10.204.155.154 as permitted sender) smtp.mail=rozhuk.im@gmail.com; dkim=pass header.i=rozhuk.im@gmail.com Received: from mr.google.com ([10.204.155.154]) by 10.204.155.154 with SMTP id s26mr8596968bkw.24.1330857165787 (num_hops = 1); Sun, 04 Mar 2012 02:32:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=reply-to:from:to:references:in-reply-to:subject:date:message-id :mime-version:content-type:content-transfer-encoding:x-mailer :thread-index:content-language; bh=c2tTSqgmNCz8i83NDwURPpZlhx+t9jr4ANrPmXRkxgE=; b=CYD13gvMRh54LN6JeVFDy5hGD6GvJyBTw96w3sqaXHcumuyFBoOgF5gS4wIA47gEuE hu8B7BQnRV8kp82g+m5c87ZClbRQP/ixleyZ0qoTkZyXyfZ+Vr53upM9P8oku/ETZ+Z9 v5V9jIyV2n0c/goacFbxKM4ZniwFa/Jd4sbnf+LKPFXjmdPAVpQ6Tu0Aco7QvKz7ncr7 tRBS0IN7NRjlHAk9SERuCejZxHfIitSI6A+KuZwkz1EjMZJ3+Axuwy1J2A7xv+F5Pp6/ B32PvltFWBTsdSKSIMOZRoiio+wyIglwU0IgELd4gLoM5pEn210nJVwKKmgW7hDDskiv aKAQ== Received: by 10.204.155.154 with SMTP id s26mr6860745bkw.24.1330857165715; Sun, 04 Mar 2012 02:32:45 -0800 (PST) Received: from rimwks1w7x64 ([141.105.54.13]) by mx.google.com with ESMTPS id jd17sm19008356bkb.4.2012.03.04.02.32.43 (version=SSLv3 cipher=OTHER); Sun, 04 Mar 2012 02:32:44 -0800 (PST) From: rozhuk.im@gmail.com To: "'h bagade'" , "'freebsd-net'" References: In-Reply-To: Date: Sun, 4 Mar 2012 19:32:41 +0900 Message-ID: <4f5344cc.51e4cc0a.522a.1a15@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acz50Hd7bDBKC6knSkOz5dXyb4DV6AAIZuAA Content-Language: ru Cc: Subject: RE: problem with vlan interfaces tagging/untagging in a simulated switch box X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Rozhuk.IM@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Mar 2012 10:32:47 -0000 Use netgraph nodes. > -----Original Message----- > From: owner-freebsd-net@freebsd.org [mailto:owner-freebsd- > net@freebsd.org] On Behalf Of h bagade > Sent: Sunday, March 04, 2012 3:31 PM > To: freebsd-net > Subject: problem with vlan interfaces tagging/untagging in a simulated > switch box > > Hi all, > > I have problems with vlan interfaces on freebsd. I want to make my > system like a switch with vlan ports and also a trunk port in > conjuction with other switches. I thought that vlan interfaces would > help me tagging traffic when traffic is going out the trunk port(or > when it receives on vlan ports). > The problem, I've encountered is that vlan interafaces on freebsd do > tagging/untagging when the traffic is sourced/destined from/to them > which in this case they should be assigned IP addresses. In other words > they won't tag the traffic passing through their parent interface which > I need to. > > In my case to be acting like a switch, interfaces on system won't have > ip addresses and I need to tag the traffic coming from for example > interface1 when passing through interfaceN(acting as trunk port). > How could I reach this? would it be possible to use vlan interfaces to > do so? > > I've tried many many ways to simulate the case but no success achieved! > I'm really interested to find the proper solution for my config. > > Any comments or hints are really apperciated. > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"