Configuring L2CP

This document describes the Layer 2 Control Protocol (L2CP) feature and configuration steps to implement L2CP.

Prerequisites for Configuring L2CP

  • NID must be added to the controller.

  • NID must be accessible from the controller.

  • NID must have an IP address.

Restrictions for Configuring L2CP

  • When committing multiple lists, the list in previous commit is not retained. Example: a peer list 16-18 in a previous commit is replaced by a new commit of peer list 21.

    To retain multiple lists, you must specify the lists in a single commit. Example: peer list 16-18,21.

  • Any L2CP processing configured using forward/peer/discard modes applies to all EVCs on the port.

  • Provisioning L2CP in tunnel mode is not supported. You cannot prevent core switches from processing frame as a L2CP frame in a service provider network.

  • To delete a previously configured discardList, you must configure discard discardList command with no before you commit the command. Otherwise, by default the previously configured value is retained.

    Example:

    setL2CPPortConfig l2cpPortConfiguration portNumber 6 
    setL2CPPortConfig l2cpPortConfiguration discard discardList no

Information About L2CP

L2CP addresses the requirement for a bidirectional, IP- based protocol that operates across a number of access and aggregation network technologies such as Ethernet. The L2CP message exchange conveys status and control information between access devices and one or more other devices that require the information for executing local functions.

L2CP handling is required for edge switches providing Ethernet Virtual Connections (EVCs) in a service provider network.

In this case, UCS Controller and NID are used to establish an EVC between UNI ports of two Customer Premise Equipment (CPE).

The following options are available to provision L2CP on NID:
  • Forward—The L2CP frame is forwarded to the network port like other layer 2 frames in the EVC.

  • Peer—The L2CP frame is processed by a local protocol entity and is not forwarded.

  • Discard—The L2CP frame is discarded.

The following figure shows the topology used for provisioning L2CP on NIDs using the UCS Controller.

Figure 1. L2CP Topology

