Gigabyte 7014 User Manual

Page of 152
 Rev.  051208 
 
        
page 123 of 152
 
VLAN Related Commands 
 
Add VLAN Entry 
Command Name 
vlan add  
Description  
To create a Port based Virtual LAN  
Syntax 
vlan add  <vlan id> <mgmt port> 
<at least one of: [-untagged <port mask>] or  [-tagged <port mask>]> 
                 [-name <vlan name>] 
[-admit <tagged-only|all>] [-mirror <port-no>] 
Parameters  
vlan-id 
      Unique vlan id (2 ~ 4094). 
mgmt port 
      Either 1 or 0. ‘1’ sets this vlan as a management vlan. 
vlan name 
      Unique vlan name, which can be used to identify the  
      group. The name may include characters and numbers,  
      but should start with an alphabetic. Maximum number of  
      characters must not exceed 25. 
-untagged port mask 
      List of ports that are to be included under this VLAN.  Commas 
      can be used to separate individual ports (2,5,9) and the range can 
      be specified using a hyphen (10-15).  The port numbers cannot 
      exceed the maximum number of ports on the board. 
-tagged port mask 
      Tagged port mask values can be specified in the same way as that of   
      an untagged port mask.  
-admit 
      Allow tagged-only or all (untagged and tagged) packets. 
port-no 
      Optional parameter.  Port number that data should be mirrored to. 
Examples 
N-TRON/Admin#[1]> vlan add 2 1 –untagged 1-12 –name vlan2 –
admit all 
N-TRON/Admin#[2]> vlan add 3 1 –tagged 13-24 –name “vlan 3” –
admit tagged-only
 
NOTES 
Ensure that the ports included in the tagged port list do not exist in the untagged 
ports-list field.  Changing anything on a VLAN will turn on RSTP on all VLANs as 
a precautionary measure. 
 
Show List of Configured VLANs 
Command Name 
vlan show config 
Description  
Displays the list of configured VLANs  
Syntax 
vlan show config 
Parameters  
None 
Examples 
N-TRON/Admin#[1]> vlan show config 
NOTES 
It displays the information of the default vlan if no vlan is configured.