Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Jan 2012 11:40:37 +0330
From:      saeedeh motlagh <saeedeh.motlagh@gmail.com>
To:        Juli Mallett <jmallett@freebsd.org>
Cc:        freebsd-net@freebsd.org, Alexander Lunev <sol289@gmail.com>, Nikos Vassiliadis <nvass@gmx.com>, Alireza Torabi <alireza.torabi@gmail.com>
Subject:   Re: vlan without ip address
Message-ID:  <CAN%2BS=WDUYFk=uCKVPgdO%2BBZ4q9C=12s3JzPFwHcgCawuz%2BOWfA@mail.gmail.com>
In-Reply-To: <CACVs6=9SMQyZ9FFZn5kx9AjvYJ=ADzwfSQHuH%2B3kAQ7FqcMrRA@mail.gmail.com>
References:  <CAN%2BS=WDLmHuP=V616rtO7mnuzEgOt5GuYMZ4SsxgCWYdUF007g@mail.gmail.com> <CACVs6=-N5%2BL-8Q00sC_hgo=DBYudHT0a%2BQCykAzbiesOyNZZAw@mail.gmail.com> <CAN%2BS=WDd%2BRzhYcMYQCysxuMX5wM5iazw-fBY-W3RPppc3QhRYQ@mail.gmail.com> <CALoU1UMsjMLaXivejT3%2BCmd7XyvkMtmuy6H75PJASuyYjqXDwg@mail.gmail.com> <CAN%2BS=WDXBgfevY5U8LEY3iyssOt385Jps-7D0ijHPU9RZ2VbWQ@mail.gmail.com> <CABk4_A4YG=H9=v4s9u%2BgXtQUqnmmRQVvCcryFJ%2BaL6bNou-7fg@mail.gmail.com> <CAN%2BS=WBenp6k9=qQjvdrPDqjdT3z%2BS2t5o9xyzVteDS28gBnpg@mail.gmail.com> <CABk4_A7UtDcv1HKYkE%2BQcCR5X9cYHjG8-oNcYt7ZPZ-s7PMFyw@mail.gmail.com> <4EF038B9.5050203@gmx.com> <CAN%2BS=WCiubYnOy7rm6PmQNs=jrxKrJ1Emg2W1mJRfq5K1Z=Phw@mail.gmail.com> <4EF18D7D.1050609@gmx.com> <CAN%2BS=WDmfXi8Z3-aAdnG5_xDcjJqx_6FgB734BY34K3B2QSWZA@mail.gmail.com> <4EF61535.4030507@gmx.com> <CAN%2BS=WCfmBvzEe9_fabAmT-OxxVWF6B7SSxrcjzWbnP8BhNTbg@mail.gmail.com> <4EF8394F.8050108@gmx.com> <CAN%2BS=WBGiNcWr9NtawyFy-CgDixyc9EfT8mUUE%2BhvTsT7fJR8A@mail.gmail.com> <4EFAE551.8040101@gmx.com> <CAN%2BS=WDZp9i6FOngTb=UPRB6o2ftxg9HhpuehWV3Ott_ekirRA@mail.gmail.com> <CACVs6=9SMQyZ9FFZn5kx9AjvYJ=ADzwfSQHuH%2B3kAQ7FqcMrRA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
[image: untitled.bmp]
thank you guys,
the above picture is my network topology. as you see, i have four end point
systems in the same range ip. three of them (c1, c3, c4) are the member of
vlan1 and the other one (c2) is the member of vlan2. these three systems
should ping each other and should not ping c2.
there are three important points for me:
1- all of the vlans configurations should be done on the middle freebsd box
which acts as switch and no vlan is defined on the end points.
2- the middle freebsd box should not have any ip addresses.
2- we can ping c4 from the other members of vlan1. in the other words, the
middle freebsd box should be able to communicate with the remaining devices
of the network (which can includes cisco switches).
any suggestion for the configuration of the middle freebsd box to do this
scenario, would be appreciated.
yours


On Sun, Jan 1, 2012 at 2:00 AM, Juli Mallett <jmallett@freebsd.org> wrote:

> On Sat, Dec 31, 2011 at 03:26, saeedeh motlagh
> <saeedeh.motlagh@gmail.com> wrote:
> > thank you guys for your answers but my problem is not solved yet:((
> >
> > the thing is, i wanna have something like this:
> > a freebsd box which acts like switch (for example cisco 2960). i want to
> > define vlanX on one interface (without any ip address) and it tags any
> > passing packets through that interface as vlanX (any passing packet will
> > have vlanX ID).
>
> Did you see my previous message about VLAN interfaces in FreeBSD not
> being like the VLANs one can define in a switch?  You do not need the
> interface to add any tag to incoming packets, if that is what you are
> saying.  Have you tried just bridging the interfaces without VLANs to
> see if that does what you want?
>
> You may also be adding the VLAN in the wrong place.  If you create an
> interface em0.4, which is tagged VLAN 4 on em0, then any incoming
> packet on em0 which has a VLAN tag of 4 will appear on em0.4.  If you
> send any packets on em0.4, then they will be sent out em0 with a VLAN
> tag of for VLAN 4 added.  Is that what you want?
>
> It may be helpful for you to draw us a diagram.  Use specific
> examples.  Show an incoming packet.  Does it have a VLAN tag?  If so,
> what is the VLAN number?  What is the name of the physical interface
> on which it arrives?  Do you want that VLAN tag to be removed?  Do you
> want another VLAN tag to be added?  Do you want it bridged to another
> interface?  If so, which interface?  When it comes out that other
> interface, should it have a VLAN tag?  If so, with what VLAN number?
>
> You've mentioned that you're using bridging, then you say you want
> switching, then you give a specific example of a switch you want
> FreeBSD to act like.  FreeBSD will not act like that switch.  You may
> be able to accomplish the same thing, but the performance,
> configuration and operation will be different.  If you want FreeBSD to
> act exactly like a Cisco switch with a few lines in rc.conf, then you
> should probably stop now, FreeBSD is the wrong tool for the job.
>
> If, however, you can be very specific about what it is you want to do,
> instead of just repeating the same things about switches and VLANs,
> then we might be able to help you do it with FreeBSD.  We'd all very
> much like to, but what you're trying to do is not clear.  Forget all
> about what the VLAN interfaces are named, forget all about IP
> addresses, and tell us what you want to do.
>
> Thanks,
> Juli.
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN%2BS=WDUYFk=uCKVPgdO%2BBZ4q9C=12s3JzPFwHcgCawuz%2BOWfA>