From owner-freebsd-stable Wed Aug 15 10:17:11 2001 Delivered-To: freebsd-stable@freebsd.org Received: from smtp1.sentex.ca (smtp1.sentex.ca [199.212.134.4]) by hub.freebsd.org (Postfix) with ESMTP id 7767737B40D for ; Wed, 15 Aug 2001 10:16:59 -0700 (PDT) (envelope-from mike@sentex.net) Received: from simoeon.sentex.net (pyroxene.sentex.ca [199.212.134.18]) by smtp1.sentex.ca (8.11.1/8.11.1) with ESMTP id f7FHGvl08312; Wed, 15 Aug 2001 13:16:57 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <5.1.0.14.0.20010815125336.04ad75c0@marble.sentex.ca> X-Sender: mdtpop@marble.sentex.ca X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 15 Aug 2001 13:11:21 -0400 To: Mike Hogsett From: Mike Tancsa Subject: Re: VLAN's Cc: freebsd-stable@freebsd.org In-Reply-To: <200108151658.f7FGwOC04876@glob.csl.sri.com> References: <5.1.0.14.0.20010814192514.04e2b4a8@192.168.0.12> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 09:58 AM 8/15/01 -0700, Mike Hogsett wrote: >Thanks this is very helpful. I have been banging on it this morning. >I am using a Cisco Cat 5000 series swtich. Which trunk type should I >be using? I have tried both "isl" and "dot1q" and neither are working >at the moment... Not ISL as its a proprietary Cisco protocol. A sample setup would be something like ! interface FastEthernet0/4 description trunk-gateway-example duplex full speed 100 switchport trunk encapsulation dot1q switchport trunk allowed vlan 1,100,102-150,1002-1005 switchport mode trunk ! interface FastEthernet0/2 description wat-border-int duplex full speed 100 switchport access vlan 102 ! interface FastEthernet0/1 description wat-border-int duplex full speed 100 switchport access vlan 103 ! Plug in your VLAN enabled FreeBSD box to port 4 of the cat. On it try /sbin/ifconfig vlan0 192.168.1.1 netmask 255.255.255.240 vlan 102 vlandev fxp1 mtu 1500 up /sbin/ifconfig vlan1 10.0.0.1 netmask 255.255.255.240 vlan 103 vlandev fxp1 mtu 1500 up On port 2 of your cisco, you have a plain jane IP device with the IP 192.168.1.2/28 On port 1 of your cisco, you have a plain jane IP device with the IP 10.0.0.2/28 From the FreeBSD VLAN box you should be able to do a ping 192.168.1.2 and ping 10.0.0.2. Then try swapping the cables in ports 1 and 2. The devices will not be able to talk to each other or the FreeBSD box if all is setup correctly. >Thanks again, > > - Mike > > > At 04:18 PM 8/14/2001 -0700, Mike Hogsett wrote: > > > > >I have been reading and searching online and at FreeBSD.org for > > >information regarding VLAN's and FreeBSD. What I have found looks > > >promising. From the posts I found in various mail archives at > > >FreeBSD.org it would appear that many people have been using a patch > > >to "fix" the VLAN code for their systems. This patch appears to be > > >for 4.2. Is this patch still required for 4.3-STABLE systems? > > > > from a recent copy of STABLE, > > > > man 4 vlan shows.... > > > > The NICs that support oversized frames are as follows: > > de(4) requires defining BIG_PACKET in the > > /usr/src/sys/pci/if_de.c source file and rebuilding the > > kernel. The hack works only for the 21041, 21140, and > > 21140A chips. > > fxp(4) supports long frames for the vlan natively. > > tl(4) does support long frames. > > tx(4) may begin supporting long frames soon. > > xl(4) supports long frames only if the card is built on a > newer > > chip (Cyclone and above). > > Note: Except for fxp(4), none of the above drivers inform the > vlan driv > > er > > about their support for long frames. Just fix the MTU of a vlan > inter- > > face if it appears to be lower that 1500 bytes after attaching > the vlan > > to a parent interface that is known to support long frames. > > > > > > I have used the fxp card with good results. The only annoying thing is > that > > I see a lot of run frame errors on the switch. I dont see any performance > > hit, but its there none the less. e.g. > > > > ifconfig vlan0 192.168.1.1 netmask 255.255.255.252 vlan 123 vlandev fxp0 > > mtu 1500 up > > > > is all you need. I have a box with a 13 of these interfaces and it does > > what I want with about 20Mb/s throughput. > > > > ---Mike > > > > > > > > > > >Also, does FreeBSD (4.3-STABLE) support Cisco Etherchannel? If so, > > >can I bond two interfaces together then setup VLANs on the logical > > >bonded interface? > > > > > > - Michael Hogsett > > > > > > > > > > > > > > > > > > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org > > >with "unsubscribe freebsd-stable" in the body of the message > > > > -------------------------------------------------------------------- > > Mike Tancsa, tel +1 519 651 3400 > > Network Administration, mike@sentex.net > > Sentex Communications www.sentex.net > > Cambridge, Ontario Canada www.sentex.net/mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message