From owner-freebsd-net Sat Jul 20 18:47:52 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3ADAB37B400 for ; Sat, 20 Jul 2002 18:47:49 -0700 (PDT) Received: from smtp2.sentex.ca (smtp2.sentex.ca [199.212.134.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id A683443E42 for ; Sat, 20 Jul 2002 18:47:48 -0700 (PDT) (envelope-from mike@sentex.net) Received: from house (cage.simianscience.com [64.7.134.1]) by smtp2.sentex.ca (8.12.5/8.12.4) with SMTP id g6L1llCE019202; Sat, 20 Jul 2002 21:47:47 -0400 (EDT) (envelope-from mike@sentex.net) From: Mike Tancsa To: shubha mr Cc: freebsd-net@freebsd.org Subject: Re: VLAN - testing-urgent! Date: Sat, 20 Jul 2002 21:48:05 -0400 Message-ID: References: <20020719054804.78353.qmail@web14609.mail.yahoo.com> In-Reply-To: <20020719054804.78353.qmail@web14609.mail.yahoo.com> X-Mailer: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org quick example... Use a NIC that is vlan capable. e.g. fxp is very good. Get a 802.1q VLAN capable switch (e.g. a cisco 29xx) in port 1 plug in your fxp card On the Cisco (IP address 10.1.1.2 netmask 255.255.255.252), do something like interface FastEthernet0/1 description vlan trunking port duplex full speed 100 switchport trunk encapsulation dot1q switchport trunk allowed vlan 1,100,101 switchport mode trunk interface FastEthernet0/2 description the-192-network switchport access vlan 100 interface FastEthernet0/3 description the-17-network switchport access vlan 101 On the FreeBSD box (with a kernel entry of pseudo-device vlan 1) =20 ifconfig fxp0 10.1.1.1 netmask 255.255.255.252 media 100baseTX mediaopt full-duplex ifconfig vlan0 192.168.1.1 netmask 255.255.255.0 vlan 100 vlandev fxp0 = mtu 1500 up ifconfig vlan1 create ifconfig vlan1 172.16.1.1 netmask 255.255.255.0 vlan 101 vlandev fxp0 mtu 1500 up ---Mike On Fri, 19 Jul 2002 06:48:04 +0100 (BST), in sentex.lists.freebsd.net you wrote: >Hi, >Would like to know how to test VLAN for ethernet >network driver for a NIC. > >Thanks a lot >shubha > >__________________________________________________ >Do You Yahoo!? >Yahoo! Autos - Get free new car price quotes >http://autos.yahoo.com > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-net" in the body of the message Mike Tancsa (mdtancsa@sentex.net) =09 Sentex Communications Corp, =09 Waterloo, Ontario, Canada "Given enough time, 100 monkeys on 100 routers=20 could setup a national IP network." (KDW2) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message