Configuring L2CP Using a UCS Controller

     Command or ActionPurpose
    Step 1ConfigureNID


    Example:
    UCS# Configure NID 1
     

    Opens a new session for NID 1.

     
    Step 2ProvisionL2CPPortType


    Example:
    UCS# ProvisionL2CPPortType
     
    Enters the ProvisionL2CPPortType mode.  
    Step 3ProvisionL2CPPortType {default | exit | getL2CPPortConfig | no | setL2CPPortConfig}


    Example:
    UCS# ProvisionL2CPPortType
     
    Sub-command options.
    • default—Sets a command to its defaults.
    • exit—Exits from ProvisionL2CPPortType sub configuration mode.
    • getL2CPPortConfig—Retrieves current L2CP configuration request.
    • no—Negates a command or set its defaults.
    • setL2CPPortConfig—Configures L2CP forward on EVCs on this port.
     
    Step 4getL2CPPortConfig l2cpPortl2cpPort_number


    Example:
    UCS(ProvisionL2CPPortType)# getL2CPPortConfig l2cpPort 5
     
    Retrieves initial or default L2CP configuration.
    • l2cpPort—Specifies L2CP port configuration request.
    • l2cpPort_number—L2CP port number. The valid range is from 1 to 6.
     
    Step 5setL2CPPortConfig l2cpPortConfiguration {enabled | portNumber portNumber | discard {discardListdiscardList_range} | forward {forwardListforwardList_range} | peer {peerListpeerList_range}}


    Example:
    UCS(ProvisionL2CPPortType)# setL2CPPortConfig l2cpPortConfiguration portNumber 5
    UCS(ProvisionL2CPPortType)# setL2CPPortConfig l2cpPortConfiguration enabled enable
     
    Sets up L2CP forward/peer/discard configuration request on all EVCs on this port.
    • enabled—Specifies L2CP configuration enabled/disabled on this port.
    • portNumber—Specifies port number to configure L2CP.
    • portNumber—Port number to configure L2CP. The valid range is from 1 to 6.
    • discard—Discards L2CP frames.
    • discardList— Selects BPDU addresses and GARP addresses.
    • discardList_range— BPDU addresses (0-15) and GARP addresses (16-31).
    • forward— Allows forwarding of L2CP frames.
    • forwardList—Selects BPDU addresses and GARP addresses.
    • forwardList_range— BPDU addresses (0-15) and GARP addresses (16-31).
    • peer—Redirects L2CP frames to local protocol entity.
    • peerList—Selects BPDU addresses and GARP addresses.
    • peerList_range— BPDU addresses (0-15) and GARP addresses (16-31).
     
    Step 6setL2CPPortConfig review


    Example:
    UCS(L2CPPortType)# setL2CPPortConfig review
     
    (Optional) Displays the configuration.  
    Step 7setL2CPPortConfig flush


    Example:
    UCS(L2CPPortType)# setL2CPPortConfig flush
     
    (Optional) Flushes the configuration.  
    Step 8setL2CPPortConfig commit


    Example:
    UCS(L2CPPortType)# setL2CPPortConfig commit
     
    Sends the configuration to NID.  
    Step 9getL2CPPortConfig l2cpPort l2cpPort_number


    Example:
    UCS(ProvisionL2CPPortType)# getL2CPPortConfig l2cpPort 5
     
    Retrieves current L2CP configuration for a specified port.
    • l2cpPort—Specifies L2CP port configuration request.
    • l2cpPort_number—L2CP port number. The valid range is from 1 to 6.
     
    Step 10getL2CPPortConfig review


    Example:
    UCS(ProvisionL2CPPortType)# getL2CPPortConfig review
     
    (Optional) Displays the configuration.  
    Step 11getL2CPPortConfig flush


    Example:
    UCS(ProvisionL2CPPortType)# getL2CPPortConfig flush
     
    (Optional) Flushes the configuration.  
    Step 12getL2CPPortConfig commit


    Example:
    UCS(ProvisionL2CPPortType)# getL2CPPortConfig commit
     
    Sends the configuration to NID.  
    Step 13exit


    Example:
    UCS(ProvisionL2CPPortType)# exit
     
    Exits the ProvisionL2CPPortType mode.  

    Configuration Example

    • The example shows how to enable L2CP on a port:

      UCS# ProvisionL2CPPortType ?
        <cr>
      
      UCS(ProvisionL2CPPortType)#?
      ProvisionL2CPPortType sub-mode commands:
        default            Set a command to its defaults
        exit               Exit from ProvisionL2CPPortType sub configuration mode
        getL2CPPortConfig  Get current L2CP configuration request
        no                 Negate a command or set its defaults
        setL2CPPortConfig  Configure L2CP forward on EVCs on this port
      
      UCS(ProvisionL2CPPortType)#setL2CPPortConfig ?
        commit                 commit setL2CPPortConfig 
        flush                  flush all setL2CPPortConfig commands from queue
        l2cpPortConfiguration  Configure L2CP forward on EVCs on this port
        review                 review setL2CPPortConfig commands
      
      UCS(ProvisionL2CPPortType)#setL2CPPortConfig l2
      UCS(ProvisionL2CPPortType)#$pPortConfiguration ?
        discard     Discard L2CP frames
        enabled     L2CP configuration enabled/disabled on this port 
        forward     Allow forwarding of L2CP frames
        peer        Redirect L2CP frames to local protocol entity
        portNumber  Port number to configure L2CP
      
      UCS(ProvisionL2CPPortType)#$guration portNumber 3
      UCS(ProvisionL2CPPortType)#$guration enabled enable
      
      UCS(ProvisionL2CPPortType)#setL2CPPortConfig review   
      Commands in queue:
              setL2CPPortConfig l2cpPortConfiguration portNumber 3 
              setL2CPPortConfig l2cpPortConfiguration enabled enable 
      
      Commands in queue:
              setL2CPPortConfig l2cpPortConfiguration portNumber 3 
              setL2CPPortConfig l2cpPortConfiguration enabled enable 
      UCS(ProvisionL2CPPortType)#setL2CPPortConfig commit
       SetL2CPPortConfig Commit Success!!!

      When SetL2CPPortConfig operation is executed on a NID from a UCS Controller, initially GetL2CPPortConfig fetches the current configuration. This is followed by SetL2CPPortConfig to set the new L2CP configuration. The following is a sample output on the NID.

      # 
      Decoding of Request message was successful
      Decoded record:
      GetL2CPPortConfig_Output.l2cpPortConfiguration.enabled = true
      GetL2CPPortConfig_Output.l2cpPortConfiguration.portNumber = 3
      GetL2CPPortConfig_Output.l2cpPortConfiguration.discard.discardList = ''
      GetL2CPPortConfig_Output.l2cpPortConfiguration.forward.forwardList = '16-31'
      GetL2CPPortConfig_Output.l2cpPortConfiguration.peer.peerList = '0-15'
      GetL2CPPortConfig_Output.xmlns:ns0 = "http://new.webservice.namespace"
      GetL2CPPortConfig_Output.xmlns:http = "http://schemas.xmlsoap.org/wsdl/http/"
      GetL2CPPortConfig_Output.xmlns:mime = "http://schemas.xmlsoap.org/wsdl/mime/"
      GetL2CPPortConfig_Output.xmlns:soap = "http://schemas.xmlsoap.org/wsdl/soap/"
      GetL2CPPortConfig_Output.xmlns:soapenc = "http://schemas.xmlsoap.org/soap/encoding/"
      GetL2CPPortConfig_Output.xmlns:wsdl = "http://schemas.xmlsoap.org/wsdl/"
      Decoding of Request message was successful
      Decoded record:
      SetL2CPPortConfig_Input.l2cpPortConfiguration.enabled = true
      SetL2CPPortConfig_Input.l2cpPortConfiguration.portNumber = 3
      SetL2CPPortConfig_Input.l2cpPortConfiguration.discard.discardList = ''
      SetL2CPPortConfig_Input.l2cpPortConfiguration.forward.forwardList = '16-31'
      SetL2CPPortConfig_Input.l2cpPortConfiguration.peer.peerList = '0-15'
      Encoding of Response message was successful
      Encoded record:
      SetL2CPPortConfig_Output.l2cpPortConfigResponse = 0
      SetL2CPPortConfig_Output.xmlns:ns0 = "http://new.webservice.namespace"
      SetL2CPPortConfig_Output.xmlns:http = "http://schemas.xmlsoap.org/wsdl/http/"
      SetL2CPPortConfig_Output.xmlns:mime = "http://schemas.xmlsoap.org/wsdl/mime/"
      SetL2CPPortConfig_Output.xmlns:soap = "http://schemas.xmlsoap.org/wsdl/soap/"
      SetL2CPPortConfig_Output.xmlns:soapenc = "http://schemas.xmlsoap.org/soap/encoding/"
      SetL2CPPortConfig_Output.xmlns:wsdl = "http://schemas.xmlsoap.org/wsdl/"
    • The examples shows how to enable L2CP Forward on a port.

      UCS# ProvisionL2CPPortType ?
        <cr>
      
      UCS(ProvisionL2CPPortType)#?
      ProvisionL2CPPortType sub-mode commands:
        default            Set a command to its defaults
        exit               Exit from ProvisionL2CPPortType sub configuration mode
        getL2CPPortConfig  Get current L2CP configuration request
        no                 Negate a command or set its defaults
        setL2CPPortConfig  Configure L2CP forward on EVCs on this port
      
      UCS(ProvisionL2CPPortType)#setL2CPPortConfig ?
        commit                 commit setL2CPPortConfig 
        flush                  flush all setL2CPPortConfig commands from queue
        l2cpPortConfiguration  Configure L2CP forward on EVCs on this port
        review                 review setL2CPPortConfig commands
      
      UCS(ProvisionL2CPPortType)#setL2CPPortConfig l2
      UCS(ProvisionL2CPPortType)#$pPortConfiguration ?
        discard     Discard L2CP frames
        enabled     L2CP configuration enabled/disabled on this port 
        forward     Allow forwarding of L2CP frames
        peer        Redirect L2CP frames to local protocol entity
        portNumber  Port number to configure L2CP
      
      UCS(ProvisionL2CPPortType)#$guration portNumber 3
      UCS(ProvisionL2CPPortType)#$guration enabled enable
      UCS(ProvisionL2CPPortType)#$guration forward for
      UCS(ProvisionL2CPPortType)#$orward forwardList 1-14
      UCS(ProvisionL2CPPortType)#
      UCS(ProvisionL2CPPortType)#setL2CPPortConfig review 
      Commands in queue:
              setL2CPPortConfig l2cpPortConfiguration forward forwardList 1-14 
              setL2CPPortConfig l2cpPortConfiguration portNumber 3 
              setL2CPPortConfig l2cpPortConfiguration enabled enable 
      UCS(ProvisionL2CPPortType)#setL2CPPortConfig commit
       SetL2CPPortConfig Commit Success!!!

      The following is a sample output on the NID.

      # 
      Decoding of Request message was successful
      Decoded record:
      GetL2CPPortConfig_Input.l2cpPort = 3
      Encoding of Response message was successful
      Encoded record:
      GetL2CPPortConfig_Output.l2cpPortConfiguration.enabled = true
      GetL2CPPortConfig_Output.l2cpPortConfiguration.portNumber = 3
      GetL2CPPortConfig_Output.l2cpPortConfiguration.discard.discardList = ''
      GetL2CPPortConfig_Output.l2cpPortConfiguration.forward.forwardList = '16-31'
      GetL2CPPortConfig_Output.l2cpPortConfiguration.peer.peerList = '0-15'
      GetL2CPPortConfig_Output.xmlns:ns0 = "http://new.webservice.namespace"
      GetL2CPPortConfig_Output.xmlns:http = "http://schemas.xmlsoap.org/wsdl/http/"
      GetL2CPPortConfig_Output.xmlns:mime = "http://schemas.xmlsoap.org/wsdl/mime/"
      GetL2CPPortConfig_Output.xmlns:soap = "http://schemas.xmlsoap.org/wsdl/soap/"
      GetL2CPPortConfig_Output.xmlns:soapenc = "http://schemas.xmlsoap.org/soap/encoding/"
      GetL2CPPortConfig_Output.xmlns:wsdl = "http://schemas.xmlsoap.org/wsdl/"
      Decoding of Request message was successful
      Decoded record:
      SetL2CPPortConfig_Input.l2cpPortConfiguration.enabled = true
      SetL2CPPortConfig_Input.l2cpPortConfiguration.portNumber = 3
      SetL2CPPortConfig_Input.l2cpPortConfiguration.discard.discardList = ''
      SetL2CPPortConfig_Input.l2cpPortConfiguration.forward.forwardList = '1-14'
      SetL2CPPortConfig_Input.l2cpPortConfiguration.peer.peerList = '0-15'
      Encoding of Response message was successful
      Encoded record:
      SetL2CPPortConfig_Output.l2cpPortConfigResponse = 0
      SetL2CPPortConfig_Output.xmlns:ns0 = "http://new.webservice.namespace"
      SetL2CPPortConfig_Output.xmlns:http = "http://schemas.xmlsoap.org/wsdl/http/"
      SetL2CPPortConfig_Output.xmlns:mime = "http://schemas.xmlsoap.org/wsdl/mime/"
      SetL2CPPortConfig_Output.xmlns:soap = "http://schemas.xmlsoap.org/wsdl/soap/"
      SetL2CPPortConfig_Output.xmlns:soapenc = "http://schemas.xmlsoap.org/soap/encoding/"
      SetL2CPPortConfig_Output.xmlns:wsdl = "http://schemas.xmlsoap.org/wsdl/"
      #show running-config interface GigabitEthernet 1/3
      Building configuration...
      interface GigabitEthernet 1/3
       switchport hybrid allowed vlan 1
       switchport hybrid acceptable-frame-type untagged
       switchport hybrid ingress-filtering
       switchport hybrid port-type unaware
       switchport mode trunk
       lldp med type end-point 
       qos dscp-remark rewrite
       evc l2cp forward 1-14
    • The examples shows how to enable L2CP Forward, Peer, Discard on a port.

      UCS# ProvisionL2CPPortType ?
        <cr>
      
      UCS(ProvisionL2CPPortType)#?
      ProvisionL2CPPortType sub-mode commands:
        default            Set a command to its defaults
        exit               Exit from ProvisionL2CPPortType sub configuration mode
        getL2CPPortConfig  Get current L2CP configuration request
        no                 Negate a command or set its defaults
        setL2CPPortConfig  Configure L2CP forward on EVCs on this port
      
      UCS(ProvisionL2CPPortType)#setL2CPPortConfig ?
        commit                 commit setL2CPPortConfig 
        flush                  flush all setL2CPPortConfig commands from queue
        l2cpPortConfiguration  Configure L2CP forward on EVCs on this port
        review                 review setL2CPPortConfig commands
      
      UCS(ProvisionL2CPPortType)#setL2CPPortConfig l2
      UCS(ProvisionL2CPPortType)#$pPortConfiguration ?
        discard     Discard L2CP frames
        enabled     L2CP configuration enabled/disabled on this port 
        forward     Allow forwarding of L2CP frames
        peer        Redirect L2CP frames to local protocol entity
        portNumber  Port number to configure L2CP
      
      UCS(ProvisionL2CPPortType)#$guration portNumber 3
      UCS(ProvisionL2CPPortType)#$guration enabled enable
      UCS(ProvisionL2CPPortType)#$guration forward for
      UCS(ProvisionL2CPPortType)#$orward forwardList 1-14
      UCS(ProvisionL2CPPortType)#$peer peerList 16-20  
      UCS(ProvisionL2CPPortType)#$guration discard di
      UCS(ProvisionL2CPPortType)#$iscard discardList 19
      UCS(ProvisionL2CPPortType)#setL2CPPortConfig review
      Commands in queue:
              setL2CPPortConfig l2cpPortConfiguration portNumber 3 
              setL2CPPortConfig l2cpPortConfiguration enabled enable 
              setL2CPPortConfig l2cpPortConfiguration peer peerList 16-20 
              setL2CPPortConfig l2cpPortConfiguration discard discardList 19 
              setL2CPPortConfig l2cpPortConfiguration forward forwardList 1-14 
      
      UCS(ProvisionL2CPPortType)#setL2CPPortConfig review
      Commands in queue:
              setL2CPPortConfig l2cpPortConfiguration portNumber 3 
              setL2CPPortConfig l2cpPortConfiguration enabled enable 
              setL2CPPortConfig l2cpPortConfiguration peer peerList 16-20 
              setL2CPPortConfig l2cpPortConfiguration discard discardList 19 
              setL2CPPortConfig l2cpPortConfiguration forward forwardList 1-14 
      UCS(ProvisionL2CPPortType)#setL2CPPortConfig commit
       SetL2CPPortConfig Commit Success!!!

      The following is a sample output on the NID.

      # Decoding of Request message was successful
      Decoded record:
      GetL2CPPortConfig_Input.l2cpPort = 3
      Encoding of Response message was successful
      Encoded record:
      GetL2CPPortConfig_Output.l2cpPortConfiguration.enabled = true
      GetL2CPPortConfig_Output.l2cpPortConfiguration.portNumber = 3
      GetL2CPPortConfig_Output.l2cpPortConfiguration.discard.discardList = ''
      GetL2CPPortConfig_Output.l2cpPortConfiguration.forward.forwardList = '1-14'
      GetL2CPPortConfig_Output.l2cpPortConfiguration.peer.peerList = '0-15'
      GetL2CPPortConfig_Output.xmlns:ns0 = "http://new.webservice.namespace"
      GetL2CPPortConfig_Output.xmlns:http = "http://schemas.xmlsoap.org/wsdl/http/"
      GetL2CPPortConfig_Output.xmlns:mime = "http://schemas.xmlsoap.org/wsdl/mime/"
      GetL2CPPortConfig_Output.xmlns:soap = "http://schemas.xmlsoap.org/wsdl/soap/"
      GetL2CPPortConfig_Output.xmlns:soapenc = "http://schemas.xmlsoap.org/soap/encoding/"
      GetL2CPPortConfig_Output.xmlns:wsdl = "http://schemas.xmlsoap.org/wsdl/"
      Decoding of Request message was successful
      Decoded record:
      SetL2CPPortConfig_Input.l2cpPortConfiguration.enabled = true
      SetL2CPPortConfig_Input.l2cpPortConfiguration.portNumber = 3
      SetL2CPPortConfig_Input.l2cpPortConfiguration.discard.discardList = '19'
      SetL2CPPortConfig_Input.l2cpPortConfiguration.forward.forwardList = '1-14'
      SetL2CPPortConfig_Input.l2cpPortConfiguration.peer.peerList = '16-20'
      Encoding of Response message was successful
      Encoded record:
      SetL2CPPortConfig_Output.l2cpPortConfigResponse = 0
      SetL2CPPortConfig_Output.xmlns:ns0 = "http://new.webservice.namespace"
      SetL2CPPortConfig_Output.xmlns:http = "http://schemas.xmlsoap.org/wsdl/http/"
      SetL2CPPortConfig_Output.xmlns:mime = "http://schemas.xmlsoap.org/wsdl/mime/"
      SetL2CPPortConfig_Output.xmlns:soap = "http://schemas.xmlsoap.org/wsdl/soap/"
      SetL2CPPortConfig_Output.xmlns:soapenc = "http://schemas.xmlsoap.org/soap/encoding/"
      SetL2CPPortConfig_Output.xmlns:wsdl = "http://schemas.xmlsoap.org/wsdl/"
      # show running-config interface GigabitEthernet 1/3
      Building configuration...
      interface GigabitEthernet 1/3
       switchport hybrid allowed vlan 1
       switchport hybrid acceptable-frame-type untagged
       switchport hybrid ingress-filtering
       switchport hybrid port-type unaware
       switchport mode trunk
       lldp med type end-point 
       qos dscp-remark rewrite
       evc l2cp peer 16-18,20 forward 1-14 discard 19
      !
      end
    • The examples shows how to disable or reset L2CP Discard on a port.

      UCS# ProvisionL2CPPortType ?
        <cr>
      
      UCS(ProvisionL2CPPortType)#?
      ProvisionL2CPPortType sub-mode commands:
        default            Set a command to its defaults
        exit               Exit from ProvisionL2CPPortType sub configuration mode
        getL2CPPortConfig  Get current L2CP configuration request
        no                 Negate a command or set its defaults
        setL2CPPortConfig  Configure L2CP forward on EVCs on this port
      
      UCS(ProvisionL2CPPortType)#setL2CPPortConfig ?
        commit                 commit setL2CPPortConfig 
        flush                  flush all setL2CPPortConfig commands from queue
        l2cpPortConfiguration  Configure L2CP forward on EVCs on this port
        review                 review setL2CPPortConfig commands
      
      UCS(ProvisionL2CPPortType)#setL2CPPortConfig l2
      UCS(ProvisionL2CPPortType)#$pPortConfiguration ?
        discard     Discard L2CP frames
        enabled     L2CP configuration enabled/disabled on this port 
        forward     Allow forwarding of L2CP frames
        peer        Redirect L2CP frames to local protocol entity
        portNumber  Port number to configure L2CP
      
      UCS(ProvisionL2CPPortType)#$guration portNumber 3
      UCS(ProvisionL2CPPortType)#$guration enabled enable
      UCS(ProvisionL2CPPortType)#$guration discard di
      UCS(ProvisionL2CPPortType)#$iscard discardList no
      UCS(ProvisionL2CPPortType)#setL2CPPortConfig review
      Commands in queue:
              setL2CPPortConfig l2cpPortConfiguration portNumber 3 
              setL2CPPortConfig l2cpPortConfiguration enabled enable 
              setL2CPPortConfig l2cpPortConfiguration peer peerList 16-20 
              setL2CPPortConfig l2cpPortConfiguration discard discardList 19 
              setL2CPPortConfig l2cpPortConfiguration forward forwardList 1-14 
      
      UCS(ProvisionL2CPPortType)#setL2CPPortConfig review
      Commands in queue:
              setL2CPPortConfig l2cpPortConfiguration portNumber 3 
              setL2CPPortConfig l2cpPortConfiguration enabled enable 
              setL2CPPortConfig l2cpPortConfiguration discard discardList no 
      
      UCS(ProvisionL2CPPortType)#setL2CPPortConfig commit
       SetL2CPPortConfig Commit Success!!!

      The following is a sample output on the NID.

      # Decoding of Request message was successful
      Decoded record:
      GetL2CPPortConfig_Input.l2cpPort = 3
      Encoding of Response message was successful
      Encoded record:
      GetL2CPPortConfig_Output.l2cpPortConfiguration.enabled = true
      GetL2CPPortConfig_Output.l2cpPortConfiguration.portNumber = 3
      GetL2CPPortConfig_Output.l2cpPortConfiguration.discard.discardList = '19'
      GetL2CPPortConfig_Output.l2cpPortConfiguration.forward.forwardList = '1-14'
      GetL2CPPortConfig_Output.l2cpPortConfiguration.peer.peerList = '16-20'
      GetL2CPPortConfig_Output.xmlns:ns0 = "http://new.webservice.namespace"
      GetL2CPPortConfig_Output.xmlns:http = "http://schemas.xmlsoap.org/wsdl/http/"
      GetL2CPPortConfig_Output.xmlns:mime = "http://schemas.xmlsoap.org/wsdl/mime/"
      GetL2CPPortConfig_Output.xmlns:soap = "http://schemas.xmlsoap.org/wsdl/soap/"
      GetL2CPPortConfig_Output.xmlns:soapenc = "http://schemas.xmlsoap.org/soap/encoding/"
      GetL2CPPortConfig_Output.xmlns:wsdl = "http://schemas.xmlsoap.org/wsdl/"
      Decoding of Request message was successful
      Decoded record:
      SetL2CPPortConfig_Input.l2cpPortConfiguration.enabled = true
      SetL2CPPortConfig_Input.l2cpPortConfiguration.portNumber = 3
      SetL2CPPortConfig_Input.l2cpPortConfiguration.discard.discardList = 'no'
      SetL2CPPortConfig_Input.l2cpPortConfiguration.forward.forwardList = '1-14'
      SetL2CPPortConfig_Input.l2cpPortConfiguration.peer.peerList = '16-20'
      Encoding of Response message was successful
      Encoded record:
      SetL2CPPortConfig_Output.l2cpPortConfigResponse = 0
      SetL2CPPortConfig_Output.xmlns:ns0 = "http://new.webservice.namespace"
      SetL2CPPortConfig_Output.xmlns:http = "http://schemas.xmlsoap.org/wsdl/http/"
      SetL2CPPortConfig_Output.xmlns:mime = "http://schemas.xmlsoap.org/wsdl/mime/"
      SetL2CPPortConfig_Output.xmlns:soap = "http://schemas.xmlsoap.org/wsdl/soap/"
      SetL2CPPortConfig_Output.xmlns:soapenc = "http://schemas.xmlsoap.org/soap/encoding/"
      SetL2CPPortConfig_Output.xmlns:wsdl = "http://schemas.xmlsoap.org/wsdl/"
      # show running-config interface GigabitEthernet 1/3 
      Building configuration...
      interface GigabitEthernet 1/3
       switchport hybrid allowed vlan 1
       switchport hybrid acceptable-frame-type untagged
       switchport hybrid ingress-filtering
       switchport hybrid port-type unaware
       switchport mode trunk
       lldp med type end-point 
       qos dscp-remark rewrite
       evc l2cp peer 16-20 forward 1-14
    • The examples shows how to retrieve current configuration on a NID.

      UCS(ProvisionL2CPPortType)#getL2CPPortConfig ?
        commit    commit getL2CPPortConfig 
        flush     flush all getL2CPPortConfig commands from queue
        l2cpPort  Get current L2CP configuration request
        review    review getL2CPPortConfig commands
      
      UCS(ProvisionL2CPPortType)#getL2CPPortConfig l2cpPort ?
        <1-6>  Get L2CP Port Configuration Request
      
      UCS(ProvisionL2CPPortType)#$Config l2cpPort 3 ?       
        <cr>
      UCS(ProvisionL2CPPortType)#getL2CPPortConfig review
      Commands in queue:
              getL2CPPortConfig l2cpPort 3 
      UCS(ProvisionL2CPPortType)#
      UCS(ProvisionL2CPPortType)#getL2CPPortConfig commit
      GetL2CPPortConfig_Output.l2cpPortConfiguration.enabled = true
      GetL2CPPortConfig_Output.l2cpPortConfiguration.portNumber = 3
      GetL2CPPortConfig_Output.l2cpPortConfiguration.discard.discardList = 'no'
      GetL2CPPortConfig_Output.l2cpPortConfiguration.forward.forwardList = '1-14'
      GetL2CPPortConfig_Output.l2cpPortConfiguration.peer.peerList = '16-20'
      
      GetL2CPPortConfig Commit Success!!!

      The following is a sample output on the NID.

      # Decoding of Request message was successful
      Decoded record:
      GetL2CPPortConfig_Input.l2cpPort = 3
      Encoding of Response message was successful
      Encoded record:
      GetL2CPPortConfig_Output.l2cpPortConfiguration.enabled = true
      GetL2CPPortConfig_Output.l2cpPortConfiguration.portNumber = 3
      GetL2CPPortConfig_Output.l2cpPortConfiguration.discard.discardList = 'no'
      GetL2CPPortConfig_Output.l2cpPortConfiguration.forward.forwardList = '1-14'
      GetL2CPPortConfig_Output.l2cpPortConfiguration.peer.peerList = '16-20'
      GetL2CPPortConfig_Output.xmlns:ns0 = "http://new.webservice.namespace"
      GetL2CPPortConfig_Output.xmlns:http = "http://schemas.xmlsoap.org/wsdl/http/"
      GetL2CPPortConfig_Output.xmlns:mime = "http://schemas.xmlsoap.org/wsdl/mime/"
      GetL2CPPortConfig_Output.xmlns:soap = "http://schemas.xmlsoap.org/wsdl/soap/"
      GetL2CPPortConfig_Output.xmlns:soapenc = "http://schemas.xmlsoap.org/soap/encoding/"
      GetL2CPPortConfig_Output.xmlns:wsdl = "http://schemas.xmlsoap.org/wsdl/"
    • The examples shows how to flush L2CP configuration on a port.

      UCS# ProvisionL2CPPortType ?
        <cr>
      
      UCS(ProvisionL2CPPortType)#?
      ProvisionL2CPPortType sub-mode commands:
        default            Set a command to its defaults
        exit               Exit from ProvisionL2CPPortType sub configuration mode
        getL2CPPortConfig  Get current L2CP configuration request
        no                 Negate a command or set its defaults
        setL2CPPortConfig  Configure L2CP forward on EVCs on this port
      
      UCS(ProvisionL2CPPortType)#setL2CPPortConfig ?
        commit                 commit setL2CPPortConfig 
        flush                  flush all setL2CPPortConfig commands from queue
        l2cpPortConfiguration  Configure L2CP forward on EVCs on this port
        review                 review setL2CPPortConfig commands
      
      UCS(ProvisionL2CPPortType)#setL2CPPortConfig review
      Commands in queue:
              setL2CPPortConfig l2cpPortConfiguration portNumber 3 
              setL2CPPortConfig l2cpPortConfiguration enabled enable 
              setL2CPPortConfig l2cpPortConfiguration forward forwardList 1-14 
              setL2CPPortConfig l2cpPortConfiguration peer peerList 16-20 
      UCS(ProvisionL2CPPortType)#setL2CPPortConfig flush 
      UCS(ProvisionL2CPPortType)#setL2CPPortConfig review
       No commands in queue
    • The examples shows how to remove specific configuration CLI from a UCS controller.

      UCS# ProvisionL2CPPortType ?
        <cr>
      
      UCS(ProvisionL2CPPortType)#?
      ProvisionL2CPPortType sub-mode commands:
        default            Set a command to its defaults
        exit               Exit from ProvisionL2CPPortType sub configuration mode
        getL2CPPortConfig  Get current L2CP configuration request
        no                 Negate a command or set its defaults
        setL2CPPortConfig  Configure L2CP forward on EVCs on this port
      
      UCS(ProvisionL2CPPortType)#setL2CPPortConfig ?
        commit                 commit setL2CPPortConfig 
        flush                  flush all setL2CPPortConfig commands from queue
        l2cpPortConfiguration  Configure L2CP forward on EVCs on this port
        review                 review setL2CPPortConfig commands
      
      UCS(ProvisionL2CPPortType)#setL2CPPortConfig review
      Commands in queue:
              setL2CPPortConfig l2cpPortConfiguration portNumber 3 
              setL2CPPortConfig l2cpPortConfiguration enabled enable 
              setL2CPPortConfig l2cpPortConfiguration forward forwardList 1-14 
              setL2CPPortConfig l2cpPortConfiguration peer peerList 16-20 
      
      UCS(ProvisionL2CPPortType)#no setL2CPPortConfig l2cpPor$
      UCS(ProvisionL2CPPortType)#$n forward forwardList 1-14
      UCS(ProvisionL2CPPortType)#setL2CPPortConfig review   
      Commands in queue:
              setL2CPPortConfig l2cpPortConfiguration portNumber 3 
              setL2CPPortConfig l2cpPortConfiguration enabled enable 
              setL2CPPortConfig l2cpPortConfiguration peer peerList 16-20 
      UCS(ProvisionL2CPPortType)#setL2CPPortConfig review   
      Commands in queue:
              setL2CPPortConfig l2cpPortConfiguration portNumber 3 
              setL2CPPortConfig l2cpPortConfiguration enabled enable 
              setL2CPPortConfig l2cpPortConfiguration peer peerList 16-20 
      UCS(ProvisionL2CPPortType)#setL2CPPortConfig commit
       SetL2CPPortConfig Commit Success!!!