# I need help getting tagged VLAN working on SwitchBlox Industrial

**URL:** <https://forum.botblox.org/t/i-need-help-getting-tagged-vlan-working-on-switchblox-industrial/130>\
**Category:** BotBlox Hardware\
**Tags:** switchblox-ind\
**Created:** [January 16, 2024, 11:51am UTC](https://forum.botblox.org/t/i-need-help-getting-tagged-vlan-working-on-switchblox-industrial/130 "2024-01-16T11:51:33Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![botblox\_admin](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/botblox_admin/32/1_2.png) [@botblox\_admin](https://forum.botblox.org/u/botblox_admin)\
**Post date:** [January 16, 2024, 11:51am UTC](https://forum.botblox.org/t/i-need-help-getting-tagged-vlan-working-on-switchblox-industrial/130/1 "2024-01-16T11:51:33Z")

</div>

_– Copied from customer email –_

Can you please help me to configure the industrial switch for VLAN.

Please find attached a diagram of the network we are trying to make. If it is not enough or unclear, let me know.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/botblox1/original/1X/7df226c701f1ec1521f9be6dacabb796cb887715.jpeg)

---

<div class="post-metadata">

**Author:** ![aaron](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/aaron/32/12_2.png) [@aaron](https://forum.botblox.org/u/aaron)\
**Post date:** [January 16, 2024, 11:52am UTC](https://forum.botblox.org/t/i-need-help-getting-tagged-vlan-working-on-switchblox-industrial/130/2 "2024-01-16T11:52:30Z")

</div>

Assuming you’re using ARIES, here are the relevant settings on the VLAN \> Tag Based VLAN tab.

VLAN Classification  
Select "Enable Tag-Based VLAN”

VLAN Port Classification  
Select “Use PVID to classify VLAN” for ports 2-4.  
Select “Use VID to classify VLAN” for port 1

Default VLAN info  
Set port 2 to have “1” (PVID value).

Set port 3 to have “2” (PVID value).  
Set port 4 to have “3” (PVID value).

VLAN tag control  
Set Port 1 to add the tag.  
Set Port 2-4 to remove the tag

VLAN table

Reset the VLAN table. Set “VID0” to have ports 1, 2 as members. Set “VID1” to have ports 1, 3 as members. Set “VID2” to have ports 1, 4 as members.

Also, I noticed that you configured a VLAN group with VID = 1. VID=1 is the default PVID used in almost all switch chips and is generally not recommended to use as a configurable VLAN. I’ve done the register settings above with VID = 1 as in your diagram but I would recommend using VID=2, VID=3, VID=4 for ports 2, 3 and 4 respectively.

---

<div class="post-metadata">

**Author:** ![botblox\_admin](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/botblox_admin/32/1_2.png) [@botblox\_admin](https://forum.botblox.org/u/botblox_admin)\
**Post date:** [January 16, 2024, 11:53am UTC](https://forum.botblox.org/t/i-need-help-getting-tagged-vlan-working-on-switchblox-industrial/130/3 "2024-01-16T11:53:42Z")

</div>

Thank you for the configuration and the advice about VID = 1, I have made an adjustment into diagram.

However, after trying and changing settings it did not work out for me. To make sure I have a connection, if I turn on the flooding, it is working.

Can you please take a look at the configurations. Should the VID in the VLAN Table match the VLAN ID exactly or is it VLAN ID -1?

Please find attached new diagram, configuration, host (ubuntu netplan config) and dev1 (windows ip config, vlan is not set).  
 ![image](https://canada1.discourse-cdn.com/flex027/uploads/botblox1/original/1X/42a55e9d88b7b28df886b9a7117dc86faa7ad0c5.jpeg)

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/botblox1/original/1X/58e440a99982ecad2e95eb6ef5d0f1c930a580f1.jpeg)  
 ![image](https://canada1.discourse-cdn.com/flex027/uploads/botblox1/original/1X/6e532a714f60e9ca7838284d6456dee03b92f579.jpeg)  
 ![image](https://canada1.discourse-cdn.com/flex027/uploads/botblox1/original/1X/afead8da687b6196b19804c2acd194bb60216e0e.png)

---

<div class="post-metadata">

**Author:** ![aaron](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/aaron/32/12_2.png) [@aaron](https://forum.botblox.org/u/aaron)\
**Post date:** [January 16, 2024, 11:54am UTC](https://forum.botblox.org/t/i-need-help-getting-tagged-vlan-working-on-switchblox-industrial/130/4 "2024-01-16T11:54:05Z")

</div>

No problem it’s a good question.

So the VID in the VLAN table are ordinal, i.e. VID0=first configurable VLAN, VID1= second, etc in order of VID size - up to a maximum number of 16 configurable VLANs. For example, for your setup, the first VLAN has ID=2, hence that is VID0 in the table. ID=3 is VID1, etc.

To summarise, try:

VID0: ports 1, 2

VID1: ports 1, 3

VID2: ports 1, 4

In the VLAN table.

I appreciate this may be confusing as it isn’t mentioned in the GUI. I’ll look into how I can we make this clearer.

---

<div class="post-metadata">

**Author:** ![botblox\_admin](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/botblox_admin/32/1_2.png) [@botblox\_admin](https://forum.botblox.org/u/botblox_admin)\
**Post date:** [January 16, 2024, 11:55am UTC](https://forum.botblox.org/t/i-need-help-getting-tagged-vlan-working-on-switchblox-industrial/130/5 "2024-01-16T11:55:48Z")

</div>

Tried with new VLAN table, still no result. If I turn off Enable Tag-Based VLAN or turn on Uknown VID Mode, then it is working. But I think flooding is not an option.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/botblox1/original/1X/ddd3cb1b22d689df4e26b1b84b38ef520ded06cc.jpeg)

---

<div class="post-metadata">

**Author:** ![aaron](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/aaron/32/12_2.png) [@aaron](https://forum.botblox.org/u/aaron)\
**Post date:** [January 16, 2024, 11:56am UTC](https://forum.botblox.org/t/i-need-help-getting-tagged-vlan-working-on-switchblox-industrial/130/6 "2024-01-16T11:56:36Z")

</div>

Just to check, did you erase the existing firmware before flashing the new configuration?

You can also use Raw Reg Access tab to print register values for me to inspect. If you get a printout of the current values, send them to me to check

Another thing are pcap files taken from network captures on your ethernet interfaces on your host and devX devices. Is it possible for you to provide those? You’ll be able to see whether frames are tagged with 801.2Q tags. Wireshark is a good place to start if you haven’t done network captures on your devices.

---

<div class="post-metadata">

**Author:** ![botblox\_admin](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/botblox_admin/32/1_2.png) [@botblox\_admin](https://forum.botblox.org/u/botblox_admin)\
**Post date:** [January 16, 2024, 11:58am UTC](https://forum.botblox.org/t/i-need-help-getting-tagged-vlan-working-on-switchblox-industrial/130/7 "2024-01-16T11:58:39Z")

</div>

I never erased/upload firmware, what I do is:

Connect serial and power to the switch (out of the box)  
Open tab VLAN \> Tagged Based VLAN  
Setup configuration as on the image provided before  
Press Write VLAN Config

I can read Raw Reg Access, can you please specify which parameters to put for it?

---

<div class="post-metadata">

**Author:** ![aaron](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/aaron/32/12_2.png) [@aaron](https://forum.botblox.org/u/aaron)\
**Post date:** [January 16, 2024, 11:59am UTC](https://forum.botblox.org/t/i-need-help-getting-tagged-vlan-working-on-switchblox-industrial/130/8 "2024-01-16T11:59:06Z")

</div>

Apologies when I said “erased firmware”, I meant to say “erased EEPROM”. The EEPROM is used for storing configurations you want to be non-volatile.

In this case, the PHY and REG to read are as follows:

PHY, REG

23, 1 - VLAN group control register

23, 7 - port 1 PVID

23, 8 - port 2 PVID

23, 9 - port 3 PVID

23, 11 - port 4 PVID

23, 12 - port 5 PVID

23, 13 - VLAN add tag

23, 14 - VLAN remove tag

24, 0 - VLAN valid entries

24, 1 - VID0

24, 2 - VID1

24, 3 - VID2

24, 17 - VLAN member of VID0 and VID1

24, 18 - VLAN member of VID2 and VID3

If you could send me those values after both a power cycle and writing the VLAN configuration as you currently have it, that would be great.

---

<div class="post-metadata">

**Author:** ![botblox\_admin](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/botblox_admin/32/1_2.png) [@botblox\_admin](https://forum.botblox.org/u/botblox_admin)\
**Post date:** [January 16, 2024, 11:59am UTC](https://forum.botblox.org/t/i-need-help-getting-tagged-vlan-working-on-switchblox-industrial/130/9 "2024-01-16T11:59:20Z")

</div>

I have never stored EEPROM and it is all zero if I read it.

After power cycle and writing config, these are the values:

PHY, REG  
23, 1 - VLAN group control register = 22748  
23, 7 - port 1 PVID = 1  
23, 8 - port 2 PVID = 2  
23, 9 - port 3 PVID = 3  
23, 11 - port 4 PVID = 4  
23, 12 - port 5 PVID = 1  
23, 13 - VLAN add tag = 4  
23, 14 - VLAN remove tag = 88

24, 0 - VLAN valid entries = 0  
24, 1 - VID0 = 1  
24, 2 - VID1 = 2  
24, 3 - VID2 = 3  
24, 17 - VLAN member of VID0 and VID1 = 5132  
24, 18 - VLAN member of VID2 and VID3 = 68

---

<div class="post-metadata">

**Author:** ![aaron](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/aaron/32/12_2.png) [@aaron](https://forum.botblox.org/u/aaron)\
**Post date:** [January 16, 2024, 11:59am UTC](https://forum.botblox.org/t/i-need-help-getting-tagged-vlan-working-on-switchblox-industrial/130/10 "2024-01-16T11:59:39Z")

</div>

I think I know the issue.

You’ll see that in ‘Raw Reg Access’, you can write back the same configuration manually. In this case I’d like you to write back the same values you sent me with the following changes:

24, 0 - VLAN valid entries = 7 (decimal)

24, 1 - VID0 = 2

24, 2 - VID1 = 3

24, 3 - VID2 = 4

One thing I forgot to ask earlier, when writing the VLAN configuration, did you click “Set VLAN Table” as well as “Write VLAN Config” after setting the values in the GUI?

---

<div class="post-metadata">

**Author:** ![botblox\_admin](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/botblox_admin/32/1_2.png) [@botblox\_admin](https://forum.botblox.org/u/botblox_admin)\
**Post date:** [January 16, 2024, 11:59am UTC](https://forum.botblox.org/t/i-need-help-getting-tagged-vlan-working-on-switchblox-industrial/130/11 "2024-01-16T11:59:52Z")

</div>

I have written the changes you proposed, and it has started to work as expected. Will keep testing …

Before when booting the switch and going to VLAN settings, I only press Reset VLAN Table (to clear table from green to grey), setup configuration as on the image and after that press Write VLAN Config.  
So what should be the procedure not to manually write Raw Access Memory?

Also, how can I save my current configuration to EEPROM so I don’t need to configure it every boot?

---

<div class="post-metadata">

**Author:** ![aaron](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/aaron/32/12_2.png) [@aaron](https://forum.botblox.org/u/aaron)\
**Post date:** [January 16, 2024, 12:00pm UTC](https://forum.botblox.org/t/i-need-help-getting-tagged-vlan-working-on-switchblox-industrial/130/12 "2024-01-16T12:00:16Z")

</div>

Please follow the example below which explains how to capture the specific commands sent, and then send them to the EEPROM on SwitchBlox Industrial so they will run at bootup automatically.

> **[Notion – The all-in-one workspace for your notes, tasks, wikis, and databases.](https://botblox.notion.site/5-4-Writing-and-Reading-EEPROM-be2025abdb7f411d88cc6a1f69f8809b)**
>
> A new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team

Essentially, you first click “record user input for EEPROM”, then you go and do the specific configurations you need in VLAN. Those configurations are captured in the ARIES software, and then you write them to the EEPROM on SwitchBlox Industrial.

---

<div class="post-metadata">

**Author:** ![aaron](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/aaron/32/12_2.png) [@aaron](https://forum.botblox.org/u/aaron)\
**Post date:** [January 16, 2024, 12:01pm UTC](https://forum.botblox.org/t/i-need-help-getting-tagged-vlan-working-on-switchblox-industrial/130/14 "2024-01-16T12:01:18Z")

</div>

Welcome. I realise the documentation on setting VLANs isn’t present in our notion page, so we’ve now added that, see the link below.

> **[Notion – The all-in-one workspace for your notes, tasks, wikis, and databases.](https://botblox.notion.site/5-5-VLAN-configuration-4c61d21f188c4dd2b5ae1f1b5439a30c)**
>
> A new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team

---

<div class="post-metadata">

**Author:** ![botblox\_admin](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/botblox_admin/32/1_2.png) [@botblox\_admin](https://forum.botblox.org/u/botblox_admin)\
**Post date:** [January 20, 2024, 4:47pm UTC](https://forum.botblox.org/t/i-need-help-getting-tagged-vlan-working-on-switchblox-industrial/130/15 "2024-01-20T16:47:21Z")

</div>

I have tried to Record User Input:

Turn On Record in EEPROM tab  
Apply VLAN Config  
Write Raw Reg Access values

Please find recorded values below. However , it is more than can be saved. Is there is a way to save these config on EEPROM?

1 17 00 00 00  
2 17 01 DC 58  
3 17 02 DC 04  
4 17 07 01 00  
5 17 08 02 00  
6 17 09 03 00  
7 17 0B 04 00  
8 17 0C 01 00  
9 17 0D 04 00  
10 17 0E 58 00  
11 18 11 0C 14  
12 18 12 44 00  
13 18 13 00 00  
14 18 14 00 00  
15 18 15 00 00  
16 18 16 00 00  
17 18 17 00 00  
18 18 18 00 00  
19 18 00 07 00  
20 18 01 02 00  
21 18 02 03 00  
22 18 03 04 00

---

<div class="post-metadata">

**Author:** ![aaron](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/aaron/32/12_2.png) [@aaron](https://forum.botblox.org/u/aaron)\
**Post date:** [January 20, 2024, 4:53pm UTC](https://forum.botblox.org/t/i-need-help-getting-tagged-vlan-working-on-switchblox-industrial/130/16 "2024-01-20T16:53:31Z")

</div>

Yes I believe you can shorten it.

Try:

17 01 DC 58  
17 02 DC 04  
17 08 02 00  
17 09 03 00  
17 0B 04 00  
17 0D 04 00  
17 0E 58 00  
18 11 0C 14  
18 12 44 00  
18 00 07 00  
18 01 02 00  
18 02 03 00  
18 03 04 00

The other values can rely on the existing defaults within the chip.

---

<div class="post-metadata">

**Author:** ![botblox\_admin](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/botblox_admin/32/1_2.png) [@botblox\_admin](https://forum.botblox.org/u/botblox_admin)\
**Post date:** [January 20, 2024, 4:54pm UTC](https://forum.botblox.org/t/i-need-help-getting-tagged-vlan-working-on-switchblox-industrial/130/17 "2024-01-20T16:54:08Z")

</div>

Unfortunately, I cannot modify or edit “EEPROM Configuration to write” table. Is there is a way to do it?

---

<div class="post-metadata">

**Author:** ![josh\_elijah](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/josh_elijah/32/568_2.png) [@josh\_elijah](https://forum.botblox.org/u/josh_elijah)\
**Post date:** [January 20, 2024, 4:54pm UTC](https://forum.botblox.org/t/i-need-help-getting-tagged-vlan-working-on-switchblox-industrial/130/18 "2024-01-20T16:54:35Z")

</div>

Go to the “Raw Reg Access” tab and you can write each of those values, one by one. The values Aaron sent are in Hexadecimal format, so make sure you select that in “Display Format”.

---

<div class="post-metadata">

**Author:** ![botblox\_admin](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/botblox_admin/32/1_2.png) [@botblox\_admin](https://forum.botblox.org/u/botblox_admin)\
**Post date:** [January 20, 2024, 4:54pm UTC](https://forum.botblox.org/t/i-need-help-getting-tagged-vlan-working-on-switchblox-industrial/130/19 "2024-01-20T16:54:48Z")

</div>

I got this. However, are you planning to make a feature to upload config file or make this table editable? Imagine I have many switches and all need to be configured.

---

<div class="post-metadata">

**Author:** ![josh\_elijah](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/josh_elijah/32/568_2.png) [@josh\_elijah](https://forum.botblox.org/u/josh_elijah)\
**Post date:** [January 20, 2024, 4:56pm UTC](https://forum.botblox.org/t/i-need-help-getting-tagged-vlan-working-on-switchblox-industrial/130/20 "2024-01-20T16:56:47Z")

</div>

Ah I see. Yeah that’s currently not possible and I can see that’s going to be a pain for bulk uploads. That’s a very easy software change, I’ll push that through this weekend and come back with an updated ARIES executable.

---

<div class="post-metadata">

**Author:** ![josh\_elijah](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/josh_elijah/32/568_2.png) [@josh\_elijah](https://forum.botblox.org/u/josh_elijah)\
**Post date:** [January 21, 2024, 8:11pm UTC](https://forum.botblox.org/t/i-need-help-getting-tagged-vlan-working-on-switchblox-industrial/130/21 "2024-01-21T20:11:03Z")

</div>

We’ve now added the ability to modify the “EEPROM to write” directly, and released a new version of ARIES which can be downloaded in the link below.

> **[GitHub - botblox/ARIES-Software: The BotBlox ARIES Switch Management Software](https://github.com/botblox/ARIES-Software)**
>
> The BotBlox ARIES Switch Management Software. Contribute to botblox/ARIES-Software development by creating an account on GitHub.

To use this feature, follow the steps below.

1. Open ARIES and navigate to the EEPROM tab. Click “Record input for EEPROM”

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/botblox1/original/1X/4c5c06116200f4fe4c2100ff36cf0e94159d321f.png)

1. Go to the other tabs to perform the writes needed to configure the switch as required. Then go back to the EEPROM tab to view the captured configuration commands.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/botblox1/original/1X/0c6342e7929b468c11b4d9f8c6d2477b182c505d.png)

1. Click “Hide tables” to display the raw commands that are to be sent. Right click the box and click “Copy Data”

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/botblox1/original/1X/e3cfcb9188dcd47c35f80837e06766031209d320.png)

1. Click “Manual EEPROM Control”. A pink box will appear that can be edited.  

2. Right-click in the pink box and click “Paste Data” to paste the commands you just copied.  

1. Now click “Write to EEPROM” as before.  
 ![image](https://canada1.discourse-cdn.com/flex027/uploads/botblox1/original/1X/b29ad792caf02539e0756f37ee15735de3e5504e.png)

You can repeat from step 5 onwards to quickly program other boards in succession.
