Skspruce Technologies Inc. WIA3200 Manuel D’Utilisation

Page de 94
 
20                                                                                                                      JadeOS User Manual   
Command Description 
Vlan 2 
Create vlan 2 
vlan 3 name "VLAN3"
 
Create vlan 3,and name as“vlan 3” 
No vlan 2 
delete vlan 2 
Table 4-1 command descriptions 
4.3 Adding Ethernet Port into VLAN 
The Ethernet port can be set in access mode or trunk mode, and then added into a 
VLAN. The Ethernet port is in access mode by default. If it is set in trunk mode, the 
port can carry data of multi VLAN Tag. 
The port channel can be set in access mode or trunk mode. By default, a port channel 
is in access mode and carries traffic only for the VLAN that is assigned. In trunk 
mode, a port channel can carry traffic for multiple VLANs. 
¾  Configure Port in access mode 
Step 1    Enter physical interface mode 
interface gigaethernet <slot/port> 
step 2  Configure layer-2 interface mode 
switchport mode access 
step 3    Add into the corresponding vlan 
switch access vlan <vlan-id> 
For example, add gigabitethernet 1/2 into access vlan 2 
(JadeOS)(config) #interface gigabitethernet 1/2 
(JadeOS)(config-if)#switchport mode access 
(JadeOS)(config-if)#switchport access vlan 2 
¾  Configure Port in Trunk Mode 
Step 1    Entering physical interface mode 
Interface gigaethernet 1/0 
Step 2    Configure layer-2 interface mode   
switchport mode trunk 
Step 3    Specify the native vlan id and available vlan tag number respectively 
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 
Table 4-2 parameter Descriptions