From owner-freebsd-isp@FreeBSD.ORG Mon Dec 11 16:28:20 2006 Return-Path: X-Original-To: freebsd-isp@freebsd.org Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 48AD516A525 for ; Mon, 11 Dec 2006 16:28:20 +0000 (UTC) (envelope-from fcash@ocis.net) Received: from smtp.sd73.bc.ca (smtp.sd73.bc.ca [142.24.13.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0467A43CD3 for ; Mon, 11 Dec 2006 16:26:46 +0000 (GMT) (envelope-from fcash@ocis.net) Received: from localhost (localhost [127.0.0.1]) by localhost.sd73.bc.ca (Postfix) with ESMTP id C0B501A000B2D for ; Mon, 11 Dec 2006 08:28:01 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at smtp.sd73.bc.ca Received: from smtp.sd73.bc.ca ([127.0.0.1]) by localhost (smtp.sd73.bc.ca [127.0.0.1]) (amavisd-new, port 10024) with LMTP id arHmYHODUSEI for ; Mon, 11 Dec 2006 08:27:51 -0800 (PST) Received: from s10.sbo (s10.sbo [192.168.0.10]) by smtp.sd73.bc.ca (Postfix) with ESMTP id 576351A0007CC for ; Mon, 11 Dec 2006 08:27:51 -0800 (PST) From: Freddie Cash To: freebsd-isp@freebsd.org Date: Mon, 11 Dec 2006 08:27:49 -0800 User-Agent: KMail/1.9.5 References: <200612111801.03438.janasamit@wlink.com.np> In-Reply-To: <200612111801.03438.janasamit@wlink.com.np> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200612110827.49866.fcash@ocis.net> Subject: Re: Problem implementing vlan on release 6.1 amd64 X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Dec 2006 16:28:20 -0000 On Monday 11 December 2006 04:16 am, Samit Jana wrote: > I am stuck making VLAN operational in FreeBSD 6.1-RELEASE , amd64. The > same type config working beautifully over a year in FreeBSD > 4.10-RELEASE. It looks like although ifconfig has created the virtual > interfaces but the kernel doesn't have vlan support at all. While i do > tcpdump on real and virtual interface I don't see any incoming packets > either and my Catalyst 2950 port (both on trunk and access mode) also > doesn't learn the mac of the NIC card. > > Any help or tips appreciated. The process we used to create our vLAN interfaces: ifconfig bge0 up ifconfig vlan100 create ifconfig vlan100 inet 10.0.0.1/24 vlan 100 vlandev bge0 The first line brings the parent interface up and establishes the connection to the switch. The second line create the vlan100 interface. The number can be anything you want, so long as it is unique for all vlan interfaces. The third line configures the IP on the vlan100 interface, sets the vlan number (to tag the packets with) and associates it with the parent interface. Any packets you route through vlan100 will have the vlan 100 tag added/removed as needed. The lines needed in /etc/rc.conf to automate this are: cloned_interfaces="vlan100" ifconfig_bge0="up" ifconfig_vlan100="inet 10.0.0.1/24 vlan 100 vlandev bge0" See the ifconfig(8) and rc.conf(5) man pages, and the comments in /etc/defaults/rc.conf for more info. -- Freddie Cash fcash@ocis.net