From owner-freebsd-net Fri Jun 7 5:34: 1 2002 Delivered-To: freebsd-net@freebsd.org Received: from proton.hexanet.fr (proton.hexanet.fr [81.23.32.33]) by hub.freebsd.org (Postfix) with ESMTP id 83CAC37B400 for ; Fri, 7 Jun 2002 05:33:53 -0700 (PDT) Received: from hexanet.fr (localhost [127.0.0.1]) by proton.hexanet.fr (8.12.3/8.12.3) with SMTP id g57CXpE8030618; Fri, 7 Jun 2002 14:33:51 +0200 (CEST) (envelope-from c.prevotaux@hexanet.fr) Date: Fri, 7 Jun 2002 14:33:51 +0200 From: Christophe Prevotaux To: "Vladimir B. " Grebenschikov Cc: net@freebsd.org Subject: Re: [HELP] IPless VLAN interfaces Message-Id: <20020607143351.6889eb27.c.prevotaux@hexanet.fr> In-Reply-To: <1023451595.531.20.camel@vbook.express.ru> References: <20020606125126.3d44145c.c.prevotaux@hexanet.fr> <1023373804.470.20.camel@vbook.express.ru> <20020607133643.066fcda6.c.prevotaux@hexanet.fr> <1023451595.531.20.camel@vbook.express.ru> Organization: HEXANET Sarl X-Mailer: Sylpheed version 0.7.4 (GTK+ 1.2.10; i386-portbld-freebsd4.4) X-NCC-RegID: fr.hexanet Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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 As I have said before I am using VLAN on FreeBSD ,which is obviously 802.11Q, connected to a switch configured with VLAN 802.11Q ports attached to the FreeBSD Box on one side thru the ethernet interface of that box. On the other side on the same swtich I have vlan ports (802.11Q obviously) which untag packets and deliver them to the boxen behind these VLAN here is a small picture (I hope this does not gets mangled) 802.11Q | --------------+ +--vlan1--+ +-------------+ | FreeBSD Box +- fxp0-+--vlan2--+---Port1-+ Switch +--port4--Host3 --------------+ +--vlan3--+ +---+------+--+ vlan3 | | 802.11Q port2 port3 vlan1 vlan2 802.11Q 802.11Q | | | +---Host2 | +---- Host1 fxp0 has IP in a /24 vlan1 has no IP vlan2 has no IP vlan3 has no IP Host1 has an IP in the same /24 as the fxp0 Host2 has an IP in the same /24 as the fxp0 Host3 has an IP in the same /24 as the fxp0 802.11Q untagging is done at the port2 , port3 and port4 of the switch I add route using the "-iface" option of the "route" command in order to obtain a route that point to each vlan. All of this works under Linux but not under FreeBSD I hope this clarifies what I am trying to do On 07 Jun 2002 16:06:35 +0400 "Vladimir B. "Grebenschikov wrote: > Ð_ Fri, 07.06.2002, в 15:36, Christophe Prevotaux напиÑ_ал: > > All this is very interesting however I don't think this answers my > > question does it ? > > I am a bit not understand for what you have use such strange setup. > > And you have not provide enough information, to help you > I need as minimum > your network topology (how connected and switche(s), what port in > trunc(802.1q) mode, what in not trunc) > > tcpdump -e on your trunc interface (fxp0) and tcpdump's on your client > hosts > while ping one and another direction > > > > > On 06 Jun 2002 18:30:04 +0400 > > "Vladimir B. " Grebenschikov wrote: > > > > > Ã__ Thu, 06.06.2002, Ã_² 14:51, Christophe Prevotaux Ã_½Ã_°Ã_¿Ã_¸Ã__Ã_°Ã_»: > > > > Hello > > > > > > > > I have a small problem I can't seem to be able to solve on > > > > FreeBSD 4-STABLE. > > > > > > > > I want to setup : > > > > > > > > - an interface fxp0 with an IP address with a /24 netmask > > > > - on this interface fxp0 I set up vlan0 vlan1 vlan2 > > > > - each vlan does not have an IP > > > > - I setup a route with the -iface option that point to each vlan > > > > repesctively > > > > > > > > on the other side > > > > > > > > I setup : > > > > machines behind each VLAN port > > > > each machine has an IP with a /24 netmask > > > > > > > > > > > > > > > > the setup works (ie: freebsd does not complain) > > > > however pinging a machine does not work so does any other type of > > > > traffic this does not work under FreeBSD , however when I do the > > > > same thing with Linux it does work. I believe there must be a way to > > > > do this under FreeBSD but I can't figure it out. > > > > > > > > Could someone help me or tell me what I did wrong ? > > > > > > > > > first try to specify source address to ping > > > > > > # ping -S 1.1.1.1 dest > > > > > > where 1.1.1.1 - address on fxp0 > > > > > > and you can set on your vlanX interfaces same addreses ad on your fxp0 > > > with netmask 255.255.255.255 > > > > > > # ifconfig fxp0 1.1.1.1/24 > > > # ifconfig vlan0 1.1.1.1 > > > # ifconfig vlan1 1.1.1.1 > > > # ifconfig vlan2 1.1.1.1 > > > > > > > > > > > > > > -- > > > > =============================================================== > > > > Christophe Prevotaux Email: c.prevotaux@hexanet.fr > > > > HEXANET SARL URL: http://www.hexanet.fr/ > > > > Z.A.C Les Charmilles Tel: +33 (0)3 26 79 30 05 > > > > 3 AllÃ_©e Thierry Sabine Direct: +33 (0)3 26 61 77 72 > > > > BP202 Fax: +33 (0)3 26 79 30 06 > > > > 51686 Reims Cedex 2 > > > > FRANCE HEXANET Network Operation Center > > > > =============================================================== > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > > with "unsubscribe freebsd-net" in the body of the message > > > > > > > -- > > > Vladimir B. Grebenschikov > > > vova@sw.ru, SWsoft, Inc. > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-net" in the body of the message > > > > > > > > > -- > > =============================================================== > > Christophe Prevotaux Email: c.prevotaux@hexanet.fr > > HEXANET SARL URL: http://www.hexanet.fr/ > > Z.A.C Les Charmilles Tel: +33 (0)3 26 79 30 05 > > 3 Allée Thierry Sabine Direct: +33 (0)3 26 61 77 72 > > BP202 Fax: +33 (0)3 26 79 30 06 > > 51686 Reims Cedex 2 > > FRANCE HEXANET Network Operation Center > > =============================================================== > > > -- > Vladimir B. Grebenschikov > vova@sw.ru, SWsoft, Inc. > -- =============================================================== Christophe Prevotaux Email: c.prevotaux@hexanet.fr HEXANET SARL URL: http://www.hexanet.fr/ Z.A.C Les Charmilles Tel: +33 (0)3 26 79 30 05 3 Allée Thierry Sabine Direct: +33 (0)3 26 61 77 72 BP202 Fax: +33 (0)3 26 79 30 06 51686 Reims Cedex 2 FRANCE HEXANET Network Operation Center =============================================================== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message