Contents

Per Port Location Configuration

The Per Port Location Configuration feature provides a mechanism for configuring the location attributes for specific ports. This feature provides the ability to configure Link Layer Discovery Protocol (LLDP) location information per port, overriding the global switch configuration. Thus, devices attached remotely to the switch can be given specific location information.

Finding Feature Information

Your software release may not support all the features documented in this module. For the latest caveats and feature information, see Bug Search Tool and the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the feature information table at the end of this module.

Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/​go/​cfn. An account on Cisco.com is not required.

Information About Per Port Location Configuration

IEEE 802.1ab LLDP

IEEE 802.1ab Link Layer Discovery Protocol (LLDP) is an optional link layer protocol for network topology discovery in multivendor networks. Discovery information includes device identifiers, port identifiers, versions, and other details. As a protocol that aids network management, LLDP provides accurate network mapping, inventory data, and network troubleshooting information.

LLDP is unidirectional, operating only in an advertising mode. LLDP does not solicit information or monitor state changes between LLDP nodes. LLDP periodically sends advertisements to a constrained multicast address. Devices supporting LLDP can send information about themselves while they receive and record information about their neighbors. Additionally, devices can choose to turn off the send or receive functions independently. Advertisements are sent out and received on every active and enabled interface, allowing any device in a network to learn about all devices to which it is connected. Applications that use this information include network topology discovery, inventory management, emergency services, VLAN assignment, and inline power supply.


Note


LLDP and Cisco Discovery Protocol can operate on the same interface.


The figure below shows a high-level view of LLDP operating in a network node.



When you configure LLDP or Cisco Discovery Protocol location information on a per-port basis, remote devices can send Cisco medianet location information to the switch. For more information, see the Using Cisco Discovery Protocol module.

How to Configure Per Port Location Configuration

Configuring Per Port Location Configuration

SUMMARY STEPS

    1.    enable

    2.    configure terminal

    3.    interface type number

    4.    location {additional-location-information word | civic-location-id id [port-location]| elin-location-id id}

    5.    end


