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
set vlan create <vlan-id>
set vlan create 100

2.  Optionally name the VLAN 
set vlan name <vlan-id> name
set vlan name 10 vlan-blue
 
3.  Add ports to the VLAN Untagged
Set the Port VLAN ID (PVID)and egress the VLAN untagged to connect to devices that are not tagging. 
set port vlan <port-string> <vlan-id> modify-egress
set port vlan ge.1.1 100 modify-egress tagged

 
4.  Configure the port to egress tagged traffic  for devices that require tags.
set vlan egress vlan <vlan-id> <port-string> tagged
set vlan egress 100 ge.1.1 tagged
 
Tagged is the default, so the VLAN will be tagged on the port unless untagged is specified.
 
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