--- title: "Configuring VLAN on Switches" slug: "configuring-vlan-on-switches" tags: ["ECFM ", "VLAN", "provider bridges", "flex 100"] updated: 2024-07-10T15:00:13Z published: 2024-09-03T19:25:31Z canonical: "docs.crossworkassurance.cisco.com/configuring-vlan-on-switches" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.crossworkassurance.cisco.com/llms.txt > Use this file to discover all available pages before exploring further. # Configuring VLAN on Switches This article describes the configuration of VLAN on switches. ### CLI Configurations **At Switch1 and Switch5** - Create the VLAN 2. **your product(config)# vlan** *2* - Make interfaces as member ports of this VLAN. **your product(config-vlan)# ports** *gigabitethernet 0/2,0/5* - Set the status of VLAN 2 as active. **your product(config-vlan)# vlan** *active* **your product(config-vlan)# exit** **At Switch3, Switch4, Switch7 and Switch8** - Create the VLAN 4 and make interfaces as member ports of this VLAN. **your product(config)# vlan** *4* **your product(config-vlan)# ports** *gigabitethernet 0/2,0/3,0/4* **your product(config-vlan)# vlan** *active* **your product(config-vlan)# exit** ### SNMP Configurations **At Switch1 and Switch5** - Create the VLAN 2. [Index: ContextID = 0, Vlan-ID = 2] **% snmp***0* **set {{fsDot1qVlanStaticRowStatus**.*0.2 createAndWait* **}}** - Make interfaces as member ports of this VLAN [Index: ContextID = 0, Vlan-ID = 2, Interface Number = 2] **% snmp***0* **set {{fsDot1qVlanStaticPort**.*0.2.2 addTagged* **}}** [Index: ContextID = 0, Vlan-ID = 2, Interface Number = 5] **% snmp***0* **set {{fsDot1qVlanStaticPort**.*0.2.5 addTagged* **}}** - Set the status of VLAN 2 as active. [Index: ContextID = 0, Vlan-ID = 2] **% snmp***0* **set {{fsDot1qVlanStaticRowStatus**.*0.2 active* **}}** **At Switch3, Switch4, Switch7 and Switch8** - Create the VLAN 4 and make interfaces as member ports of this VLAN. [Index: ContextID = 0, Vlan-ID = 4] **% snmp***0* **set {{fsDot1qVlanStaticRowStatus**.*0.4 createAndWait* **}}** [Index: ContextID = 0, Vlan-ID = 4, Interface Number = 2] **% snmp***0* **set {{fsDot1qVlanStaticPort**.*0.4.2 addTagged* **}}** [Index: ContextID = 0, Vlan-ID = 4, Interface Number = 3] **% snmp***0* **set {{fsDot1qVlanStaticPort**.*0.4.3 addTagged* **}}** [Index: ContextID = 0, Vlan-ID = 4, Interface Number = 4] **% snmp***0* **set {{fsDot1qVlanStaticPort**.*0.4.4 addTagged* **}}** [Index: ContextID = 0, Vlan-ID = 4] **% snmp***0* **set {{fsDot1qVlanStaticRowStatus**.*0.4 active* **}}** **© 2026 Cisco and/or its affiliates. All rights reserved.** For more information about trademarks, please visit: [Cisco trademarks](https://www.cisco.com/c/en/us/about/legal/trademarks.html)[](https://www.cisco.com/c/en/us/about/legal/trademarks.html) For more information about legal terms, please visit: [Cisco legal terms](https://www.cisco.com/c/en/us/about/legal/terms-conditions.html)