From owner-freebsd-questions@FreeBSD.ORG Sun Apr 27 18:26:17 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 276F3106567F for ; Sun, 27 Apr 2008 18:26:17 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (unknown [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 13C378FC17 for ; Sun, 27 Apr 2008 18:26:15 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from crab.unsane.co.uk (crab.unsane.co.uk [10.0.0.111]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id m3RIPaOk018124 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 27 Apr 2008 19:25:46 +0100 (BST) (envelope-from jhary@unsane.co.uk) Message-ID: <4814C512.1030706@unsane.co.uk> Date: Sun, 27 Apr 2008 19:25:22 +0100 From: Vince User-Agent: Thunderbird 2.0.0.12 (X11/20080426) MIME-Version: 1.0 To: =?ISO-8859-2?Q?Nejc_=A9koberne?= References: <1209310959.10040.116.camel@localhost> <4814A0E9.4010005@skoberne.net> In-Reply-To: <4814A0E9.4010005@skoberne.net> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit Cc: martes@mgwigglesworth.com, User Questions Subject: Re: VLAN Trunking with Freebsd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Apr 2008 18:26:17 -0000 Nejc Škoberne wrote: > Hey, > >> I am sure this topic has been discussed before, however, I have been >> coming across unanswered inquiries within the last two months about >> possibly using the trunking aspect of 802.1q standard network routing, >> with only freebsd. >> I have attempted to create mulitple vlan interfaces and have failed, on >> 6.3-Stable. >> Does anyone know if the vlan emplimentation on Freebsd allows for >> trunking or, at the least, multiple vlans per physical device? > > This is my config: > > cloned_interfaces="vlan2 vlan3 vlan4 vlan5" > ifconfig_re0="inet 192.168.1.62 netmask 255.255.255.192" > ifconfig_re1="inet 192.168.1.254 netmask 255.255.255.128" > ifconfig_bge0="inet a.b.c.d netmask 255.255.255.240" > ifconfig_em0="up" > ifconfig_vlan2="192.168.41.1 vlan 2 vlandev em0" > ifconfig_vlan3="192.168.19.3 vlan 3 vlandev em0" > ifconfig_vlan4="192.168.42.1 vlan 4 vlandev em0" > ifconfig_vlan5="192.168.100.1 vlan 5 vlandev em0" > > re0, re1, bge0 are ordinary interfaces (non-802.1q), and em0 is > connected to a switch > with 802.1q support. > If you are just creating from the command line and want cisco router like subinterfaces, the following works (I have the vlan module built into my kernel might need to load it otherwise.) root@crab (19:22:09 <~>) 0 # ifconfig bge0.1 ifconfig: interface bge0.1 does not exist root@crab (19:22:13 <~>) 0 # ifconfig bge0.1 create root@crab (19:22:15 <~>) 0 # ifconfig bge0.1 bge0.1: flags=8842 metric 0 mtu 1500 options=3 ether 00:e0:81:2d:a3:16 media: Ethernet autoselect (100baseTX ) status: active vlan: 1 parent interface: bge0 root@crab (19:22:17 <~>) 0 # ifconfig bge0.1 destroy Not certain how thats represented in rc.conf, Will have a look. Vince > HTH, > Nejc > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"