For more details, please see ourCookie Policy.


Ethernet Switch

Reply
Occasional Contributor
Posts: 5
Registered: ‎05-10-2017

Programming VLAN on BCM53134

Hello!

Could you please give me some information how to make my BCM53134PO work properly in managed mode. Our scheme:

1) Switch IC is managed by CPU through SPI interface

2) CPU is connected to port 0 of the switch (VLAN 2)

3) Desktop1 is connected to port 2 of the switch (VLAN 4)

4) Desktop2 is connected to port 3 of the switch (VLAN 5)

I want CPU would be able to ping Desktop1 and Desktop2, whereas Desktop1 would not be able to ping Desktop2, and the ARP request would be sent to required port at the beginning of the exchange process.

I've just tried the following steps:

1) setreg 0x34 0x00 0xe3

2) set default vlans

     setreg 0x34 0x10 2 // port0 default VLAN = 2

     setreg 0x34 0x14 4 // port2 default VLAN = 4

     setreg 0x34 0x16 5 // port3 default VLAN = 5

3) add port0, port2, port3 to VLAN2

     setreg 0x05 0x81 2

     setreg 0x05 0x83 0b00001101   // fwd map port0, port2, port3, tagged

     setreg 0x05 0x80 0x80 // write settings

4) add port0, port2 to VLAN4

     setreg 0x05 0x81 4

     setreg 0x05 0x83 0b00000101   // fwd map port0, port2, tagged

     setreg 0x05 0x80 0x80 // write settings

5) add port0, port3 to VLAN5

setreg 0x05 0x81 5

setreg 0x05 0x83 0b00001001   // fwd map port0, port3, tagged

setreg 0x05 0x80 0x80 // write settings

All ingress packets to port2 and port3 (from desktops 1 and 2) are coming to switch IC untagged and BCM53134PO is adding the proper tags to these packets and moving tagged packets to the port 0 (to CPU). Everything is just fine. BUT tagged packets from CPU (port 0) aren't passing the switch IC. I’m using Wireshark on my desktops and I can't detect any packets from CPU at port2 or port3 (desktops). In other words, packet from desktop1 without tag coming to CPU port w tag 81 00 00 04, but packet from CPU w tag: 81 00 00 04 is not coming to desktop1.

UPDATE

1) VLAN settings works OK without tagging

2) Add scheme

screen.jpg

Broadcom
Posts: 300
Registered: ‎02-15-2016

Re: Programming VLAN on BCM53134

Hi,

By double checking your configure, can you follow below setting and verify it again?

========================================

1) setreg 0x34 0x00 0xe3

2) set default vlans

     setreg 0x34 0x10 0x0002 // port0 default VLAN = 2

     setreg 0x34 0x14 0x0004 // port2 default VLAN = 4

     setreg 0x34 0x16 0x0005 // port3 default VLAN = 5

3) add port0, port2, port3 to VLAN2

     setreg 0x05 0x81 0x0002

     setreg 0x05 0x83 0x0000000d   // fwd map port0, port2, port3, tagged

     setreg 0x05 0x80 0x80 // write settings

4) add port0, port2 to VLAN4

     setreg 0x05 0x81 0x0004

     setreg 0x05 0x83 0x00000005   // fwd map port0, port2, tagged

     setreg 0x05 0x80 0x80 // write settings

5) add port0, port3 to VLAN5

     setreg 0x05 0x81 0x0005

     setreg 0x05 0x83 0x00000009   // fwd map port0, port3, tagged

     setreg 0x05 0x80 0x80 // write settings

===========================================

Thanks,

Ryan

Occasional Contributor
Posts: 5
Registered: ‎05-10-2017

Re: Programming VLAN on BCM53134

Hi!

I configured port2 in VLAN4, port3 in VLAN5 as untagged and all works OK

Thanks!

Join the Broadcom Support Community

Get quick and easy access to valuable resources across the Broadcom Community Network.