From owner-freebsd-questions Sun Sep 15 8:22:37 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E4CCC37B400 for ; Sun, 15 Sep 2002 08:22:34 -0700 (PDT) Received: from verdi.nethelp.no (verdi.nethelp.no [194.19.15.2]) by mx1.FreeBSD.org (Postfix) with SMTP id E0DF143E42 for ; Sun, 15 Sep 2002 08:22:31 -0700 (PDT) (envelope-from sthaug@nethelp.no) Received: (qmail 74849 invoked by uid 1001); 15 Sep 2002 15:22:26 +0000 (GMT) To: stesin@breaker.tormoz.net Cc: mike@sentex.net, stable@FreeBSD.ORG, questions@FreeBSD.ORG Subject: Re: Bug? VLANs, fxp, Catalyst and link0 story From: sthaug@nethelp.no In-Reply-To: Your message of "Sun, 15 Sep 2002 18:05:29 +0300 (EEST)" References: <20020915175929.T1070-100000@chour.hostmaster.net.ua> X-Mailer: Mew version 1.05+ on Emacs 19.34.2 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Date: Sun, 15 Sep 2002 17:22:26 +0200 Message-ID: <74847.1032103346@verdi.nethelp.no> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > Why do you need the link0 portion ? > > For "carrier" interface? Sorry I don't know. :( It doesn't work without > it. For vlanXX interfaces, manpage states that link0 enables hardware > (firmware) processing of 802.1q tags in Intel ethernet chips. It is > supposed to work, doesn't it? Here's an example of what works for me: pseudo-device vlan 10 #VLAN support ifconfig_fxp1="up" ifconfig_vlan0="inet 194.19.1.42 netmask 255.255.255.252 vlan 24 vlandev fxp1" ifconfig_vlan1="inet 10.65.0.254 netmask 0xffffff00 vlan 57 vlandev fxp1" On the Cisco 3548 switch: interface FastEthernet0/48 switchport trunk encapsulation dot1q switchport mode trunk Note that the native VLAN on this trunk is VLAN 1, and I'm specifically *not* using this VLAN for anything. (802.1q native VLAN is an incredibly bad idea, IMHO. But that's another discussion entirely.) Steinar Haug, Nethelp consulting, sthaug@nethelp.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message