Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Aug 2008 07:39:20 +0200
From:      "Younger Wang" <Younger.Wang@packetfront.com>
To:        <freebsd-net@freebsd.org>
Subject:   (Netgraph problem)  Inner tag and outer tag swapped
Message-ID:  <E04A1AC327C07042AB62CB2A7390E7AF0115A727@slipper.int.packetfront.com>

next in thread | raw e-mail | index | archive | help
Hi,

=20

fxp0 is connected to a trunk port. Frames tagged with VID=3D201 arrives =
at
fxp0 from a switch trunk port, I expect it will be captured at hub_QinQ,
with outer tag =3D 4000, and inner tag =3D 201. But in fact, it was =
received
with the outer and inner tags reversed.

=20

But if I inject the same frame on hub_c4000, the frame is received at
hub_QinQ as expected (inner tag =3D 201, outer tag =3D 4000). I am =
really
confused. Has anyone seen the same problem? Big thanks.

=20

Here is my netgraph setup:

=20

ngctl mkpeer fxp0: hub lower physical

ngctl name fxp0:lower hub_c4000

=20

ngctl mkpeer hub_c4000: vlan up vlan4000

ngctl name hub_c4000:up vlan_QinQ

=20

ngctl mkpeer vlan_QinQ: hub downstream down0

ngctl name vlan_QinQ:downstream hub_QinQ

=20

ngctl msg vlan_QinQ: addfilter { vlan=3D4000 hook=3D"vlan4000" }

=20

BR

Younger Wang

=20

=20




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E04A1AC327C07042AB62CB2A7390E7AF0115A727>