User's Manual Part 2
20JadeOSUserManual
Command Description
Vlan 2 Create vlan 2
vlan3name"VLAN3"
Create vlan 3,and name as“vlan 3”
Novlan2
delete vlan 2
Table4‐1commanddescriptions
4.3AddingEthernetPortintoVLAN
TheEthernetportcanbesetinaccessmodeortrunkmode,andthenaddedintoa
VLAN.TheEthernetportisinaccessmodebydefault.Ifitissetintrunkmode,the
portcancarrydataofmultiVLANTag.
Theportchannelcanbesetinaccess
modeortrunkmode.Bydefault,aportchan‐
nelisinaccessmodeandcarriestrafficonlyfortheVLANthatisassigned.Intrunk
mode,aportchannelcancarrytrafficformultipleVLANs.
¾ ConfigurePortinaccessmode
Step1Enterphysicalinterfacemode
interface gigaethernet <slot/port>
step2Configurelayer‐2interfacemode
switchport mode access
step3Addintothecorrespondingvlan
switch access vlan <vlan-id>
Forexample,addgigabitethernet1/2 intoaccessvlan2
(JadeOS)(config) #interface gigabitethernet 1/2
(JadeOS)(config-if)#switchport mode access
(JadeOS)(config-if)#switchport access vlan 2
¾ ConfigurePortinTrunkMode
Step1Enteringphysicalinterfacemode
Interface gigaethernet 1/0
Step2Configurelayer‐2interfacemode
switchport mode trunk
Step3Specifythenativevlanidandavailablevlantagnumberrespectively
switch trunk native vlan <vlan-id>
switchport trunk allowed vlan add <vlan-id-list>
Parameter Description
Vlan-id Specify native vlan id
Vlan‐id‐list
Specify available vlan tag
Table4‐2parameterDescriptions