From owner-freebsd-stable Thu Feb 22 20:23:22 2001 Delivered-To: freebsd-stable@freebsd.org Received: from netau1.alcanet.com.au (ntp.alcanet.com.au [203.62.196.27]) by hub.freebsd.org (Postfix) with ESMTP id 6EC5D37B503; Thu, 22 Feb 2001 20:23:10 -0800 (PST) (envelope-from jeremyp@gsmx07.alcatel.com.au) Received: from mfg1.cim.alcatel.com.au (mfg1.cim.alcatel.com.au [139.188.23.1]) by netau1.alcanet.com.au (8.9.3 (PHNE_22672)/8.9.3) with ESMTP id PAA24812; Fri, 23 Feb 2001 15:23:02 +1100 (EDT) Received: from gsmx07.alcatel.com.au by cim.alcatel.com.au (PMDF V5.2-32 #37645) with ESMTP id <01K0GD7VKCGGO2K116@cim.alcatel.com.au>; Fri, 23 Feb 2001 15:22:49 +1100 Received: (from jeremyp@localhost) by gsmx07.alcatel.com.au (8.11.1/8.11.1) id f1N4Mwn39837; Fri, 23 Feb 2001 15:22:58 +1100 (EST envelope-from jeremyp) Content-return: prohibited Date: Fri, 23 Feb 2001 15:22:57 +1100 From: Peter Jeremy Subject: Re: 802.1q vlans and STABLE In-reply-to: <4.2.2.20010222215259.03d78d60@marble.sentex.net>; from mike@sentex.net on Thu, Feb 22, 2001 at 10:13:20PM -0500 To: Mike Tancsa Cc: stable@FreeBSD.ORG, freebsd-net@FreeBSD.ORG Mail-Followup-To: Mike Tancsa , stable@FreeBSD.ORG, freebsd-net@FreeBSD.ORG Message-id: <20010223152257.K36182@gsmx07.alcatel.com.au> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.2.5i References: <4.2.2.20010222215259.03d78d60@marble.sentex.net> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 2001-Feb-22 22:13:20 -0500, Mike Tancsa wrote: >are vlans and the fxp driver ready for prime time ? I've been running a system with 6 VLANs on an fxp for about 6 months now without problems. The system has currently been up nearly 3 weeks (following a blackout) and had been up for 2 1/2 months before that. netstat -I gives: aalp02# netstat -i Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll dc0* 1500 08:00:2b:c3:6b:b9 0 0 0 0 0 fxp0 1500 00:d0:b7:20:8f:ee 252636245 0 252026018 0 0 fxp0 1500 none none 252636245 0 252026018 0 0 fxp1* 1500 00:d0:b7:20:bd:ab 0 0 0 0 0 xl0* 1500 00:c0:4f:ba:32:2b 0 0 0 0 0 vlan0 1500 00:d0:b7:20:8f:ee 51854151 0 24998001 0 0 vlan0 1500 net91/24 aalp02-a0 51854151 0 24998001 0 0 vlan1 1500 00:d0:b7:20:8f:ee 0 0 2 0 0 vlan1 1500 net155 aalp02-a1 0 0 2 0 0 vlan2 1500 00:d0:b7:20:8f:ee 90580612 0 128663939 0 0 vlan2 1500 net156 aalp02-l0 90580612 0 128663939 0 0 vlan3 1500 00:d0:b7:20:8f:ee 9104283 0 9104999 0 0 vlan3 1500 net157 aalp02-l1 9104283 0 9104999 0 0 vlan4 1500 00:d0:b7:20:8f:ee 93593008 0 81969794 0 0 vlan4 1500 net158 aalp02-r0 93593008 0 81969794 0 0 vlan5 1500 00:d0:b7:20:8f:ee 7504326 0 7289701 0 0 vlan5 1500 net159 aalp02-r1 7504326 0 7289701 0 0 lo0 16384 8 0 8 0 0 lo0 16384 127 localhost 8 0 8 0 0 ds0* 65532 0 0 0 0 0 aalp02# >http://www.euitt.upm.es/~pjlobo/fbsdvlan.html That's where I got my code last August. I haven't looked to see what has changed since then. I know I have patches for: - set the "Long Receive OK" bit in the i82559 (fxp) [rather than rummage through "error packets"] - support VLANs on the TI ThunderLan (tl driver) - support VLANs on the SMC 9432TX (tx driver) - VLAN support in driver modules for the above drivers - fix VLAN handling in arp(8) - support VLANs in tcpdump(8) [this may be in the generic tree by now] >configuring fxp0, do I just assign it IPs via the vlan interface, or should >I also give fxp0 a normal IP. The fxp0 interface doesn't need an IP address, but you will need to explicitly `up' it with a line in /etc/rc.conf like: ifconfig_fxp0="up media 100baseTX mediaopt full-duplex" > Will it break things if fxp0 has an IP associated with it ? No, but at least the Alcatel (Xylan) switch I'm using won't send `normal' ethernet packets once the port has been designated as a VLAN trunk. >Also, does aliasing of vlan interfaces work as expected ? I don't know any reason why it wouldn't, but haven't tried. I _am_ using proxy ARP on one of the VLAN interfaces. >Is there a limit as to the # of vlan interfaces ? There used to be some hard limits on total interfaces (16 or 32, I can't remember which) - I'm not sure when the fix was MFC'd. I don't believe there is any hard limit on the number of VLANs, but I've never tried more than 6. > Also, do I have any >performance hits if I have too many vlans ? On incoming 802.1Q packets, there's a linear search through a list of known VLAN numbers to determine the destination vlan device. Unless you're planning on lots of VLAN's, this probably isn't an issue. Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message