Code Docs

BloxOsLite (UbiSwitch, SwitchBlox Industrial)

VLANs

📘 Allows VLAN control on the switch’s ports

Adding a VLAN member

vlan add [port <int>] [vid <int>] [{"pvid"}] [{"untagged"}]

Parameters

Property Type Description Required?
port int Port number. Must indicate a port which actually exists
vid int VLAN identifier for VLAN group. Must be between 1 and 4096.
pvid string String literal for whether the VLAN identifier will be added as a the port’s default VLAN information
untagged string String literal for whether the packets egressing from the port should be untagged, as is the case for access ports

Quick Guides

Available on v0.1.0 or higher.

Deleting a VLAN member

vlan del [port <int>] [vid <int>]

Parameters

Property Type Description Required?
port int Port number. Must indicate a port which actually exists
vid int VLAN identifier for VLAN group. Must be between 1 and 4096.

Quick Guides

Available on v0.1.0 or higher.

Saving VLAN configuration

This allows you to save the current VLAN configuration stored in the switch into memory so that the configuration will be written on reset.

vlan save

Available on v0.1.0 or higher.

Clearing VLAN configuration

This allows you to clear the saved VLAN configuration from memory so that on reset, no VLAN configuration will be loaded.

vlan clear

Available on v0.1.0 or higher.

Showing VLAN configuration

vlan show

Available on v0.1.0 or higher.

Table of Contents