From owner-freebsd-questions Sun Sep 15 7:42:30 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 2CD1B37B400; Sun, 15 Sep 2002 07:42:27 -0700 (PDT) Received: from cage.simianscience.com (cage.simianscience.com [64.7.134.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FF0743E42; Sun, 15 Sep 2002 07:42:26 -0700 (PDT) (envelope-from mike@sentex.net) Received: from house.sentex.net (fcage [192.168.0.2]) by cage.simianscience.com (8.12.5/8.12.5) with ESMTP id g8FEg7ho027830; Sun, 15 Sep 2002 10:42:07 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <5.1.0.14.0.20020915103800.03d6c5f0@192.168.0.12> X-Sender: mdtancsa@192.168.0.12 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sun, 15 Sep 2002 10:43:53 -0400 To: Andrew Stesin From: Mike Tancsa Subject: Re: Bug? VLANs, fxp, Catalyst and link0 story Cc: stable@FreeBSD.ORG, In-Reply-To: <20020915165141.V871-100000@chour.hostmaster.net.ua> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: amavis-20020220 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 ? Also, whatever you assign fxp0 will be part of the Cisco native VLAN So just try ifconfig_fxp0="inet 10.100.200.1 media 100baseTX mediaopt full-duplex" fconfig_vlan0="inet 10.99.25.1 netmask 255.255.255.0 vlan 25 vlandev fxp0 mtu 1500 up" and so on... Post your Cisco port configs as well. As you are specifying speeds and duplex settings, I take it you are doing the same on your cat right ? It would have to look something like interface FastEthernet0/20 description FreeBSD Internal trunking ports speed 100 duplex full switchport trunk encapsulation dot1q switchport trunk allowed vlan 1,2,23,25,1002-1005 switchport mode trunk ! ---Mike At 05:08 PM 9/15/2002 +0300, Andrew Stesin wrote: >Hi people, > >after long fiddling, now it works. FreeBSD 4.7-PRERELEASE, Cat 2940XL > >Working rc.conf fragment *now* looks this way: > >--- 8< --- > >network_interfaces="lo0 fxp0 fxp1 vlan0 vlan1 vlan2 vlan3 vlan4 vlan5" >ifconfig_lo0="inet 127.0.0.1 netmask 255.0.0.0" > ># fxp0 - "internal" trunk > >ifconfig_fxp0="media 100baseTX mediaopt full-duplex link0 up" >ifconfig_vlan0="inet 10.99.25.1 netmask 255.255.255.0 vlan 25 \ > vlandev fxp0 mtu 1500 up arp" >ifconfig_vlan1="inet 10.99.23.1 netmask 255.255.255.0 vlan 23 \ > vlandev fxp0 mtu 1500 up arp" >ifconfig_vlan2="inet 10.100.2.1 netmask 255.255.255.0 vlan 2 \ > vlandev fxp0 mtu 1500 up arp" > ># fxp1 - "external" trunk > >ifconfig_fxp1="media 100baseTX mediaopt full-duplex link0 up" >ifconfig_vlan3="inet 17.33.33.61 netmask 255.255.255.252 vlan 3 \ > vlandev fxp1 mtu 1500 up arp" >ifconfig_vlan4="inet 12.44.44.30 netmask 255.255.255.252 vlan 4 \ > vlandev fxp1 mtu 1500 up arp" >ifconfig_vlan5="inet 95.55.55.22 netmask 255.255.255.248 vlan 5 \ > vlandev fxp1 mtu 1500 up arp" > >--- 8< --- > >The problem is: as soon as I say "link0" in ifconfigs for vlanXX >interfaces, is just plain doesn't work. Catalyst doesn't see even a >mac-addresses for vlanXX interfaces. > >Another problem is: as soon as I remove "link0" from ifconfigs for >"carrier" interfaces fxp0 and fxp1 - again it doesn't work. > >Am I a single person who encounter the same problem? What I'm doing wrong? >If this *is* a bug (not just stupidity of mine of bad documentation) - how >can I help to correct it? > > >WBR, >Andrew > >P.S. There is no if_ef pseudo-device in the running kernel. There is a >line > pseudo-device vlan 8 > >in config. The box is Supermicro 1U server, 1 >P-III CPU (of 2 possible), ServerWorks chipset, 2 onboard fxp interfaces. > >P.P.S. Also I can't "see" Catalyst "own" IP (seen at `sh in vlan1') after >I do: >ifconfig vlan6 inet 10.100.200.1 netmask 255.255.255.0 vlan 1 \ > vlandev fxp0 mtu 1500 up arp > > >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 Sentex Communications, mike@sentex.net Providing Internet since 1994 www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message