From owner-freebsd-net@FreeBSD.ORG Tue Mar 20 14:19:40 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 559E41065670 for ; Tue, 20 Mar 2012 14:19:40 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from dash.upc.es (dash.upc.es [147.83.2.50]) by mx1.freebsd.org (Postfix) with ESMTP id CBE838FC15 for ; Tue, 20 Mar 2012 14:19:39 +0000 (UTC) Received: from entelserver.upc.edu (entelserver.upc.es [147.83.39.4]) by dash.upc.es (8.14.1/8.13.1) with ESMTP id q2KEJVW5022582 for ; Tue, 20 Mar 2012 15:19:32 +0100 Received: from webmail.entel.upc.edu (webmail.entel.upc.es [147.83.39.6]) by entelserver.upc.edu (Postfix) with ESMTP id AD3262CBD0E for ; Tue, 20 Mar 2012 15:19:26 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 20 Mar 2012 15:54:13 +0100 From: Gustau Perez Querol To: In-Reply-To: <51f939ac5fb636ae90ba1b0fd628e40b@mail.mikej.com> References: <51f939ac5fb636ae90ba1b0fd628e40b@mail.mikej.com> Message-ID: X-Sender: gperez@entel.upc.edu User-Agent: RoundCube Webmail/0.5.1 X-Mail-Scanned: Criba 2.0 + Clamd X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (dash.upc.es [147.83.2.50]); Tue, 20 Mar 2012 15:19:32 +0100 (CET) Subject: Re: Cloning VLAN interfaces 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: Tue, 20 Mar 2012 14:19:40 -0000 On Mon, 19 Mar 2012 12:11:10 -0400, jammin2night wrote: > FreeBSD charon 9.0-STABLE FreeBSD 9.0-STABLE #14 r233107: Sun Mar 18 > 05:26:58 EDT 2012 root@charon:/usr/obj/usr/src/sys/CHARON amd64 > > Hello: > > I have a machine that has a 802.1q trunk attached which works fine. > I can create VLAN interfaces, apply an IP address to them and all is > good. > > I have VirtualBox running on this machine and need to present an > interface to a VM that does not support trunking natively. I've > googled and searched the archive trying to figure out how to create > an > interface that VirtualBox will use where the 802.1Q tags are removed > but have not had any success. If I understood you correctly, you want to bridge the interface without 802.1q, so the tag/untag would be done by the host machine? If that's the case you can bridge the guest's virtual interface to the vlan interface, so the guest won't see the tags. You can't do with the VBox GUI, but the VBox TUI (VBoxManage ) is able to do what you want. Let's suppose you want to bridge the host's vlan10 interface with the first virtual interface of a virtual machine named "FreeBSD virtual machine" and let's suppose it will be a virtio interface: VBoxManage modifyvm "FreeBSD virtual machine" --nic1 bridge --nictype bridge virtio --bridgeadapter vlan10 Actually I'm using this kind of setup with around 10 virtual machines, each one serving 5 vlans. It is a very flexible setup because the virtual machines don't need to worry about the physical segmentation of my network, but only the logical segmentation (at IP level). Gustau > > > > _______________________________________________ > 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"