Configuring Switch Ports

This document describes various virtual LAN (VLAN) configuration you can perform on the switch ports, such as creating layer 2 and layer 3 VLANs, creating VLAN mapping, VLAN translation groups, and modifying software ports.

How To Configure Switch Ports

Creating Layer 2 VLANs

     Command or ActionPurpose
    Step 1 configure terminal


    Example:
    Switch# configure terminal
     

    Enters global configuration mode.

     
    Step 2controller nid 1/NID_ID


    Example:
    Switch(config)# controller nid 1/1
     

    Enters the controller configuration mode.

     
    Step 3ProvisionPortVlanPortType


    Example:
    Switch(config-controller)# ProvisionPortVlanPortType
     
    Enters the ProvisionPortVlanPortType mode.  
    Step 4createVlanCommand createVlanReq vlan_list vlan_list


    Example:
    Switch(config-controller-ProvisionPortVlanPortType)# createVlanCommand createVlanReq vlan_list 100-4095
     
    Creates the VLAN list. The valid values are from 1 to 4095.  
    Step 5createVlanCommand review


    Example:
    Switch(config-controller-ProvisionPortVlanPortType)# createVlanCommand review
     

    Displays the createVlanCommand configuration.

     
    Step 6createVlanCommand commit


    Example:
    Switch(config-controller-ProvisionPortVlanPortType)# createVlanCommand commit
     
    Sends the createVlanCommand configuration to the Cisco ME 1200 NID.  
    Step 7exit


    Example:
    Switch(config-controller-ProvisionPortVlanPortType)# exit
    Switch(config-controller)#
     
    Exits to the config-controller mode.  

    Example

    Switch# configure terminal
    Switch(config)# controller nid 1/1
    Switch(config-controller)# ProvisionPortVlanPortType
    Switch(config-controller-ProvisionPortVlanPortType)# createVlanCommand createVlanReq vlan_list 100-4095
    Switch(config-controller-ProvisionPortVlanPortType)# createVlanCommand review
    Commands in queue:
    	createVlanCommand createVlanReq vlan_list 100-4095
    Switch(config-controller-ProvisionPortVlanPortType)# createVlanCommand commit
     Vlan Creation Commit Success!!!

    Verifying Layer 2 VLAN Configuration

    The following is a sample output of the command that displays in brief the configured layer 2 VLAN list:

    Switch(config-controller-ProvisionPortVlanPortType)# showVlans showVlanRequest brief
    Commands in queue:
    
    showVlans showVlanRequest brief
    Switch(config-controller-ProvisionPortVlanPortType)# showVlans commit
    Configured Vlan List: 
        1
    
     Show Vlans Commit Success!!!

    Deleting Layer 2 VLANs

       Command or ActionPurpose
      Step 1 configure terminal


      Example:
      Switch# configure terminal
       

      Enters global configuration mode.

       
      Step 2controller nid 1/NID_ID


      Example:
      Switch(config)# controller nid 1/1
       

      Enters the controller configuration mode.

       
      Step 3ProvisionPortVlanPortType


      Example:
      Switch(config-controller)# ProvisionPortVlanPortType
       
      Enters the ProvisionPortVlanPortType mode.  
      Step 4deleteVlanCommand deleteVlanReq vlan_list vlan_list


      Example:
      Switch(config-controller-ProvisionPortVlanPortType)# deleteVlanCommand deleteVlanReq vlan_list 100-4095
       
      Deletes the VLAN list.  
      Step 5deleteVlanCommand review


      Example:
      Switch(config-controller-ProvisionPortVlanPortType)# deleteVlanCommand review
       

      Displays the deleteVlanCommand configuration.

       
      Step 6deleteVlanCommand commit


      Example:
      Switch(config-controller-ProvisionPortVlanPortType)# deleteVlanCommand commit
       
      Sends the deleteVlanCommand configuration to the Cisco ME 1200 NID.  
      Step 7exit


      Example:
      Switch(config-controller-ProvisionPortVlanPortType)# exit
      Switch(config-controller)#
       
      Exits to the config-controller mode.  
      Example
      Switch# configure terminal
      Switch(config)# controller nid 1/1
      Switch(config-controller)# ProvisionPortVlanPortType
      Switch(config-controller-ProvisionPortVlanPortType)# deleteVlanCommand deleteVlanReq vlan_list 100-4095
      Switch(config-controller-ProvisionPortVlanPortType)# deleteVlanCommand review
      Commands in queue:
      	deleteVlanCommand deleteVlanReq vlan_list 100-4095 
      Switch(config-controller-ProvisionPortVlanPortType)# deleteVlanCommand commit
      DeleteVlanCommand_Output.deleteVlanResp = 0
      
       Vlan Deletion Commit Success!!!

      Creating Layer 3 VLANs

         Command or ActionPurpose
        Step 1 configure terminal


        Example:
        Switch# configure terminal
         

        Enters global configuration mode.

         
        Step 2controller nid 1/NID_ID


        Example:
        Switch(config)# controller nid 1/1
         

        Enters the controller configuration mode.

         
        Step 3ProvisionPortVlanPortType


        Example:
        Switch(config-controller)# ProvisionPortVlanPortType
         
        Enters the ProvisionPortVlanPortType mode.  
        Step 4createIntVlan createIntVlanReq vlan_id vlan_id


        Example:
        Switch(config-controller-ProvisionPortVlanPortType)# createIntVlan createIntVlanReq vlan_id 22
         
        Creates the interface VLAN list.  
        Step 5createIntVlan createIntVlanReq {address {ipv4 {dhcp | ipv4_address} | ipv6 ipv6_address } | vlan_id


        Example:
        Switch(config-controller-ProvisionPortVlanPortType)# createIntVlan createIntVlanReq address ipv4 ipv4_address address 22.22.22.3
        Switch(config-controller-ProvisionPortVlanPortType)# createIntVlan createIntVlanReq address ipv4 ipv4_address mask 255.255.255.0
        Switch(config-controller-ProvisionPortVlanPortType)# createIntVlan createIntVlanReq address ipv6 ipv6_address 2001:4::1/64
         

        Creates the interface VLAN on the specified IPv4 or IPv6 address, or VLAN ID.

         
        Step 6createIntVlan review


        Example:
        Switch(config-controller-ProvisionPortVlanPortType)# createIntVlan review
         

        Displays the createIntVlan configuration.

         
        Step 7createIntVlan commit


        Example:
        Switch(config-controller-ProvisionPortVlanPortType)# createIntVlan commit
         
        Sends the createIntVlan configuration to the Cisco ME 1200 NID.  
        Step 8exit


        Example:
        Switch(config-controller-ProvisionPortVlanPortType)# exit
        Switch(config-controller)
         
        Exits to the config-controller mode.  

        Example

        Switch# configure terminal
        Switch(config)# controller nid 1/1
        Switch(config-controller)# ProvisionPortVlanPortType
        Switch(config-controller-ProvisionPortVlanPortType)# createIntVlan createIntVlanReq vlan_Id 22
        Switch(config-controller-ProvisionPortVlanPortType)# createIntVlan createIntVlanReq address ipv4 ipv4_address address 22.22.22.3
        Switch(config-controller-ProvisionPortVlanPortType)# createIntVlan createIntVlanReq address ipv4 ipv4_address mask 255.255.255.0
        Switch(config-controller-ProvisionPortVlanPortType)# createIntVlan review
        
        Commands in queue:
        	createIntVlan createIntVlanReq vlan_id 22 
        	createIntVlan createIntVlanReq address ipv4 ipv4_address address 22.22.22.3 
        	createIntVlan createIntVlanReq address ipv4 ipv4_address mask 255.255.255.0 
        
        Switch(config-controller-ProvisionPortVlanPortType)# createIntVlan commit
        
        CreateIntVlan_Output.createIntVlanResp = 0
        
         Create Interface Vlan Commit Success!!!
        
        
        Switch# configure terminal
        Switch(config)# controller nid 1/1
        Switch(config-controller)# ProvisionPortVlanPortType
        Switch(config-controller-ProvisionPortVlanPortType)# createIntVlan createIntVlanReq vlan_Id 22
        Switch(config-controller-ProvisionPortVlanPortType)# createIntVlan createIntVlanReq address ipv6 ipv6_address 2001:4::1/64
        Switch(config-controller-ProvisionPortVlanPortType)# createIntVlan review
        
        Commands in queue:
        	createIntVlan createIntVlanReq vlan_id 22 
        	createIntVlan createIntVlanReq address ipv6 ipv6_address 2001:4::1/64 
        
        Switch(config-controller-ProvisionPortVlanPortType)# createIntVlan commit
        
        CreateIntVlan_Output.createIntVlanResp = 0
        
         Create Interface Vlan Commit Success!!!

        Creating Layer 3 VLANs With Dynamic IP Address

           Command or ActionPurpose
          Step 1 configure terminal


          Example:
          Switch# configure terminal
           

          Enters global configuration mode.

           
          Step 2controller nid 1/NID_ID


          Example:
          Switch(config)# controller nid 1/1
           

          Enters the controller configuration mode.

           
          Step 3ProvisionPortVlanPortType


          Example:
          Switch(config-controller)# ProvisionPortVlanPortType
           
          Enters the ProvisionPortVlanPortType mode.  
          Step 4createIntVlan createIntVlanReq deleteVlanReq vlan_list vlan_list


          Example:
          Switch(config-controller-ProvisionPortVlanPortType)# createIntVlan createIntVlanReq vlan_id 23
           
          Creates the interface VLAN on the specified VLAN.  
          Step 5createIntVlan createIntVlanReq address ipv4 dhcp


          Example:
          Switch(config-controller-ProvisionPortVlanPortType)# createIntVlan createIntVlanReq address ipv4 dhcp
           
          Creates the interface VLAN on the specified address.  
          Step 6createIntVlan review


          Example:
          Switch(config-controller-ProvisionPortVlanPortType)# createIntVlan review
           

          Displays the createIntVlan configuration.

           
          Step 7createIntVlan commit


          Example:
          Switch(config-controller-ProvisionPortVlanPortType)# createIntVlan commit
           
          Sends the createIntVlan configuration to the Cisco ME 1200 NID.  
          Step 8exit


          Example:
          Switch(config-controller-ProvisionPortVlanPortType)# exit
          Switch(config-controller)
           
          Exits to the config-controller mode.  
          Example
          Switch# configure terminal
          Switch(config)# controller nid 1/1
          Switch(config-controller)# ProvisionPortVlanPortType
          Switch(config-controller-ProvisionPortVlanPortType)# createIntVlan createIntVlanReq vlan_Id 23
          Switch(config-controller-ProvisionPortVlanPortType)# createIntVlan createIntVlanReq address ipv4 dhcp
          Switch(config-controller-ProvisionPortVlanPortType)# createIntVlan review
          
          Commands in queue:
          	createIntVlan createIntVlanReq vlan_id 23 
          	createIntVlan createIntVlanReq address ipv4 dhcp
          
          Switch(config-controller-ProvisionPortVlanPortType)# createIntVlan commit
          
          CreateIntVlan_Output.createIntVlanResp = 0
          
           Create Interface Vlan Commit Success!!!

          Verifying Layer 3 VLANs With Dynamic IP Address

          The following is a sample output to display the layer 3 VLANs configured with a dynamic IP address:

          Switch(config-controller-ProvisionPortVlanPortType)# showIntVlan showIntVlanReq vlan_list 23
          Commands in queue:
          
          showIntVlan showIntVlanReq vlan_list 23
          Switch(config-controller-ProvisionPortVlanPortType)# showIntVlan commit
          ShowIntVlan_Output.showIntVlanResp.vlan_list[0].vlan_id = 23
          ShowIntVlan_Output.showIntVlanResp.vlan_list[0].Link = 'LINK: 00-3a-99-fd-4d-05 Mtu:1500'
          ShowIntVlan_Output.showIntVlanResp.vlan_list[0].dhcp = 'DHCP'
          ShowIntVlan_Output.showIntVlanResp.vlan_list[0].ipv6_address = 'IPv6 Address not configured'
          
           Show Interface Vlan Commit Success!!!

          Deleting Layer 3 VLANs

             Command or ActionPurpose
            Step 1 configure terminal


            Example:
            Switch# configure terminal
             

            Enters global configuration mode.

             
            Step 2controller nid 1/NID_ID


            Example:
            Switch(config)# controller nid 1/1
             

            Enters the controller configuration mode.

             
            Step 3ProvisionPortVlanPortType


            Example:
            Switch(config-controller)# ProvisionPortVlanPortType
             
            Enters the ProvisionPortVlanPortType mode.  
            Step 4deleteIntVlan deleteIntVlanReq vlan_list vlan_list


            Example:
            Switch(config-controller-ProvisionPortVlanPortType)# deleteIntVlan deleteIntVlanReq vlan_list 23
             
            Deletes the VLAN list on the interface.  
            Step 5deleteIntVlan review


            Example:
            Switch(config-controller-ProvisionPortVlanPortType)# deleteIntVlan review
             

            Displays the deleteIntVlan configuration.

             
            Step 6deleteIntVlan commit


            Example:
            Switch(config-controller-ProvisionPortVlanPortType)# deleteIntVlan commit
             
            Sends the deleteIntVlan configuration to the Cisco ME 1200 NID.  
            Step 7exit


            Example:
            Switch(config-controller-ProvisionPortVlanPortType)# exit
            Switch(config-controller)#
             
            Exits to the config-controller mode.  
            Example
            Switch# configure terminal
            Switch(config)# controller nid 1/1
            Switch(config-controller)# ProvisionPortVlanPortType
            Switch(config-controller-ProvisionPortVlanPortType)# deleteIntVlan deleteIntVlanReq vlan_list 23
            Switch(config-controller-ProvisionPortVlanPortType)# deleteIntVlan review
            
            Commands in queue:
            	deleteIntVlan deleteIntVlanReq vlan_list 23 
            
            Switch(config-controller-ProvisionPortVlanPortType)# deleteIntVlan commit
            DeleteIntVlan_Output.deleteIntVlanResp = 0
            
             Delete Interface Vlan Commit Success!!!

            Creating a VLAN Translation Group

               Command or ActionPurpose
              Step 1 configure terminal


              Example:
              Switch# configure terminal
               

              Enters global configuration mode.

               
              Step 2controller nid 1/NID_ID


              Example:
              Switch(config)# controller nid 1/1
               

              Enters the controller configuration mode.

               
              Step 3ProvisionPortVlanPortType


              Example:
               Switch(config-controller)# ProvisionPortVlanPortType
               
              Enters the ProvisionPortVlanPortType mode.  
              Step 4createVlanTranslationGroup createVlanTranslationGroupReq group_id group_id


              Example:
              Switch(config-controller-ProvisionPortVlanPortType)# createVlanTranslationGroup createVlanTranslationGroupReq group_Id 3
               
              Creates the VLAN Translation group ID.  
              Step 5createVlanTranslationGroup createVlanTranslationGroupReq {vlan_idvlan_id | vlan_list vlan_list}


              Example:
              Switch(config-controller-ProvisionPortVlanPortType)# createVlanTranslationGroup createVlanTranslationGroupReq vlan_id 22
               
              Creates the VLAN translation
              • vlan_id—Sets the VLAN ID on which translation occurs.
              • vlan_list—Sets the VLAN list that needs to be translated.
               
              Step 6createVlanTranslationGroup review


              Example:
              Switch(config-controller-ProvisionPortVlanPortType)# createVlanTranslationGroup review
               

              Displays the createVlanTranslationGroup configuration.

               
              Step 7createVlanTranslationGroup commit


              Example:
              Switch(config-controller-ProvisionPortVlanPortType)# createVlanTranslationGroup commit
               
              Sends the createVlanTranslationGroup configuration to the Cisco ME 1200 NID.  
              Step 8exit


              Example:
              Switch(config-controller-ProvisionPortVlanPortType)# exit
              Switch(config-controller)
               
              Exits to the config-controller mode.  

              Example

              Switch# configure terminal
              Switch(config)# controller nid 1/1
              Switch(config-controller)# ProvisionPortVlanPortType
              Switch(config-controller-ProvisionPortVlanPortType)# createVlanTranslationGroup createVlanTranslationGroupReq group_Id 3
              Switch(config-controller-ProvisionPortVlanPortType)# createVlanTranslationGroup createVlanTranslationGroupReq vlan_id 22
              Switch(config-controller-ProvisionPortVlanPortType)# createVlanTranslationGroup createVlanTranslationGroupReq vlan_list 100,101,102
              Switch(config-controller-ProvisionPortVlanPortType)# createVlanTranslationGroup review
              
              Commands in queue:
              	createVlanTranslationGroup createVlanTranslationGroupReq group_Id 3 
              	createVlanTranslationGroup createVlanTranslationGroupReq vlan_id 22 
              	createVlanTranslationGroup createVlanTranslationGroupReq vlan_list 100,101,102 
              
              Switch(config-controller-ProvisionPortVlanPortType)# createVlanTranslationGroup commit
              
              CreateVlanTranslationGroup_Output.createVlanTranslationGroupResp = 0
              
               Create VlanTranslation Commit Success!!!

              Deleting VLAN Translation Groups

                 Command or ActionPurpose
                Step 1 configure terminal


                Example:
                Switch# configure terminal
                 

                Enters global configuration mode.

                 
                Step 2controller nid 1/NID_ID


                Example:
                Switch(config)# controller nid 1/1
                 

                Enters the controller configuration mode.

                 
                Step 3ProvisionPortVlanPortType


                Example:
                Switch(config-controller)# ProvisionPortVlanPortType
                 
                Enters the ProvisionPortVlanPortType mode.  
                Step 4deleteVlanTranslation deleteVlanTranslationGroupReq group_idgroup_id


                Example:
                Switch(config-controller-ProvisionPortVlanPortType)# deleteVlanTranslation deleteVlanTranslationGroupReq group_id 3
                 
                Deletes the specified VLAN Translation group id.  
                Step 5deleteVlanTranslation deleteVlanTranslationGroupReq deleteVlanReq vlan_list vlan_list


                Example:
                Switch(config-controller-ProvisionPortVlanPortType)# deleteVlanTranslation deleteVlanTranslationGroupReq vlan_list 2,3
                 
                Deletes the specified VLAN Translation VLAN list.  
                Step 6deleteVlanTranslation review


                Example:
                Switch(config-controller-ProvisionPortVlanPortType)# deleteVlanTranslation review
                 

                Displays the deleteVlanTranslation configuration.

                 
                Step 7deleteVlanTranslation commit


                Example:
                Switch(config-controller-ProvisionPortVlanPortType)# deleteVlanTranslation commit
                 
                Sends the deleteVlanTranslation configuration to the Cisco ME 1200 NID.  
                Step 8exit


                Example:
                Switch(config-controller-ProvisionPortVlanPortType)# exit
                Switch(config-controller)#
                 
                Exits to the config-controller mode.  
                Example
                Switch# configure terminal
                Switch(config)# controller nid 1/1
                Switch(config-controller)# ProvisionPortVlanPortType
                Switch(config-controller-ProvisionPortVlanPortType)# deleteVlanTranslation deleteVlanTranslationGroupReq group_id 3
                Switch(config-controller-ProvisionPortVlanPortType)# deleteVlanTranslation deleteVlanTranslationGroupReq vlan_list 100,101,102
                Switch(config-controller-ProvisionPortVlanPortType)# deleteVlanTranslation review
                
                Commands in queue:
                	deleteVlanTranslation deleteVlanTranslationGroupReq group_id 3 
                	deleteVlanTranslation deleteVlanTranslationGroupReq vlan_list 100,101,102 
                
                Switch(config-controller-ProvisionPortVlanPortType)# deleteVlanTranslation commit
                
                DeleteVlanTranslation_Output.deleteVlanTranslationGroupResp = 0
                
                 Delete VlanTranslation Commit Success!!!

                Verifying VLAN Translation Group

                The following is a sample output of the command to verify the VLAN translation group configuration:

                Switch(config-controller-ProvisionPortVlanPortType)# showVlanTranslation showVlanTranslationGroupReq
                				  all
                Commands in queue:
                
                showVlanTranslation showVlanTranslationGroupReq all
                Switch(config-controller-ProvisionPortVlanPortType)# showVlanTranslation commit
                ShowVlanTranslation_Output.showVlanTranslationGroupResp[0].group_id = 3
                ShowVlanTranslation_Output.showVlanTranslationGroupResp[0].vlan_list = 100
                ShowVlanTranslation_Output.showVlanTranslationGroupResp[0].transvlan_id = 22
                ShowVlanTranslation_Output.showVlanTranslationGroupResp[1].group_id = 3
                ShowVlanTranslation_Output.showVlanTranslationGroupResp[1].vlan_list = 101
                ShowVlanTranslation_Output.showVlanTranslationGroupResp[1].transvlan_id = 22
                ShowVlanTranslation_Output.showVlanTranslationGroupResp[2].group_id = 3
                ShowVlanTranslation_Output.showVlanTranslationGroupResp[2].vlan_list = 102
                ShowVlanTranslation_Output.showVlanTranslationGroupResp[2].transvlan_id = 22
                
                 Show VlanTranslation Commit Success!!!

                Creating VLAN Mapping

                Before You Begin

                VLAN Mapping should be created for the VLAN translation group, and the mapping interface should be bound to that translation group.

                   Command or ActionPurpose
                  Step 1 configure terminal


                  Example:
                  Switch# configure terminal
                   

                  Enters global configuration mode.

                   
                  Step 2controller nid 1/NID_ID


                  Example:
                  Switch(config)# controller nid 1/1
                   

                  Enters the controller configuration mode.

                   
                  Step 3ProvisionPortVlanPortType


                  Example:
                  Switch(config-controller)# ProvisionPortVlanPortType
                   
                  Enters the ProvisionPortVlanPortType mode.  
                  Step 4createVlanMapping createVlanMappingReq group_id group_id


                  Example:
                  Switch(config-controller-ProvisionPortVlanPortType)# createVlanMapping createVlanMappingReq group_id 3
                   
                  Creates the VLAN mapping group ID.  
                  Step 5createVlanMapping createVlanMappingReq interface interface_id


                  Example:
                  Switch(config-controller-ProvisionPortVlanPortType)# createVlanMapping createVlanMappingReq interface 5
                   
                  Creates the VLAN mapping on the specified interface.  
                  Step 6createVlanMapping review


                  Example:
                  Switch(config-controller-ProvisionPortVlanPortType)# createVlanMapping review
                   

                  Displays the createVlanMapping configuration.

                   
                  Step 7createVlanMapping commit


                  Example:
                  Switch(config-controller-ProvisionPortVlanPortType)# createVlanMapping commit
                   
                  Sends the createVlanMapping configuration to the Cisco ME 1200 NID.  
                  Step 8exit


                  Example:
                  Switch(config-controller-ProvisionPortVlanPortType)# exit
                  Switch(config-controller)
                   
                  Exits to the config-controller mode.  

                  Example

                  Switch# configure terminal
                  Switch(config)# controller nid 1/1
                  Switch(config-controller)# ProvisionPortVlanPortType
                  Switch(config-controller-ProvisionPortVlanPortType)# createVlanMapping createVlanMappingReq group_id 3
                  Switch(config-controller-ProvisionPortVlanPortType)# createVlanMapping createVlanMappingReq interface 5
                  Switch(config-controller-ProvisionPortVlanPortType)# createVlanMapping review
                  
                  Commands in queue:
                  	createVlanMapping createVlanMappingReq group_id 3 
                  	createVlanMapping createVlanMappingReq interface 5 
                  
                  Switch(config-controller-ProvisionPortVlanPortType)# createVlanMapping commit
                  CreateVlanMapping_Output.createVlanMappingResp = 0
                  
                   Create VlanMapping Commit Success!!!

                  Deleting VLAN Mapping

                     Command or ActionPurpose
                    Step 1 configure terminal


                    Example:
                    Switch# configure terminal
                     

                    Enters global configuration mode.

                     
                    Step 2controller nid 1/NID_ID


                    Example:
                    Switch(config)# controller nid 1/1
                     

                    Enters the controller configuration mode.

                     
                    Step 3ProvisionPortVlanPortType


                    Example:
                    Switch(config-controller)# ProvisionPortVlanPortType
                     
                    Enters the ProvisionPortVlanPortType mode.  
                    Step 4deleteVlanMapping deleteVlanMappingReq interface interface_id


                    Example:
                    Switch(config-controller-ProvisionPortVlanPortType)# deleteVlanMapping deleteVlanMappingReq interface 5
                     
                    Deleted VLAN mapping for the specified interface.  
                    Step 5deleteVlanMapping review


                    Example:
                    Switch(config-controller-ProvisionPortVlanPortType)# deleteVlanMapping review
                     

                    Displays the deleteVlanMapping configuration.

                     
                    Step 6deleteVlanMapping commit


                    Example:
                    Switch(config-controller-ProvisionPortVlanPortType)# deleteVlanMapping commit
                     
                    Sends the deleteVlanMapping configuration to the Cisco ME 1200 NID.  
                    Step 7exit


                    Example:
                    Switch(config-controller-ProvisionPortVlanPortType)# exit
                    Switch(config-controller)#
                     
                    Exits to the config-controller mode.  
                    Example
                    Switch# configure terminal
                    Switch(config)# controller nid 1/1
                    Switch(config-controller)# ProvisionPortVlanPortType
                    Switch(config-controller-ProvisionPortVlanPortType)# deleteVlanMapping deleteVlanMappingReq interface 5
                    Switch(config-controller-ProvisionPortVlanPortType)# deleteVlanMapping review
                    
                    Commands in queue:
                    	deleteVlanMapping deleteVlanMappingReq interface 5 
                    
                    Switch(config-controller-ProvisionPortVlanPortType)# deleteVlanMapping commit
                    DeleteVlanMapping_Output.deleteVlanMappingResp = 0
                    
                     Delete Vlan Mapping Commit Success!!!

                    Modifying Switch Ports

                       Command or ActionPurpose
                      Step 1 configure terminal


                      Example:
                      Switch# configure terminal
                       

                      Enters global configuration mode.

                       
                      Step 2controller nid 1/NID_ID


                      Example:
                      Switch(config)# controller nid 1/1
                       

                      Enters the controller configuration mode.

                       
                      Step 3ProvisionPortVlanPortType


                      Example:
                      Switch(config-controller)# ProvisionPortVlanPortType
                       
                      Enters the ProvisionPortVlanPortType mode.  
                      Step 4modifySwPort modifySWPortConfig interface interface_id


                      Example:
                      Switch(config-controller-ProvisionPortVlanPortType)# modifySwPort modifySWPortConfig interaface 4
                       
                      Modifies the switchport configuration on the defined interface.  
                      Step 5 modifySwPort modifySWConfig { interface | intf-description | mode}


                      Example:
                      Switch(config-controller-ProvisionPortVlanPortType)# modifySwPort modifySWPortConfig interface 4
                      Switch(config-controller-ProvisionPortVlanPortType)# modifySwPort modifySWPortConfig intf-description
                      Switch(config-controller-ProvisionPortVlanPortType)# modifySwPort modifySWPortConfig mode
                       
                      • interface—Selects the interface to be configured.
                      • intf-description—Specifies the description of the interface.
                      • mode—Displays the mode of operation.
                       
                      Step 6modifySwPort modifySWPortConfig mode access vlan vlan_id


                      Example:
                      Switch(config-controller-ProvisionPortVlanPortType)# modifySwPort modifySWPortConfig mode 
                      trunk native vlan 2
                       
                      Sets the mode to ACCESS, and assigns a VLAN.  
                      Step 7modifySwPort modifySWPortConfig mode trunk {allowed vlan {add {all | vlan_list vlan_list } | remove {all | vlan_list vlan_list }} | {native vlan vlan_list }


                      Example:
                      Switch(config-controller-ProvisionPortVlanPortType)# modifySwPort modifySWPortConfig mode 
                      trunk allowed vlan add vlan_list 1-5
                       
                      Sets the mode to TRUNK.
                      • allowed—Sets the allowed VLAN characteristics when interface is in trunk mode.
                      • add—Adds either all VLANs or specified VLANs to the current list.
                      • remove—Removes either all VLANs or specified VLANs from the current list.
                      • vlan_id—The VLAN ID. The valid values are from 0 to 4095.
                       
                      Step 8modifySwPort review


                      Example:
                      Switch(config-controller-ProvisionPortVlanPortType)# modifySwPort review
                       

                      Displays the modifySwPort configuration.

                       
                      Step 9modifySwPort commit


                      Example:
                      Switch(config-controller-ProvisionPortVlanPortType)# modifySwPort commit
                       
                      Sends the modifySwPort configuration to the Cisco ME 1200 NID.  
                      Step 10exit


                      Example:
                      Switch(config-controller-ProvisionPortVlanPortType)# exit
                      Switch(config-controller)#
                       
                      Exits to the config-controller mode.  

                      Example

                      Switch# configure terminal
                      Switch(config)# controller nid 1/1
                      Switch(config-controller)# ProvisionPortVlanPortType
                      Switch(config-controller-ProvisionPortVlanPortType)# modifySwPort modifySWPortConfig interaface 4
                      Switch(config-controller-ProvisionPortVlanPortType)# modifySwPort modifySWPortConfig mode trunk native vlan 2
                      Switch(config-controller-ProvisionPortVlanPortType)# modifySwPort modifySWPortConfig mode trunk allowed vlan add vlan_list 200-225
                      Switch(config-controller-ProvisionPortVlanPortType)# modifySwPort review
                      
                      Commands in queue:
                      	modifySwPort modifySWPortConfig interaface 4 
                      	modifySwPort modifySWPortConfig mode trunk native vlan 2 
                      	modifySwPort modifySWPortConfig mode trunk allowed vlan add vlan_list 200-225 
                      
                      Switch(config-controller-ProvisionPortVlanPortType)# modifySwPort commit
                      
                      ModifySwPort_Output.modifySwPortConfigResp = 0
                       Modify SwitchPort Commit Success!!!

                      Note


                      To configure the Switch Port mode as hybrid and the Port description, use modifySwPort_v2. In addition to the available parameters for modifySwPort, the following are the new parameters available:
                      • hybrid - Sets mode to HYBRID unconditionally.

                      • intf_description description - Configures interface description.


                      The following example shows how to configure Switch Port mode as hybrid using modifySwPort_v2.

                      Switch# configure terminal
                      Switch(config)# controller nid 1/1
                      Switch(config-controller)# ProvisionPortVlanPortType
                      Switch(config-controller-ProvisionPortVlanPortType)# modifySwPort_v2 modifySWConfig interaface 1
                      Switch(config-controller-ProvisionPortVlanPortType)# modifySwPort_v2 modifySWConfig mode hybrid allowed vlan remove vlan_list 1-100
                      Switch(config-controller-ProvisionPortVlanPortType)# modifySwPort-v2 modifySWConfig mode hybrid port_type c_port
                      Switch(config-controller-ProvisionPortVlanPortType)# modifySwPort_v2 modifySWConfig mode hybrid ingress_filtering enable
                      Switch(config-controller-ProvisionPortVlanPortType)# modifySwPort_v2 modifySWConfig mode hybrid ingress_acceptance tagged
                      Switch(config-controller-ProvisionPortVlanPortType)# modifySwPort_v2 modifySWConfig mode hybrid egress_tag all
                      Switch(config-controller-ProvisionPortVlanPortType)# modifySwPort_v2 modifySWConfig mode hybrid native vlan 10
                      
                      Switch(config-controller-ProvisionPortVlanPortType)# modifySwPort_v2 review
                      
                      Commands in queue:
                              modifySwPort_v2 modifySWConfig interaface 1
                              modifySwPort_v2 modifySWConfig mode hybrid allowed vlan remove vlan_list 1-100
                              modifySwPort_v2 modifySWConfig mode hybrid port_type c_port
                              modifySwPort_v2 modifySWConfig mode hybrid ingress_filtering enable
                              modifySwPort_v2 modifySWConfig mode hybrid ingress_acceptance tagged
                              modifySwPort_v2 modifySWConfig mode hybrid egress_tag all
                              modifySwPort_v2 modifySWConfig mode hybrid native vlan 10
                      	
                      Switch(config-controller-ProvisionPortVlanPortType)# modifySwPort_v2 commit

                      The following example shows how to configure interface description using modifySwPort_v2.

                      Switch# configure terminal
                      Switch(config)# controller nid 1/1
                      Switch(config-controller)# ProvisionPortVlanPortType
                      Switch(config-controller-ProvisionPortVlanPortType)# modifySwPort_v2 modifySWConfig interaface 1
                      Switch(config-controller-ProvisionPortVlanPortType)# modifySwPort_v2 modifySWConfig intf_description description connected_to_r1
                      Switch(config-controller-ProvisionPortVlanPortType)# modifySwPort_v2 review
                      
                      Commands in queue:
                      modifySwPort_v2 modifySWConfig interaface 1
                      modifySwPort_v2 modifySWConfig intf_description description connected_to_r1
                      	
                      Switch(config-controller-ProvisionPortVlanPortType)# modifySwPort_v2 commit

                      Deleting Switch Ports

                         Command or ActionPurpose
                        Step 1 configure terminal


                        Example:
                        Switch# configure terminal
                         

                        Enters global configuration mode.

                         
                        Step 2controller nid 1/NID_ID


                        Example:
                        Switch(config)# controller nid 1/1
                         

                        Enters the controller configuration mode.

                         
                        Step 3ProvisionPortVlanPortType


                        Example:
                        Switch(config-controller)# ProvisionPortVlanPortType
                         
                        Enters the ProvisionPortVlanPortType mode.  
                        Step 4deleteSwPort deleteSwPortReq interface interface_id


                        Example:
                        Switch(config-controller-ProvisionPortVlanPortType)# deleteSwPort deleteSwPortReq interaface 5
                         
                        Deletes the switchport on the specified interface.  
                        Step 5deleteSwPort deleteSwPortReq mode {access | trunk}


                        Example:
                        Switch(config-controller-ProvisionPortVlanPortType)# deleteSwPort deleteSwPortReq mode access
                         
                        Deletes the switchport on the specified mode.  
                        Step 6deleteSwPort review


                        Example:
                        Switch(config-controller-ProvisionPortVlanPortType)# deleteSwPort review
                         

                        Displays the deleteSwPort configuration.

                         
                        Step 7deleteSwPort commit


                        Example:
                        Switch(config-controller-ProvisionPortVlanPortType)# deleteSwPort commit
                         
                        Sends the deleteSwPort configuration to the Cisco ME 1200 NID.  
                        Step 8exit


                        Example:
                        Switch(config-controller-ProvisionPortVlanPortType)# exit
                        Switch(config-controller)#
                         
                        Exits to the config-controller mode.  
                        Example
                        Switch# configure terminal
                        Switch(config)# controller nid 1/1
                        Switch(config-controller)# ProvisionPortVlanPortType
                        Switch(config-controller-ProvisionPortVlanPortType)# deleteSwPort deleteSwPortReq interaface 5
                        Switch(config-controller-ProvisionPortVlanPortType)# deleteSwPort deleteSwPortReq mode access
                        Switch(config-controller-ProvisionPortVlanPortType)# deleteSwPort review
                        
                        Commands in queue:
                        	deleteSwPort deleteSwPortReq interaface 5 
                        	deleteSwPort deleteSwPortReq mode access 
                        
                        Switch(config-controller-ProvisionPortVlanPortType)# deleteSwPort commit
                        DeleteSwPort_Output.deleteSwPortResp = 0
                        
                         Delete SwitchPort Commit Success!!!

                        Verifying Switch Port Details

                        The following is a sample output to verify all details of the switch ports:

                        Switch(config-controller-ProvisionPortVlanPortType)# showSwPort showSwPortReq all all
                        Commands in queue:
                        
                        showSwPort showSwPortReq all all
                        Switch(config-controller-ProvisionPortVlanPortType)# showSwPort commit
                        ShowSwPort_Output.showSwPortResp.interface_list[0].name = 'GigabitEthernet 1/1'
                        ShowSwPort_Output.showSwPortResp.interface_list[0].admin_mode = 'trunk'
                        ShowSwPort_Output.showSwPortResp.interface_list[0].access_mode = 1
                        ShowSwPort_Output.showSwPortResp.interface_list[0].trunk_mode = 1
                        ShowSwPort_Output.showSwPortResp.interface_list[0].trunk_members = '1-4095'
                        ShowSwPort_Output.showSwPortResp.interface_list[1].name = 'GigabitEthernet 1/2'
                        ShowSwPort_Output.showSwPortResp.interface_list[1].admin_mode = 'trunk'
                        ShowSwPort_Output.showSwPortResp.interface_list[1].access_mode = 1
                        ShowSwPort_Output.showSwPortResp.interface_list[1].trunk_mode = 1
                        ShowSwPort_Output.showSwPortResp.interface_list[1].trunk_members = '1-4095'
                        ShowSwPort_Output.showSwPortResp.interface_list[2].name = 'GigabitEthernet 1/3'
                        ShowSwPort_Output.showSwPortResp.interface_list[2].admin_mode = 'trunk'
                        ShowSwPort_Output.showSwPortResp.interface_list[2].access_mode = 1
                        ShowSwPort_Output.showSwPortResp.interface_list[2].trunk_mode = 1
                        ShowSwPort_Output.showSwPortResp.interface_list[2].trunk_members = '1-4095'
                        ShowSwPort_Output.showSwPortResp.interface_list[3].name = 'GigabitEthernet 1/4'
                        ShowSwPort_Output.showSwPortResp.interface_list[3].admin_mode = 'trunk'
                        ShowSwPort_Output.showSwPortResp.interface_list[3].access_mode = 1
                        ShowSwPort_Output.showSwPortResp.interface_list[3].trunk_mode = 2
                        ShowSwPort_Output.showSwPortResp.interface_list[3].trunk_members = '1-4095'
                        ShowSwPort_Output.showSwPortResp.interface_list[4].name = 'GigabitEthernet 1/5'
                        ShowSwPort_Output.showSwPortResp.interface_list[4].admin_mode = 'access'
                        ShowSwPort_Output.showSwPortResp.interface_list[4].access_mode = 120
                        ShowSwPort_Output.showSwPortResp.interface_list[4].trunk_mode = 1
                        ShowSwPort_Output.showSwPortResp.interface_list[4].trunk_members = '1-4095'
                        ShowSwPort_Output.showSwPortResp.interface_list[5].name = 'GigabitEthernet 1/6'
                        ShowSwPort_Output.showSwPortResp.interface_list[5].admin_mode = 'access'
                        ShowSwPort_Output.showSwPortResp.interface_list[5].access_mode = 1
                        ShowSwPort_Output.showSwPortResp.interface_list[5].trunk_mode = 1
                        ShowSwPort_Output.showSwPortResp.interface_list[5].trunk_members = '1-4095'
                        
                         Show SwitchPort Commit Success!!!