From owner-freebsd-net@FreeBSD.ORG Sun Dec 18 19:23:11 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF0631065672 for ; Sun, 18 Dec 2011 19:23:11 +0000 (UTC) (envelope-from sol289@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 76DB48FC12 for ; Sun, 18 Dec 2011 19:23:11 +0000 (UTC) Received: by iadj38 with SMTP id j38so4937914iad.13 for ; Sun, 18 Dec 2011 11:23:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=ELbFtohG48yJaxI1I+7RBMCyOjOdh5S8EMGz5dBnECI=; b=gGCY9coexhuv+eVKf4KGb2UlP2OhFgz13KlY6YLsMI9Bn3zuYz8B2syk8SupG+Ndw1 fPoMfHStiCQBaiZtSbgt+C2y8ypNAyVudUrZDrDuQP4k9Dg0J5eilW4s9Z/jYWgvf47h ykkMmdYxynyOgmq8MjmvMLhzhGQjzX7WBq3H4= Received: by 10.50.77.194 with SMTP id u2mr23745679igw.2.1324236190119; Sun, 18 Dec 2011 11:23:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.135.34 with HTTP; Sun, 18 Dec 2011 11:22:50 -0800 (PST) In-Reply-To: References: From: Alexander Lunev Date: Sun, 18 Dec 2011 23:22:50 +0400 Message-ID: To: saeedeh motlagh Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org, Alireza Torabi Subject: Re: vlan without ip address X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Dec 2011 19:23:11 -0000 first of all, you should name and number you vlan same, if it's clan10 on the one side, then it's vlan10 on the other side and in betweeen. then (though you have to do it first of all), you should understand how vlan's work, and after that connect ports to each other according to your scheme. -- your sweet isn't ready yet On Sun, Dec 18, 2011 at 10:01 AM, saeedeh motlagh wrote: > i have 3 freebsd system: 0.28 , 0.25 and 0.12 which 28 is assumed to be > switch here. one interface of 28 is connected to 25 and the other interfa= ce > of 28 is connected to 12. as mentioned below, i've defined two vlan10 and > 11 with the same vlan id on the 28 and bridge them. > now i can't ping 0.25 from 0.12. what's wrong here? should i define vlan1= 0 > on 12 and 25? > please tell me if i'm misunderstanding. > this is the ifconfig for 0.28: > vlan10: flags=3D8943 metr= ic 0 > mtu 1500 > =C2=A0 =C2=A0options=3D3 > =C2=A0 =C2=A0ether 00:27:0e:03:4b:2f > =C2=A0 =C2=A0media: Ethernet autoselect (1000baseT ) > =C2=A0 =C2=A0status: active > =C2=A0 =C2=A0vlan: 10 parent interface: gbeth0 > vlan11: flags=3D8943 metr= ic 0 > mtu 1500 > =C2=A0 =C2=A0options=3D100 > =C2=A0 =C2=A0ether 00:30:4f:63:5a:bc > =C2=A0 =C2=A0media: Ethernet autoselect (none) > =C2=A0 =C2=A0status: active > =C2=A0 =C2=A0vlan: 10 parent interface: msk0 > bridge0: flags=3D8843 metric 0 mt= u > 1500 > =C2=A0 =C2=A0ether d6:c4:f6:0f:5e:4f > =C2=A0 =C2=A0id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 > =C2=A0 =C2=A0maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200 > =C2=A0 =C2=A0root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 > =C2=A0 =C2=A0member: vlan11 flags=3D143 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ifmaxaddr 0 port 6 priority 128 = path cost 55 > =C2=A0 =C2=A0member: vlan10 flags=3D143 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ifmaxaddr 0 port 5 priority 128 = path cost 20000 > > > On Sat, Dec 17, 2011 at 8:47 PM, Alireza Torabi wrote: > >> =D9=8EAlso it's a good idea to to attach a ifconfig output. >> >> On 12/17/11, saeedeh motlagh wrote: >> > when i do that, the vlan is defined but from a system in a vlan, i can= 't >> > ping the other one which is in the same vlan. so i think that the vlan= is >> > not working. am i right? >> > >> > On Sat, Dec 17, 2011 at 1:15 PM, Juli Mallett >> wrote: >> > >> >> You probably just need to do ifconfig vlanxxx up instead of assigning= an >> >> IP. >> >> >> >> On Sat, Dec 17, 2011 at 00:08, saeedeh motlagh >> >> wrote: >> >> > hi every body >> >> > >> >> > i wanna configure a freebsd box as a switch. in order to do that, i >> >> bridged >> >> > all my interfaces to have switching and it works fine. after that i >> want >> >> to >> >> > have vlans on it. as you know, in a real switch, a vlan is configur= ed >> >> just >> >> > by assigning a port to it without any additional configuration and >> vlans >> >> > are submitted just by name. but in freebsd a vlan just works when i= t >> has >> >> an >> >> > ip address (i think). when i define vlan121 on two freebsd systems >> with >> >> ip >> >> > address it works fine but without ip address i don't know how it >> should >> >> be >> >> > worked. >> >> > >> >> > can sombody tell me if it is possible to simulate vlans in freebsd = as >> >> they >> >> > are in a real switch? i mean can we have vlans without ip addresses >> >> > which >> >> > works fine? maybe some kind of vlan which works by MAc address. is = it >> >> > possible? >> >> > it's so necessary for me to do that:( >> >> > >> >> > yours, >> >> > motlagh >> >> > _______________________________________________ >> >> > freebsd-net@freebsd.org mailing list >> >> > http://lists.freebsd.org/mailman/listinfo/freebsd-net >> >> > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.o= rg >> " >> >> >> > _______________________________________________ >> > freebsd-net@freebsd.org mailing list >> > http://lists.freebsd.org/mailman/listinfo/freebsd-net >> > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >> > >> > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"