DETAILED STEPS
     Command or ActionPurpose
    Step 1 enable


    Example:
    Device> enable
     

    Enables privileged EXEC mode.

    • Enter your password if prompted.

     
    Step 2 configure terminal


    Example:
    Device# configure terminal
     

    Enters global configuration mode.

     
    Step 3 interface type number


    Example:
    Device(config)# interface fastethernet 0
     

    Specifies the interface on which you are configuring the location information, and enters interface configuration mode.

     
    Step 4 location {additional-location-information word | civic-location-id id [port-location]| elin-location-id id}


    Example:
    Device(config-if)# location civic-location-id 1 port-location
     

    Specifies location information for an interface, and enters civic location port configuration mode.

    • You can configure port-specific information in civic location port configuration mode.

     
    Step 5 end


    Example:
    Device(config-if-port)# end
     

    Returns to privileged EXEC mode.

     

    Configuration Examples for Per Port Location Configuration

    Configuring Per Port Location Configuration

    SUMMARY STEPS

      1.    enable

      2.    configure terminal

      3.    interface type number

      4.    location {additional-location-information word | civic-location-id id [port-location]| elin-location-id id}

      5.    end


    DETAILED STEPS
       Command or ActionPurpose
      Step 1 enable


      Example:
      Device> enable
       

      Enables privileged EXEC mode.

      • Enter your password if prompted.

       
      Step 2 configure terminal


      Example:
      Device# configure terminal
       

      Enters global configuration mode.

       
      Step 3 interface type number


      Example:
      Device(config)# interface fastethernet 0
       

      Specifies the interface on which you are configuring the location information, and enters interface configuration mode.

       
      Step 4 location {additional-location-information word | civic-location-id id [port-location]| elin-location-id id}


      Example:
      Device(config-if)# location civic-location-id 1 port-location
       

      Specifies location information for an interface, and enters civic location port configuration mode.

      • You can configure port-specific information in civic location port configuration mode.

       
      Step 5 end


      Example:
      Device(config-if-port)# end
       

      Returns to privileged EXEC mode.

       

      Additional References for Using Link Layer Discovery Protocol in Multivendor Networks

      Related Documents

      Related Topic

      Document Title

      Cisco IOS commands: master list of commands with complete command syntax, command mode, command history, defaults, usage guidelines, and examples

      Cisco IOS Master Command List, All Releases

      Carrier Ethernet commands: complete command syntax, command mode, command history, defaults, usage guidelines, and examples

      Cisco IOS Carrier Ethernet Command Reference

      LLDP

      Link Layer Discovery Protocol

      Per Port Location configurations

      Per Port Location Configuration

      Comparison of LLDP Media Endpoint Discovery (MED) and Cisco Discovery Protocol

      LLDP-MED and Cisco Discovery Protocol

      Standards and RFCs

      Standards/RFCs

      Title

      IEEE 802.1ab

      Station and Media Access Control Connectivity Discovery

      RFC 2922

      Physical Topology MIB

      MIBs

      MIB

      MIBs Link

      PTOPO MIB

      To locate and download MIBs for selected platforms, Cisco software releases, and feature sets, use Cisco MIB Locator found at the following URL:

      http:/​/​www.cisco.com/​go/​mibs

      Technical Assistance

      Description

      Link

      The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password.

      http:/​/​www.cisco.com/​cisco/​web/​support/​index.html

      Feature Information for Per Port Location Configuration

      The following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature.

      Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/​go/​cfn. An account on Cisco.com is not required.

      Table 1 Feature Information for Per Port Location Configuration

      Feature Name

      Releases

      Feature Information

      Per Port Location Configuration

      12.2(55)SE

      15.1(1)SY

      The Per Port Location Configuration feature provides a mechanism for configuring the location attributes for specific ports.

      In Cisco IOS Release 12.2(55)SE, this feature was introduced.

      In Cisco IOS Release 15.1(1)SY, this feature was integrated.

      The following commands were introduced or modified: location, location (interface), location civic-location identifier, location civic-location-id, location custom-location identifier, location custom-location-id, location geo-location, identifier, location geo-location-id , location prefer, show location, show nmsp.


      Per Port Location Configuration

      Per Port Location Configuration

      The Per Port Location Configuration feature provides a mechanism for configuring the location attributes for specific ports. This feature provides the ability to configure Link Layer Discovery Protocol (LLDP) location information per port, overriding the global switch configuration. Thus, devices attached remotely to the switch can be given specific location information.

      Finding Feature Information

      Your software release may not support all the features documented in this module. For the latest caveats and feature information, see Bug Search Tool and the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the feature information table at the end of this module.

      Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/​go/​cfn. An account on Cisco.com is not required.

      Information About Per Port Location Configuration

      IEEE 802.1ab LLDP

      IEEE 802.1ab Link Layer Discovery Protocol (LLDP) is an optional link layer protocol for network topology discovery in multivendor networks. Discovery information includes device identifiers, port identifiers, versions, and other details. As a protocol that aids network management, LLDP provides accurate network mapping, inventory data, and network troubleshooting information.

      LLDP is unidirectional, operating only in an advertising mode. LLDP does not solicit information or monitor state changes between LLDP nodes. LLDP periodically sends advertisements to a constrained multicast address. Devices supporting LLDP can send information about themselves while they receive and record information about their neighbors. Additionally, devices can choose to turn off the send or receive functions independently. Advertisements are sent out and received on every active and enabled interface, allowing any device in a network to learn about all devices to which it is connected. Applications that use this information include network topology discovery, inventory management, emergency services, VLAN assignment, and inline power supply.


      Note


      LLDP and Cisco Discovery Protocol can operate on the same interface.


      The figure below shows a high-level view of LLDP operating in a network node.



      When you configure LLDP or Cisco Discovery Protocol location information on a per-port basis, remote devices can send Cisco medianet location information to the switch. For more information, see the Using Cisco Discovery Protocol module.

      How to Configure Per Port Location Configuration

      Configuring Per Port Location Configuration

      SUMMARY STEPS

        1.    enable

        2.    configure terminal

        3.    interface type number

        4.    location {additional-location-information word | civic-location-id id [port-location]| elin-location-id id}

        5.    end


      DETAILED STEPS
         Command or ActionPurpose
        Step 1 enable


        Example:
        Device> enable
         

        Enables privileged EXEC mode.

        • Enter your password if prompted.

         
        Step 2 configure terminal


        Example:
        Device# configure terminal
         

        Enters global configuration mode.

         
        Step 3 interface type number


        Example:
        Device(config)# interface fastethernet 0
         

        Specifies the interface on which you are configuring the location information, and enters interface configuration mode.

         
        Step 4 location {additional-location-information word | civic-location-id id [port-location]| elin-location-id id}


        Example:
        Device(config-if)# location civic-location-id 1 port-location
         

        Specifies location information for an interface, and enters civic location port configuration mode.

        • You can configure port-specific information in civic location port configuration mode.

         
        Step 5 end


        Example:
        Device(config-if-port)# end
         

        Returns to privileged EXEC mode.

         

        Configuration Examples for Per Port Location Configuration

        Configuring Per Port Location Configuration

        SUMMARY STEPS

          1.    enable

          2.    configure terminal

          3.    interface type number

          4.    location {additional-location-information word | civic-location-id id [port-location]| elin-location-id id}

          5.    end


        DETAILED STEPS
           Command or ActionPurpose
          Step 1 enable


          Example:
          Device> enable
           

          Enables privileged EXEC mode.

          • Enter your password if prompted.

           
          Step 2 configure terminal


          Example:
          Device# configure terminal
           

          Enters global configuration mode.

           
          Step 3 interface type number


          Example:
          Device(config)# interface fastethernet 0
           

          Specifies the interface on which you are configuring the location information, and enters interface configuration mode.

           
          Step 4 location {additional-location-information word | civic-location-id id [port-location]| elin-location-id id}


          Example:
          Device(config-if)# location civic-location-id 1 port-location
           

          Specifies location information for an interface, and enters civic location port configuration mode.

          • You can configure port-specific information in civic location port configuration mode.

           
          Step 5 end


          Example:
          Device(config-if-port)# end
           

          Returns to privileged EXEC mode.

           

          Additional References for Using Link Layer Discovery Protocol in Multivendor Networks

          Related Documents

          Related Topic

          Document Title

          Cisco IOS commands: master list of commands with complete command syntax, command mode, command history, defaults, usage guidelines, and examples

          Cisco IOS Master Command List, All Releases

          Carrier Ethernet commands: complete command syntax, command mode, command history, defaults, usage guidelines, and examples

          Cisco IOS Carrier Ethernet Command Reference

          LLDP

          Link Layer Discovery Protocol

          Per Port Location configurations

          Per Port Location Configuration

          Comparison of LLDP Media Endpoint Discovery (MED) and Cisco Discovery Protocol

          LLDP-MED and Cisco Discovery Protocol

          Standards and RFCs

          Standards/RFCs

          Title

          IEEE 802.1ab

          Station and Media Access Control Connectivity Discovery

          RFC 2922

          Physical Topology MIB

          MIBs

          MIB

          MIBs Link

          PTOPO MIB

          To locate and download MIBs for selected platforms, Cisco software releases, and feature sets, use Cisco MIB Locator found at the following URL:

          http:/​/​www.cisco.com/​go/​mibs

          Technical Assistance

          Description

          Link

          The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password.

          http:/​/​www.cisco.com/​cisco/​web/​support/​index.html

          Feature Information for Per Port Location Configuration

          The following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature.

          Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/​go/​cfn. An account on Cisco.com is not required.

          Table 1 Feature Information for Per Port Location Configuration

          Feature Name

          Releases

          Feature Information

          Per Port Location Configuration

          12.2(55)SE

          15.1(1)SY

          The Per Port Location Configuration feature provides a mechanism for configuring the location attributes for specific ports.

          In Cisco IOS Release 12.2(55)SE, this feature was introduced.

          In Cisco IOS Release 15.1(1)SY, this feature was integrated.

          The following commands were introduced or modified: location, location (interface), location civic-location identifier, location civic-location-id, location custom-location identifier, location custom-location-id, location geo-location, identifier, location geo-location-id , location prefer, show location, show nmsp.