Nodegrid OS allows managing layer 2 traffic using VLANs. This document walks you through the process to create a VLAN, add a VLAN to a switch interface, and create a VLAN interface. The instructions are for both Nodegrid GUI and CLI.
Before we
move forward, it’s important to note the terminology of a few items.
- Tagged Ports: Refers to ports that allow multiple VLAN traffic, a.k.a. Trunk Ports.
- Untagged Ports: Refers to a port that removes VLAN tags to outgoing frames and adds VLAN tags to incoming frames, allowing connected devices to communicate within a specific VLAN
- Backplane interface: Backplane settings control the switch interfaces
directly exposed to the Nodegrid Platform.
- netSX Ports: Refers to the switch ports of the device.
How to create a VLAN interface in the OS
Navigate to Network :: Connections. Click Add.
Type the interface name.
Select VLAN in Type field.
Select the Nodegrid interface, in this example, the interface backplane0.
How to Create a VLAN from GUI
How to set Port VLAN ID
Navigate to
Network :: Switch :: Switch Interfaces. Select the interface, click on the
interface name.
Set the Port VLAN ID
Sample configuration
add
set vlan=100
set tagged_ports= netS1
set untagged_ports=netS2,netS3
commit
How to create a VLAN interface in the OS using CLI
Navigate to
/settings/network_connections using cd /settings/network_connections
Use add command to start the interface creation process.
Sample
configuration
set name=Test
set type=vlan
set ipv4_mode=static
set ipv4_address=192.168.0.2
set ipv4_bitmask=255.255.255.0
set ethernet_interface=backplane0
set vlan_id=100
commit
How to set the Port VLAN ID using the CLI
Navigate to /settings/switch_interfaces using cd /settings/switch_interfaces
Select the interface you want to make changes. You can use the command ls to list the available interfaces. In this example, we’ll access netS1 using cd netS1. You can use the show command to see the current settings.
Use the
command set port_vlan_id=<VLAN>, for example, port_vlan_id=100. Run commit
to save the changes.
Note: Make sure the interface status is set as enabled.