On 04/04/11 12:59, Yeoh Chun Yeow wrote:
> Hi, Peter and David,
>
> I add the following patch and VLAN tagging working fine for UBNT RS:
>
Interesting find, thanks! Can the port still send *untagged* packets as well, if
you configure untagged membership? When I wrote the driver, I think I explicitly
chose not to set this bit, and it was unneeded for my M chip. Perhaps it means
"ALWAYS send tagged packets", but I would need to check that, it's just a hunch.
I don't have the time right now.
> The only problem nows is the port 1 is activated after port 0 is plugged
> with cable. Any idea how to solve this?
Could you elaborate a bit? I don't quite understand what you mean with
'activated'. DO you see some message in a log or in the output of some command?
>
> One more thing if I try the following /etc/config/network
>
> config 'switch'
> option 'name' 'eth1'
> option 'reset' '1'
> option 'enable_vlan' '1'
> option 'enable' '1'
>
> config 'switch_vlan'
> option 'device' 'eth1'
> option 'vlan' '1'
> option 'vid' '1'
> option 'ports' '0 1 5t'
>
> config 'switch_vlan'
> option 'vlan' '2'
> option 'vid' '2'
> option 'ports' '0t 1t 5t
>
> The VLAN 2 is not working, any idea why?
You forgot
option device eth1
in the vlan 2 definition. I assume the missing quote on the end of the last line
is a copy-paste mistake.
By the way, you don't strictly need to supply "vid". The default is that it is
the same as the 'vlan' entry. You could decide to include it for robustness
against manual tinkering, though.
Peter.
PS: Accidentally replied only to Yeoh. Yeoh, please throw that one away for
thread and reference continuity :).
--
I use the GNU Privacy Guard (GnuPG) in combination with Enigmail.
You can send me encrypted mail if you want some privacy.
My key is available at http://wwwhome.cs.utwente.nl/~lebbing/pubkey.txt
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel