SG-1100 multiple VLANs on one port

I have been attempting to add a new VLAN to my SG-1100, to provide a second LAN called ‘LAN2’ with no luck. I already use the SG-1100 LAN and OPT ports for LAN and IOT (‘internet of things’) sucessfully.

I want to add my new LAN2 network to the OPT port, shared with the existing IOT network, but I have not properly undestood how the SG-1100 interal switch works and need some guidance…

So, how to do this? I have read the Netgate docs for the SG-1100 - but they chose to give a single example of configuring the SG-1100 to make the OPT port also be a member of the LAN network (both LAN and OPT ports are LAN network ports). I want two networks on the same port, which are tagged and therefore can be filtered by downstream swiches - not two ports on the same network. Irritating!

The SG-1100 contains an embedded Marvell switch that itself uses VLANs, with a single ethernet port for the system and three external ports on an embedded switch. Clever. There are pfsense menus to define the internal switch, the networks and how they are assigned to the ports on the switch:

  1. Interfaces > Assignments
  2. Interfaces > Switches

Note: the Swtiches menu item only exists on Netgate hardware and is not shown on Cummunity Edition installs of pfsense.

The Switches menu page (on a SG-1100) contains only one item for the Marvel 6000 embedded switch, which itself shows up 4 ports:

  1. Uplink,
  2. WAN,
  3. LAN and
  4. OPT.

The uplink port is internal and the last 3 are the physical ports. These ports cannot be added to as they represent what the hardware provides.

There are also a number of VLANs defined with the switch, which can be altered and extended. Care must be taken or you cut yourself off. Don’t ask. Thank goodness there is a serial inteface, yes?

The VLANs are for the uplink to the single ethernet interface of the SG-1100 system (on a chip), and the three physical ports:

  1. Uplink with VID 1 (this is the SOC ethernet interface)
  2. OPT with VLAN ID 4092
  3. LAN with VLAN ID 4091
  4. WAN with VLAN ID 4090

Where I am mildly confised is the VLAN ‘members’ column, Uplink, OPT, LAN and WAN each have ‘members’ defined that I believe are the ports of the internal switch.

SG1100-switch-vlans

Netgate doesn’t explain what ‘members’ are, so we have to guess. This is where I am likely going wrong.

I can see that OPT has VLAN tag 4092, has members 0t and 1 that I take to mean: port 0 tagged packets, and port 1 untagged packets. Also, VLAN ID 4092 is assigned to the network interface called ‘IOT’:

I believed I need to:

  1. Add a new Switch VLAN (for the new network LAN2), give it a VLAN tag 4
  2. Set the members of the new VLAN 4 to: 0t, 1t
  3. Update the members of the existing VLAN 4092 to: 0t, 1t
  4. Assign a new network to mvneta VLAN 4, name it LAN2, enable it and then set the DHCP network range etc.
  5. Update my downsteam switch port connected to the SG-1100 OPT port so it expects tagged packets for IOT and LAN2…

This does not work, as my existing IOT network from the OPT port collapses. I have theories:

a) The members settings for IOT and LAN2 are wrong. This is the first thing to tackle with some feedback,
b) The downstream switch VLAN config is wrong. Likely.

Anyone care to explain the Switch VLAN member settings?
Also, am I incorrect making the assumption that I need to change from untagged packets from the OPT (for IOT) port to tagged packets (for IOT and LAN2) to they can share the single port?

I know this is TLDR, but it may help those who follow me, and I will post an update explanation when I get this figured out.

Thanks,

Due to the extra steps in these devices, I have a video dedicated to how to set that up here https://youtu.be/Bp_B79-WLlU

3 Likes

Thanks Tom! It’s getting to the stage where you can prefix most resonses with “I have a video on that…”. I will take a look at that video for sure. If I solve my puzzle I will post back here.

I have fixed my problems, which were because of at least two errors on my part. I was close, but an inch is as good as a mile in this game…

Many thanks to Tom, for pointing out the video he made on the subject. Embarrassingly (for me) I found I had already liked the video!

So, what errors had I made?

  1. When setting which ports the new LAN2 VLAN was a member of, I then incorrectly also updated the other VLAN sharing the same ports to also be tagged (previously untagged on port 1). I thought it would be required, but not so. The untagged packets are permitted to be mixed with the (new) tagged VLAN packets - as long as #2 (below) is observed.

  2. I had to set the downstream switch port (physically connected to the sg-1100 OPT port) to assume a VLAN ID 3 for untagged packets. I suspect most switch manufacturers will default ports to assume VLAN ID 1 (LAN), but my case was different as I had put my internet-of-things on OPT with VLAN ID 3.

  3. Although it was not a cause of an issue I also set the backbone ports between downstream switches to ‘trunk mode’. Zyxel docs say this is so any packets with any VLAN tag (or untagged) would be permitted. I had explicitly added the ports to each VLAN, so it did work, but adding more would break it unless I remember to also add new VLANs to both switches connected by the backbone in the future.

1 Like