From owner-freebsd-net@FreeBSD.ORG Sun Mar 4 06:31:15 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E2A3F1065674 for ; Sun, 4 Mar 2012 06:31:15 +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 04D4F8FC0A for ; Sun, 4 Mar 2012 06:31:14 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so3257321bkc.13 for ; Sat, 03 Mar 2012 22:31:08 -0800 (PST) Received-SPF: pass (google.com: domain of bagadeh@gmail.com designates 10.204.156.12 as permitted sender) client-ip=10.204.156.12; Authentication-Results: mr.google.com; spf=pass (google.com: domain of bagadeh@gmail.com designates 10.204.156.12 as permitted sender) smtp.mail=bagadeh@gmail.com; dkim=pass header.i=bagadeh@gmail.com Received: from mr.google.com ([10.204.156.12]) by 10.204.156.12 with SMTP id u12mr1750675bkw.33.1330842668063 (num_hops = 1); Sat, 03 Mar 2012 22:31:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=HzhvnwI6il6Z7mcSxhAVO4IHEMkiL43GfoGLBkn1MRQ=; b=sHxFuuXzu6q7KW2eI+abKfUKJ32CA3joR+zKTXEq+TJFwse59LbmMSwfFqkwF5a3fP 16V/1jtwmNpwjyqc1tu8rUddWEUfhX7X7I0QC0BHbrsirrqZ7KGQQrgOTzcj3ahP5l2V dYvjFLwM6rGWrAC8GFR7vwKm2mA0TAwKsv7O89eh1mNMDszm9LlBGZTWmxbZWdfTW3bA X9HkkdHXq7zNh5t6dfv/O+iSOKdv6umqybXkxWfSQAcrzfhDLTz5QBCOMxa47ySMZF1d Nto6g8AOO6m6/nV6B1eaStbZgNkqyGLGdD2TZ/KCz+DIwYnfTKjSjKPdbn6F9mxBYBpc DfDg== MIME-Version: 1.0 Received: by 10.204.156.12 with SMTP id u12mr1380912bkw.33.1330842667946; Sat, 03 Mar 2012 22:31:07 -0800 (PST) Received: by 10.204.167.139 with HTTP; Sat, 3 Mar 2012 22:31:07 -0800 (PST) Date: Sun, 4 Mar 2012 10:01:07 +0330 Message-ID: From: h bagade To: freebsd-net Content-Type: text/plain; charset=ISO-8859-1 Subject: 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 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 06:31:16 -0000 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.