Reset Search
 

 

Article

How to Configure VLAN on EOS Switches

« Go Back

Information

 
TitleHow to Configure VLAN on EOS Switches
Objective
The following shows how to configure  VLANs and verify the configuration.   
Environment
  • SecureStack
  • K-Series
  • 7100-Series
  • S-Series
  • I - Series
Procedure

1.  Create the VLAN

Command:
set vlan create <vlan-id>

Example:
set vlan create 100


2.  Optionally name the VLAN 

Command:
set vlan name <vlan-id> <name>

Example:
set vlan name 100 vlan-blue

 
3.  Add ports to the VLAN Untagged
Set the Port VLAN ID (PVID) to egress the VLAN untagged to connect to devices that are not tagging (workstations, etc) 

Command:
set port vlan <port-string> <vlan-id> modify-egress

Example:
set port vlan ge.1.1 100 modify-egress

 
4.  Configure the port to egress tagged traffic  for devices that require tags/ Remove a tagged VLAN from a port.

Command:
set vlan egress vlan <vlan-id> <port-string> tagged

Example:
set vlan egress 100 ge.1.2 tagged

Command:
clear vlan egress vlan <vlan-id> <port-string> 

Example:
clear vlan egress 100 ge.1.2 
 
Tagged is the default, so the VLAN will be tagged on the port unless untagged is specified with "modify-egress."
 
Warning EOS allows multiple VLANs to be sent out the same port untagged which is not recommended because of the  potential to have traffic switched to the wrong VLAN on uplinks with multiple VLANs.
 
5.  Verifying VLAN Config
 
show VLAN information on a port

Show  vlan portinfo port ge.1.1
 Port           VLAN      Ingress   Egress
                          Filter     Vlan  
-----------------------------------------------------------------
ge.1.1         1          N          untagged: 1 tagged: 2


6.  Type show vlan, to see information about VLANs with at least one active link; VLANs with no link will not display. 

C5(su)->show vlan static 
 VLAN: 1             NAME: DEFAULT VLAN
 VLAN Type: Default
 Egress Ports
ge.1.1, ge.1.46
 Forbidden Egress Ports
None.
 Untagged ports
ge.1.1, ge.1.46
 
7.  To see information about  all configured ports regardless if they have a link, add static to the end of the command.

C5(su)->show vlan static

 VLAN: 1             NAME: DEFAULT VLAN
 VLAN Type: Default
 Egress Ports
ge.1.1-48, tg.1.49-50, lag.0.1-6
 Forbidden Egress Ports
None.
 Untagged ports
ge.1.1-48, tg.1.49-50, lag.0.1-6



 
Additional notes

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255