Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Dec 2011 09:31:06 +0330
From:      saeedeh motlagh <saeedeh.motlagh@gmail.com>
To:        Alireza Torabi <alireza.torabi@gmail.com>, freebsd-net@freebsd.org
Subject:   Re: vlan without ip address
Message-ID:  <CAN%2BS=WDXBgfevY5U8LEY3iyssOt385Jps-7D0ijHPU9RZ2VbWQ@mail.gmail.com>
In-Reply-To: <CALoU1UMsjMLaXivejT3%2BCmd7XyvkMtmuy6H75PJASuyYjqXDwg@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>

next in thread | previous in thread | raw e-mail | index | archive | help
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 interface
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 vlan10
on 12 and 25?
please tell me if i'm misunderstanding.
this is the ifconfig for 0.28:
vlan10: flags=3D8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric=
 0
mtu 1500
    options=3D3<RXCSUM,TXCSUM>
    ether 00:27:0e:03:4b:2f
    media: Ethernet autoselect (1000baseT <full-duplex>)
    status: active
    vlan: 10 parent interface: gbeth0
vlan11: flags=3D8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric=
 0
mtu 1500
    options=3D100<TSO4>
    ether 00:30:4f:63:5a:bc
    media: Ethernet autoselect (none)
    status: active
    vlan: 10 parent interface: msk0
bridge0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
1500
    ether d6:c4:f6:0f:5e:4f
    id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
    maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
    root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
    member: vlan11 flags=3D143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
            ifmaxaddr 0 port 6 priority 128 path cost 55
    member: vlan10 flags=3D143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
            ifmaxaddr 0 port 5 priority 128 path cost 20000


On Sat, Dec 17, 2011 at 8:47 PM, Alireza Torabi <alireza.torabi@gmail.com>w=
rote:

> =D9=8EAlso it's a good idea to to attach a ifconfig output.
>
> On 12/17/11, saeedeh motlagh <saeedeh.motlagh@gmail.com> 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 <jmallett@freebsd.org>
> 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
> >> <saeedeh.motlagh@gmail.com> 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 configure=
d
> >> 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 it
> 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 a=
s
> >> 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 i=
t
> >> > 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.or=
g
> "
> >>
> > _______________________________________________
> > 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"
> >
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN%2BS=WDXBgfevY5U8LEY3iyssOt385Jps-7D0ijHPU9RZ2VbWQ>