Moxa managed switches support two different VLAN (Virtual Local Area Networks) “modes”: 802.1Q and Port-based. Since 802.1Q is used more often and considering this mode is interoperable with VLANs from other vendors, I will focus on 802.1Q mode here.
In regards to VLANs on Moxa Managed Switches, the administrator should recognize the following. An individual port on any switch shall be either an access port (a single device will be connected to this port for network access) or a trunk port (intended for switch to switch connections and thus must carry all VLAN information). Configuring a port as an access or trunk port is done on a single page in the web configuration of the switch. The page is Virtual LAN-VLAN Settings as shown below. You see here I am showing the two options for the VLAN Mode:
Having selected 802.1Q mode in this example, we continue by assigning the first three ports as access ports in VLAN 1, the next three ports as access ports in VLAN 2, and the final two ports are trunk ports carrying both VLANs. This is typical of what you might see in a Turbo Ring topology with VLANs. Unless there is an explicit need otherwise, all trunk ports are configured with Port VLAN ID 1 and all access ports are configured with Port VLAN ID XXX, where XXX represents the appropriate VLAN. Make sure to hit “Activate” at the bottom of the page if you want to set and save your changes.
Another thing to pay attention to on the page above is the Management VLAN ID assignment. Understand that the web configuration of the device will only be reachable if you have access to the VLAN assigned here, so be careful! If for example, you left the Management VLAN ID as 1 and changed all ports to access ports in VLAN 2, you would have no method to access the switch! At that point, the only remedy would involve getting into the switch via console cable.
Links of Interest