User's Manual

46 MDS Master Station MDS 05-6399A01, Rev. D
Using the CLI to set up a VLAN, four sample commands are shown below for doing this; one with an ID
of
99 and another with an ID of 300:
% set interfaces interface
mgmt_vlan
type vlan
% set interfaces interface
mgmt_vlan
vlan-config vlan-id
99
% set interfaces interface
video_vlan
type vlan
% set interfaces interface
video_vlan
vlan-config vlan-id
300
Operational Modes
As previously shown in previous sections, interfaces can have three separate VLAN modes: none (de-
fault),
trunk, or access. These modes are used to set interface behavior, and examples of their use are pro-
vided below.
Trunk: To add ETH1 as a trunk (tagged) port in both defined VLANs above, the command is:
% set interfaces interface
eth-0/0/0
vlan-mode trunk vlans [
video_vlan mgmt_vlan
]
Access: To set ETH2 as an access port for video_vlan the command is:
% set interfaces interface
eth-0/0/1
vlan-mode access vlan
video_vlan
Native VLANs
A VLAN device may also be specified as a “native” VLAN by checking the Native Vlan box.
Or, using the CLI with this set command:
% set interfaces interface my_native_vlan type vlan vlan-config vlan-id 99 native-vlan true
A native VLAN is conceptually the same as a standard VLAN except that the packets will never be
tagged. The purpose of a native VLAN is to segregate untagged packets on a VLAN trunk port that nor-