--- title: "Associating a Set of VLANs to a Primary VLAN" slug: "associating-a-set-of-vlans-to-a-primary-vlan" tags: ["ECFM ", "Single Instance", "VLAN", "flex 100"] updated: 2024-07-10T14:59:55Z published: 2024-09-03T19:24:58Z canonical: "docs.crossworkassurance.cisco.com/associating-a-set-of-vlans-to-a-primary-vlan" --- > ## 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. # Associating a Set of VLANs to a Primary VLAN This article describes the association of the VLANs with a Primary VLAN. The scope of the VLAN association is limited to ECFM entities only. #### CLI Configurations **To associate a set of VLANs to a Primary VLAN** 1. Enter the global configuration mode. **your product# configure terminal** 2. Associate a list of VLAN IDs to a Primary VLAN. **your product(config)# ethernet cfm associate vlan-id** 1,2,3 **primary-vlan-id** 7. **To disassociate VLANs from a Primary VLAN** 1. Enter into the global configuration mode and delete the mapping of a list of VLAN IDs with a primary VLAN. **your product(config)# no ethernet cfm associate vlan-id** 2,3 **primary-vlan-id** 7. --- ***Note:** One VLAN cannot be associated with more than one Primary VLAN only. VLAN and Primary VLAN cannot be the same.* --- #### SNMP Configurations 1. Associate a set of VLANs 1,2,3 to a Primary VLAN 7 [Index: ContextID = 0, VlanId = 1] % **snmp**0 **set {{fsMIEcfmVlanRowStatus**.0.1 *createAndWait* **}}** % **snmp**0 **set {{fsMIEcfmVlanPrimaryVid**.0.1 7 **}}** % **snmp**0 **set {{fsMIEcfmVlanRowStatus**.0.1 *active* **}}** [Index: ContextID = 0, VlanId = 2] % **snmp**0 **set {{fsMIEcfmVlanRowStatus**.0.2 *createAndWait* **}}** % **snmp**0 **set {{fsMIEcfmVlanPrimaryVid**.0.2 7}} % **snmp**0 **set {{fsMIEcfmVlanRowStatus**.0.2 *active* **}}** [Index: ContextID = 0, VlanId = 3] % **snmp**0 **set {{fsMIEcfmVlanRowStatus**.0.3 *createAndWait* **}}** % **snmp**0 **set {{fsMIEcfmVlanPrimaryVid**.0.3 7 **}}** % **snmp**0 **set {{fsMIEcfmVlanRowStatus**.0.3 *active* **}}** 1. Disassociate VLANs 2 and 3 from a Primary VLAN 7. [Index: ContextID = 0, VlanId = 2] % **snmp**0 **set {{fsMIEcfmVlanRowStatus**.0.2 *destroy* **}}** [Index: ContextID = 0, VlanId = 3] % **snmp**0 **set {{fsMIEcfmVlanRowStatus**.0.3 *destroy* **}}** **© 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)