--- title: "Configuring Interface Types and VLAN Mapping" slug: "configuring-interface-types-and-vlan-mapping" tags: ["ECFM ", "interface ", "VLAN", "provider bridges", "flex 100"] updated: 2024-07-10T15:00:13Z published: 2024-09-03T19:25:31Z canonical: "docs.crossworkassurance.cisco.com/configuring-interface-types-and-vlan-mapping" --- > ## 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 Interface Types and VLAN Mapping This article describes the configuration of interface types and mapping of VLAN. ### CLI Configurations **At Switch2** - Set the interface as CustomerEdgePort. **your product(config)# interface** *gigabitethernet 0/2* **your product(config-if)# bridge port-type** *customerEdgePort* - Create the VLAN and make interfaces as member ports of this VLAN and Port P2 as untagged member. **your product(config)# vlan** *4* **your product(config-vlan)# ports** *gigabitethernet 0/2,0/3,0/4,0/5* **untagged** *gigabitethernet 0/2* - Configure the CVID Registration table for the interface with CVLAN to map with SVLAN. **your product(config)# interface** *gigabitethernet 0/2* **your product(config-if)# switchport** *dot1q* **customer vlan** *2* **your product(config-if)# switchport customer-vlan** *2* **service-vlan** *4* **untagged-pep false** - Configure the interface type as **providerNetworkPort**. **your product(config)# interface** *gigabitethernet 0/3* **your product(config-if)# bridge port-type** *providerNetworkPort* **your product(config-if)# exit your product(config)# interface** *gigabitethernet 0/4* **your product(config-if)# bridge port-type** *providerNetworkPort* **your product(config-if)# exit your product(config)# interface** *gigabitethernet 0/5* **your product(config-if)# bridge port-type** *providerNetworkPort* **your product(config-if)# exit** **At Switch6** - Configure the interface type as customerNetworkPort port-based. **your product(config)# interface** *gigabitethernet 0/2* **your product(config-if)# bridge port-type** *customerNetworkPort* **port-based** **your product(config-if)# exit** - Create the VLAN and make interfaces as member ports of this VLAN and Port P2 as untagged member. **your product(config)# vlan** *4* **your product(config-vlan)# ports** *gigabitethernet 0/2,0/3,0/4,0/5* **untagged** *gigabitethernet 0/2* **your product(config-vlan)# exit** - Set the Primary Vlan (PVID) for an interface. **your product(config)# interface** *gigabitethernet 0/2* **your product(config-if)# switchport pvid** *4* **your product(config-if)# exit** - Configure the interface type as providerNetworkPort. **your product(config)# interface** *gigabitethernet 0/3* **your product(config-if)# bridge port-type** *providerNetworkPort* **your product(config-if)# exit** **your product(config)# interface** *gigabitethernet 0/4* **your product(config-if)# bridge port-type** *providerNetworkPort* **your product(config-if)# exit your product(config)# interface** *gigabitethernet 0/5* **your product(config-if)# bridge port-type** *providerNetworkPort* **your product(config-if)# exit** ### SNMP Configurations **At Switch2** - Set the interface as customerEdgePort. [Index: Interface Number = 2] **% snmp***0* **set {{ifMainBrgPortType**.*2 customerEdgePort* **}}** - Create the VLAN and make interfaces as member ports of this VLAN and Port P2 as untagged member. [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 addUntagged* **}}** [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, Interface Number = 5] **% snmp***0* **set {{fsDot1qVlanStaticPort**.*0.4.5 addTagged* **}}** [Index: ContextID = 0, Vlan-ID = 4] **% snmp***0* **set {{fsDot1qVlanStaticRowStatus**.*0.4 active* **}}** - Configure the CVID Registration table for interface with CVLAN to map with SVLAN. [Index: Interface Number = 2] **% snmp***0* **set {{fsMIPbPortCVlan**.*2 2* **}}** [Index: Interface Number = 2, Vlan-ID =2] **% snmp***0* **set {{dot1adMICVidRegistrationRowStatus**.*2.2 createAndWait* **}}** **% snmp***0* **set {{dot1adMICVidRegistrationSVid**.*2.2 4* **}}** **% snmp***0* **set {{dot1adMICVidRegistrationUntaggedPep**.*2.2 false* **}}** **% snmp***0* **set {{dot1adMICVidRegistrationUntaggedCep**.*2.2 false* **}}** **% snmp***0* **set {{dot1adMICVidRegistrationRowStatus**.*2.2 active* **}}** - Configure the interface type as providerNetworkPort. [Index: Interface Number = 3] **% snmp***0* **set {{ifMainBrgPortType**.*3 providerNetworkPort* **}}** [Index: Interface Number = 4] **% snmp***0* **set {{ifMainBrgPortType**.*4 providerNetworkPort* **}}** [Index: Interface Number = 5] **% snmp***0* **set {{ifMainBrgPortType**.*5 providerNetworkPort* **}}** **At Switch6** - Configure the interface type as customerNetworkPortPortBased. [Index: Interface Number = 2] **% snmp***0* **set {{ifMainBrgPortType**.*2 customerNetworkPortPortBased* **}}** - Create the VLAN and make interfaces as member ports of this VLAN and Port P2 as untagged member. [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 addUntagged* **}}** [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, Interface Number = 5] **% snmp***0* **set {{fsDot1qVlanStaticPort**.*0.4.5 addTagged* **}}** [Index: ContextID = 0, Vlan-ID = 4] **% snmp***0* **set {{fsDot1qVlanStaticRowStatus**.*0.4 active* **}}** - Set the Primary VLAN (PVID) for an interface. [Index: Interface Number = 2] **% snmp***0* **set {{fsDot1qPvid**.*2 4* **}}** - Configure interface type as providerNetworkPort [Index: Interface Number = 3] **% snmp***0* **set {{ifMainBrgPortType**.*3 providerNetworkPort* **}}** [Index: Interface Number = 4] **% snmp***0* **set {{ifMainBrgPortType**.*4 providerNetworkPort* **}}** [Index: Interface Number = 5] **% snmp***0* **set {{ifMainBrgPortType**.*5 providerNetworkPort* **}}** **© 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)