Catalyst 2960-X Switch Interface and Hardware Component Configuration Guide, Cisco IOS Release 15.0(2)EX First Published: July 10, 2013 Americas Headquarters Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 USA http://www.cisco.
THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THIS MANUAL ARE SUBJECT TO CHANGE WITHOUT NOTICE. ALL STATEMENTS, INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED TO BE ACCURATE BUT ARE PRESENTED WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. USERS MUST TAKE FULL RESPONSIBILITY FOR THEIR APPLICATION OF ANY PRODUCTS.
CONTENTS Preface Preface ix Document Conventions ix Related Documentation xi Obtaining Documentation and Submitting a Service Request xi CHAPTER 1 Using the Command-Line Interface 1 Information About Using the Command-Line Interface 1 Command Modes 1 Using the Help System 3 Understanding Abbreviated Commands 4 No and default Forms of Commands 4 CLI Error Messages 4 Configuration Logging 5 How to Use the CLI to Configure Features 5 Configuring the Command History 5 Changing the Command History Buffer Siz
Contents Interface Types 13 Port-Based VLANs 14 Switch Ports 14 Access Ports 14 Trunk Ports 15 Switch Virtual Interfaces 15 SVI Autostate Exclude 16 EtherChannel Port Groups 16 Power over Ethernet Ports 16 Using the Switch USB Ports 17 USB Mini-Type B Console Port 17 Console Port Change Logs 17 USB Type A Ports 18 Interface Connections 18 Interface Configuration Mode 19 Default Ethernet Interface Configuration 20 Interface Speed and Duplex Mode 21 Speed and Duplex Configuration Guidelines 21 IEEE 802.
Contents Adding a Description to an Interface: Example 36 Identifying Interfaces on a Stack-Capable Switch: Examples 36 Configuring a Range of Interfaces: Examples 36 Configuring and Using Interface Range Macros: Examples 37 Setting Interface Speed and Duplex Mode: Example 37 Configuring the Console Media Type: Example 37 Configuring the USB Inactivity Timeout: Example 38 Additional References for the Interface Characteristics Feature 38 Feature History and Information for Configuring Interface Characteris
Contents LLDP Supported TLVs 52 LLDP and Cisco Switch Stacks 52 LLDP and Cisco Medianet 52 LLDP-MED 52 LLDP-MED Supported TLVs 53 Wired Location Service 54 Default LLDP Configuration 55 Configuration Guidelines 55 How to Configure LLDP, LLDP-MED, and Wired Location Service 56 Enabling LLDP 56 Configuring LLDP Characteristics 57 Configuring LLDP-MED TLVs 59 Configuring Network-Policy TLV 61 Configuring Location TLV and Wired Location Service 63 Enabling Wired Location Service on the Switch 66 Configuration
Contents Powered-Device Detection and Initial Power Allocation 77 Power Management Modes 78 Power Monitoring and Power Policing 79 Maximum Power Allocation (Cutoff Power) on a PoE Port 80 Power Consumption Values 80 How to Configure PoE 81 Configuring a Power Management Mode on a PoE Port 81 Budgeting Power for Devices Connected to a PoE Port 82 Budgeting Power to All PoE ports 83 Budgeting Power to a Specific PoE Port 84 Configuring Power Policing 85 Monitoring Power Status 88 Configuration Examples for C
Contents Catalyst 2960-X Switch Interface and Hardware Component Configuration Guide, Cisco IOS Release 15.
Preface This preface contains the following topics: • Document Conventions, page ix • Related Documentation, page xi • Obtaining Documentation and Submitting a Service Request, page xi Document Conventions This document uses the following conventions: Convention Description ^ or Ctrl Both the ^ symbol and Ctrl represent the Control (Ctrl) key on a keyboard. For example, the key combination ^D or Ctrl-D means that you hold down the Control key while you press the D key.
Preface Document Conventions Convention Description [x | y] Optional alternative keywords are grouped in brackets and separated by vertical bars. {x | y} Required alternative keywords are grouped in braces and separated by vertical bars. [x {y | z}] Nested set of square brackets or braces indicate optional or required choices within optional or required elements. Braces and a vertical bar within square brackets indicate a required choice within an optional element.
Preface Related Documentation Related Documentation Note Before installing or upgrading the switch, refer to the release notes. • Catalyst 2960-X Switch, located at http://www.cisco.com/go/cat2960x_docs. • Cisco SFP and SFP+ modules documentation, including compatibility matrixes, located at: http://www.cisco.com/en/US/products/hw/modules/ps5455/tsd_products_support_series_home.
Preface Obtaining Documentation and Submitting a Service Request Catalyst 2960-X Switch Interface and Hardware Component Configuration Guide, Cisco IOS Release 15.
CHAPTER 1 Using the Command-Line Interface This chapter contains the following topics: • Information About Using the Command-Line Interface, page 1 • How to Use the CLI to Configure Features, page 5 Information About Using the Command-Line Interface This section describes the Cisco IOS command-line interface (CLI) and how to use it to configure your switch. Command Modes The Cisco IOS user interface is divided into many different modes.
Using the Command-Line Interface Command Modes Table 1: Command Mode Summary Mode Access Method User EXEC Begin a session using Telnet, SSH, or console. Prompt Exit Method About This Mode Switch> Enter logout or quit. Use this mode to • Change terminal settings. • Perform basic tests. • Display system information. Privileged EXEC While in user EXEC mode, enter the enable command. Global configuration While in privileged EXEC mode, enter the configure command.
Using the Command-Line Interface Using the Help System Mode Access Method Line configuration While in global configuration mode, specify a line with the line vty or line console command. Prompt Exit Method Switch(config-line)# About This Mode To exit to global Use this mode to configuration mode, configure enter exit. parameters for the terminal line. To return to privileged EXEC mode, press Ctrl-Z or enter end.
Using the Command-Line Interface Understanding Abbreviated Commands Step 4 Command or Action Purpose ? Lists all commands available for a particular command mode. Example: Switch> ? Step 5 command ? Lists the associated keywords for a command. Example: Switch> show ? Step 6 command keyword ? Lists the associated arguments for a keyword.
Using the Command-Line Interface Configuration Logging Table 2: Common CLI Error Messages Error Message Meaning How to Get Help % Ambiguous command: "show con" You did not enter enough characters for your switch to recognize the command. Reenter the command followed by a question mark (?) with a space between the command and the question mark. The possible keywords that you can enter with the command appear. % Incomplete command.
Using the Command-Line Interface Configuring the Command History Changing the Command History Buffer Size By default, the switch records ten command lines in its history buffer. You can alter this number for a current terminal session or for all sessions on a particular line. This procedure is optional. SUMMARY STEPS 1.
Using the Command-Line Interface Enabling and Disabling Editing Features Step 3 Command or Action Purpose show history Lists the last several commands that you just entered in privileged EXEC mode. The number of commands that appear is controlled by the setting of the terminal history global configuration command and the history line configuration command. Example: Switch# show history Disabling the Command History Feature The command history feature is automatically enabled.
Using the Command-Line Interface Enabling and Disabling Editing Features Step 2 Command or Action Purpose terminal no editing Disables the enhanced editing mode for the current terminal session in the privileged EXEC mode. Example: Switch# terminal no editing Editing Commands through Keystrokes The keystrokes help you to edit the command lines. These keystrokes are optional. Note The arrow keys function only on ANSI-compatible terminals such as VT100s.
Using the Command-Line Interface Enabling and Disabling Editing Features Esc D Deletes from the cursor to the end of the word. Esc C Capitalizes at the cursor. Esc L Changes the word at the cursor to lowercase. Esc U Capitalizes letters from the cursor to the end of the word. Ctrl-V or Esc Q Designates a particular keystroke as an executable command, perhaps as a shortcut. Return key Scrolls down a line or screen on displays that are longer than the terminal screen can display.
Using the Command-Line Interface Searching and Filtering Output of show and more Commands DETAILED STEPS Step 1 Command or Action Purpose access-list Displays the global configuration command entry that extends beyond one line. Example: When the cursor first reaches the end of the line, the line is shifted ten spaces to the left and redisplayed. The dollar sign ($) shows that the line has been scrolled to the left.
Using the Command-Line Interface Accessing the CLI through a Console Connection or through Telnet Command or Action Purpose Example: Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output are not displayed, but the lines that contain output appear.
Using the Command-Line Interface Accessing the CLI through a Console Connection or through Telnet Catalyst 2960-X Switch Interface and Hardware Component Configuration Guide, Cisco IOS Release 15.
CHAPTER 2 Configuring Interface Characteristics This module contains the following topics: • Finding Feature Information, page 13 • Information About Configuring Interface Characteristics, page 13 • How to Configure Interface Characteristics, page 23 • Monitoring Interface Characteristics, page 34 • Configuration Examples for Interface Characteristics, page 36 • Additional References for the Interface Characteristics Feature, page 38 • Feature History and Information for Configuring Interface Characterist
Configuring Interface Characteristics Interface Types Port-Based VLANs A VLAN is a switched network that is logically segmented by function, team, or application, without regard to the physical location of the users. Packets received on a port are forwarded only to ports that belong to the same VLAN as the receiving port. Network devices in different VLANs cannot communicate with one another without a Layer 3 device to route traffic between the VLANs.
Configuring Interface Characteristics Interface Types the VLAN membership of the port is discovered. Dynamic access ports on the switch are assigned to a VLAN by a VLAN Membership Policy Server (VMPS). The VMPS can be a Catalyst 6500 series switch; the switch cannot be a VMPS server. You can also configure an access port with an attached Cisco IP Phone to use one VLAN for voice traffic and another VLAN for data traffic from a device attached to the phone.
Configuring Interface Characteristics Interface Types Note When you create an SVI, it does not become active until it is associated with a physical port. SVI Autostate Exclude The line state of an SVI with multiple ports on a VLAN is in the up state when it meets these conditions: • The VLAN exists and is active in the VLAN database on the switch • The VLAN interface exists and is not administratively down.
Configuring Interface Characteristics Using the Switch USB Ports • a Cisco pre-standard powered device (such as a Cisco IP Phone or a Cisco Aironet Access Point) • an IEEE 802.3af-compliant powered device • an IEEE 802.3at-compliant powered device A powered device can receive redundant power when it is connected to a PoE switch port and to an AC power source. The device does not receive redundant power when it is only connected to the PoE port.
Configuring Interface Characteristics Interface Connections *Mar *Mar 1 00:01:00.171: %USB_CONSOLE-6-MEDIA_RJ45: Console media-type is RJ45. 1 00:01:00.431: %USB_CONSOLE-6-MEDIA_USB: Console media-type is USB. switch-stack-2 *Mar 1 00:01:09.835: %USB_CONSOLE-6-MEDIA_RJ45: Console media-type is RJ45. switch-stack-3 *Mar 1 00:01:10.523: %USB_CONSOLE-6-MEDIA_RJ45: Console media-type is RJ45.
Configuring Interface Characteristics Interface Configuration Mode In the following configuration example, when Host A in VLAN 20 sends data to Host B in VLAN 30, the data must go from Host A to the switch, to the router, back to the switch, and then to Host B. Figure 1: Connecting VLANs with the Switch With a standard Layer 2 switch, ports in different VLANs have to exchange information through a router.
Configuring Interface Characteristics Default Ethernet Interface Configuration gigabitethernet1/0/8. For a switch with 10/100/1000 ports and SFP module ports, SFP module ports are numbered consecutively following the 10/100/1000 ports. You can identify physical interfaces by physically checking the interface location on the switch. You can also use the show privileged EXEC commands to display information about a specific interface or all the interfaces on the switch.
Configuring Interface Characteristics Interface Speed and Duplex Mode Feature Default Setting EtherChannel (PAgP) Disabled on all Ethernet ports. Port blocking (unknown multicast and unknown unicast traffic) Disabled (not blocked). Broadcast, multicast, and unicast storm control Disabled. Protected port Disabled. Port security Disabled. Port Fast Disabled. Auto-MDIX Enabled.
Configuring Interface Characteristics IEEE 802.3x Flow Control ◦The 1000BASE-x (where -x is -BX, -CWDM, -LX, -SX, and -ZX) SFP module ports support the nonegotiate keyword in the speed interface configuration command. Duplex options are not supported. ◦The 1000BASE-T SFP module ports support the same speed and duplex options as the 10/100/1000-Mb/s ports. For information about which SFP modules are supported on your switch, see the product release notes.
Configuring Interface Characteristics How to Configure Interface Characteristics How to Configure Interface Characteristics Configuring Interfaces Procedure These general instructions apply to all interface configuration processes. DETAILED STEPS Command or Action Step 1 Purpose Enter the configure terminal command at the privileged EXEC prompt: Example: Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z.
Configuring Interface Characteristics Adding a Description for an Interface Adding a Description for an Interface SUMMARY STEPS 1. configure terminal 2. interface interface-id 3. description string 4. end 5. show interfaces interface-id description DETAILED STEPS Step 1 Command or Action Purpose configure terminal Enters global configuration mode.
Configuring Interface Characteristics Configuring a Range of Interfaces Configuring a Range of Interfaces To configure multiple interfaces with the same configuration parameters, use the interface range global configuration command. When you enter the interface-range configuration mode, all command parameters that you enter are attributed to all interfaces within that range until you exit this mode. SUMMARY STEPS 1. configure terminal 2. interface range {port-range | macro macro_name} 3. end 4.
Configuring Interface Characteristics Configuring and Using Interface Range Macros Step 4 Command or Action Purpose show interfaces [interface-id] Verifies the configuration of the interfaces in the range. Example: Switch# show interfaces Configuring and Using Interface Range Macros You can create an interface range macro to automatically select a range of interfaces for configuration.
Configuring Interface Characteristics Configuring Ethernet Interfaces Step 3 Command or Action Purpose interface range macro macro_name Selects the interface range to be configured using the values saved in the interface-range macro called macro_name. Example: You can now use the normal configuration commands to apply the configuration to all interfaces in the defined macro. Switch(config)# interface range macro enet_list Step 4 Returns to privileged EXEC mode.
Configuring Interface Characteristics Configuring Ethernet Interfaces DETAILED STEPS Step 1 Command or Action Purpose configure terminal Enters global configuration mode. Example: Switch# configure terminal Step 2 interface interface-id Specifies the physical interface to be configured, and enter interface configuration mode.
Configuring Interface Characteristics Configuring IEEE 802.3x Flow Control Command or Action Purpose gigabitethernet1/0/3 Step 7 copy running-config startup-config (Optional) Saves your entries in the configuration file. Example: Switch# copy running-config startup-config Configuring IEEE 802.3x Flow Control SUMMARY STEPS 1. configure terminal 2. interface interface-id 3. flowcontrol {receive} {on | off | desired} 4. end 5.
Configuring Interface Characteristics Configuring SVI Autostate Exclude Step 4 Command or Action Purpose end Returns to privileged EXEC mode. Example: Switch(config-if)# end Step 5 show interfaces interface-id Verifies the interface flow control settings. Example: Switch# show interfaces gigabitethernet1/0/1 Configuring SVI Autostate Exclude SUMMARY STEPS 1. configure terminal 2. interface interface-id 3. switchport autostate exclude 4. end 5.
Configuring Interface Characteristics Shutting Down and Restarting the Interface Step 3 Command or Action Purpose switchport autostate exclude Excludes the access or trunk port when defining the status of an SVI line state (up or down) Example: Switch(config-if)# switchport autostate exclude Step 4 Returns to privileged EXEC mode. end Example: Switch(config-if)# end Step 5 show running config interface interface-id (Optional) Shows the running configuration. Verifies the configuration.
Configuring Interface Characteristics Configuring the Console Media Type Command or Action Purpose Example: Switch(config)# interface gigabitethernet1/0/2 Step 3 shutdown Shuts down an interface. Example: Switch(config-if)# shutdown Step 4 no shutdown Restarts an interface. Example: Switch(config-if)# no shutdown Step 5 end Returns to privileged EXEC mode.
Configuring Interface Characteristics Configuring the USB Inactivity Timeout DETAILED STEPS Step 1 Command or Action Purpose configure terminal Enters the global configuration mode. Example: Switch# configure terminal Step 2 line console 0 Configures the console and enters line configuration mode. Example: Switch(config)# line console 0 Step 3 media-type rj45 Example: Configures the console media type to be only RJ-45 port.
Configuring Interface Characteristics Monitoring Interface Characteristics DETAILED STEPS Step 1 Command or Action Purpose configure terminal Enters the global configuration mode. Example: Switch# configure terminal Step 2 line console 0 Configures the console and enters line configuration mode. Example: Switch(config)# line console 0 Step 3 usb-inactivity-timeout timeout-minutes Example: Specify an inactivity timeout for the console port. The range is 1 to 240 minutes.
Configuring Interface Characteristics Clearing and Resetting Interfaces and Counters Command Purpose show interfaces [interface-id] description Displays the description configured on an interface or all interfaces and the interface status. show ip interface [interface-id] Displays the usability status of all interfaces configured for IP routing or the specified interface. show interface [interface-id] stats Displays the input and output packets by the switching path for the interface.
Configuring Interface Characteristics Configuration Examples for Interface Characteristics Note The clear counters privileged EXEC command does not clear counters retrieved by using Simple Network Management Protocol (SNMP), but only those seen with the show interface privileged EXEC command. Configuration Examples for Interface Characteristics Adding a Description to an Interface: Example Switch# configure terminal Enter configuration commands, one per line. End with CNTRL/Z.
Configuring Interface Characteristics Configuring and Using Interface Range Macros: Examples Configuring and Using Interface Range Macros: Examples This example shows how to define an interface-range named enet_list to include ports 1 and 2 on switch 1 and to verify the macro configuration: Switch# configure terminal Switch(config)# define interface-range enet_list gigabitethernet1/0/1 - 2 Switch(config)# end Switch# show running-config | include define define interface-range enet_list GigabitEthernet1/0/1
Configuring Interface Characteristics Configuring the USB Inactivity Timeout: Example This configuration terminates any active USB console media type in the stack. A log shows that this termination has occurred. This example shows that the console on switch 1 reverted to RJ-45. *Mar 1 00:25:36.860: %USB_CONSOLE-6-CONFIG_DISABLE: Console media-type USB disabled by system configuration, media-type reverted to RJ45. At this point no switches in the stack allow a USB console to have input.
Configuring Interface Characteristics Feature History and Information for Configuring Interface Characteristics MIBs MIB MIBs Link All supported MIBs for this release. To locate and download MIBs for selected platforms, Cisco IOS 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 website provides extensive online http://www.cisco.
Configuring Interface Characteristics Feature History and Information for Configuring Interface Characteristics Catalyst 2960-X Switch Interface and Hardware Component Configuration Guide, Cisco IOS Release 15.
CHAPTER 3 Configuring Auto-MDIX This module contains the following sections: • Prerequisites for Auto-MDIX, page 41 • Restrictions for Auto-MDIX, page 41 • Information about Configuring Auto-MDIX, page 42 • How to Configure Auto-MDIX, page 42 • Monitoring Auto-MDIX, page 43 • Example for Configuring Auto-MDIX, page 44 Prerequisites for Auto-MDIX Automatic medium-dependent interface crossover (auto-MDIX) is enabled by default.
Configuring Auto-MDIX Information about Configuring Auto-MDIX Information about Configuring Auto-MDIX Auto-MDIX on an Interface When automatic medium-dependent interface crossover (auto-MDIX) is enabled on an interface, the interface automatically detects the required cable connection type (straight through or crossover) and configures the connection appropriately.
Configuring Auto-MDIX Monitoring Auto-MDIX DETAILED STEPS Step 1 Command or Action Purpose configure terminal Enters global configuration mode Example: Switch# Step 2 configure terminal interface interface-id Specifies the physical interface to be configured, and enter interface configuration mode. Example: Switch(config)# Step 3 interface gigabitethernet1/0/1 Configures the interface to autonegotiate speed with the connected device.
Configuring Auto-MDIX Example for Configuring Auto-MDIX show controllers ethernet-controllerinterface-id phy Verifies the operational state of the auto-MDIX feature on the interface.
CHAPTER 4 Configuring Ethernet Management Port This module contains the following sections: • Finding Feature Information, page 45 • Prerequisites for Ethernet Management Ports, page 45 • Information about the Ethernet Management Port, page 45 • How to Configure the Ethernet Management Port, page 47 • Additional References, page 48 Finding Feature Information Your software release may not support all the features documented in this module.
Configuring Ethernet Management Port Ethernet Management Port Direct Connection to a Switch Ethernet Management Port Direct Connection to a Switch This figure displays how to connect the Ethernet management port to the PC for a switch or a standalone switch. Figure 2: Connecting a Switch to a PC Ethernet Management Port Connection to Stack Switches using a Hub In a stack with only stack switches, all the Ethernet management ports on the stack members are connected to a hub to which the PC is connected.
Configuring Ethernet Management Port How to Configure the Ethernet Management Port • TFTP • Secure Shell (SSH) • DHCP-based autoconfiguration • SMNP (only the ENTITY-MIB and the IF-MIB) • IP ping • Interface features ◦Speed—10 Mb/s, 100 Mb/s, and autonegotiation ◦Duplex mode—Full, half, and autonegotiation ◦Loopback detection • Cisco Discovery Protocol (CDP) • DHCP relay agent • IPv4 and IPv6 access control lists (ACLs) Caution Before enabling a feature on the Ethernet management port, make sure that the
Configuring Ethernet Management Port Additional References DETAILED STEPS Step 1 Command or Action Purpose configure terminal Enters global configuration mode. Example: Switch# configure terminal Step 2 interface fastethernet0 Specifies the Ethernet management port in the CLI. Example: Switch(config)# interface fastethernet0 Step 3 shutdown Disables the Ethernet management port. Example: Switch(config-if)# shutdown Step 4 no shutdown Enables the Ethernet management port.
Configuring Ethernet Management Port Additional References Related Topic Document Title Bootloader commands Catalyst 2960-X Switch System Management Configuration Guide MIBs MIB MIBs Link All supported MIBs for this release. To locate and download MIBs for selected platforms, Cisco IOS 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 website provides extensive online http://www.cisco.
Configuring Ethernet Management Port Additional References Catalyst 2960-X Switch Interface and Hardware Component Configuration Guide, Cisco IOS Release 15.
CHAPTER 5 Configuring LLDP, LLDP-MED, and Wired Location Service This module contains the following sections: • Finding Feature Information, page 51 • LLDP, LLDP-MED, and Wired Location Service Overview, page 51 • How to Configure LLDP, LLDP-MED, and Wired Location Service, page 56 • Configuration Examples for LLDP, LLDP-MED, and Wired Location Service, page 67 • Monitoring and Maintaining LLDP, LLDP-MED, and Wired Location Service, page 68 • Additional References for LLDP, LLDP-MED, and Wired Location Se
Configuring LLDP, LLDP-MED, and Wired Location Service LLDP-MED To support non-Cisco devices and to allow for interoperability between other devices, the switch supports the IEEE 802.1AB Link Layer Discovery Protocol (LLDP). LLDP is a neighbor discovery protocol that is used for network devices to advertise information about themselves to other devices on the network. This protocol runs over the data-link layer, which allows two systems running different network layer protocols to learn about each other.
Configuring LLDP, LLDP-MED, and Wired Location Service LLDP-MED LLDP-MED Supported TLVs LLDP-MED supports these TLVs: • LLDP-MED capabilities TLV Allows LLDP-MED endpoints to determine the capabilities that the connected device supports and has enabled. • Network policy TLV Allows both network connectivity devices and endpoints to advertise VLAN configurations and associated Layer 2 and Layer 3 attributes for the specific application on that port.
Configuring LLDP, LLDP-MED, and Wired Location Service Wired Location Service Provides the location information of a caller. The location is determined by the Emergency location identifier number (ELIN), which is a phone number that routes an emergency call to the local public safety answering point (PSAP) and which the PSAP can use to call back the emergency caller.
Configuring LLDP, LLDP-MED, and Wired Location Service Default LLDP Configuration • IP address • 802.1X username if applicable • Device category is specified as a wired station • State is specified as delete • Serial number, UDI • Time in seconds since the switch detected the disassociation When the switch shuts down, it sends an attachment notification with the state delete and the IP address before closing the NMSP connection to the MSE.
Configuring LLDP, LLDP-MED, and Wired Location Service How to Configure LLDP, LLDP-MED, and Wired Location Service you can apply a network-policy profile on the interface. This way the interface has the voice or voice-signaling VLAN network-policy profile applied on the interface. • You cannot configure static secure MAC addresses on an interface that has a network-policy profile. • You cannot configure a network-policy profile on a private-VLAN port.
Configuring LLDP, LLDP-MED, and Wired Location Service Configuring LLDP Characteristics Command or Action Purpose gigabitethernet2/0/1 Step 4 lldp transmit Enables the interface to send LLDP packets. Example: Switch(config-if)# lldp transmit Step 5 Enables the interface to receive LLDP packets. lldp receive Example: Switch(config-if)# lldp receive Step 6 Returns to privileged EXEC mode. end Example: Switch(config-if)# end Step 7 Verifies the configuration.
Configuring LLDP, LLDP-MED, and Wired Location Service Configuring LLDP Characteristics SUMMARY STEPS 1. configure terminal 2. lldp holdtime seconds 3. lldp reinit delay 4. lldp timer rate 5. lldp tlv-select 6. interface interface-id 7. lldp med-tlv-select 8. end 9. show lldp 10. copy running-config startup-config DETAILED STEPS Step 1 Command or Action Purpose configure terminal Enters global configuration mode.
Configuring LLDP, LLDP-MED, and Wired Location Service Configuring LLDP-MED TLVs Step 6 Command or Action Purpose interface interface-id Specifies the interface on which you are enabling LLDP, and enter interface configuration mode. Example: Switch (config)# interface gigabitethernet2/0/1 Step 7 lldp med-tlv-select (Optional) Specifies the LLDP-MED TLVs to send or receive. Example: Switch (config-if)# lldp med-tlv-select inventory management Step 8 Returns to privileged EXEC mode.
Configuring LLDP, LLDP-MED, and Wired Location Service Configuring LLDP-MED TLVs LLDP-MED TLV Description location LLDP-MED location TLV network-policy LLDP-MED network policy TLV power-management LLDP-MED power management TLV Beginning in privileged EXEC mode, follow these steps to enable a TLV on an interface: SUMMARY STEPS 1. configure terminal 2. interface interface-id 3. lldp med-tlv-select 4. end 5.
Configuring LLDP, LLDP-MED, and Wired Location Service Configuring Network-Policy TLV Step 5 Command or Action Purpose copy running-config startup-config (Optional) Saves your entries in the configuration file. Example: Switch# copy running-config startup-config Configuring Network-Policy TLV Beginning in privileged EXEC mode, follow these steps to create a network-policy profile, configure the policy attributes, and apply it to an interface. SUMMARY STEPS 1. configure terminal 2.
Configuring LLDP, LLDP-MED, and Wired Location Service Configuring Network-Policy TLV Step 3 Command or Action Purpose {voice | voice-signaling} vlan [vlan-id {cos cvalue | dscp dvalue}] | [[dot1p {cos cvalue | dscp dvalue}] | none | untagged] Configures the policy attributes: • voice—Specifies the voice application type. • voice-signaling—Specifies the voice-signaling application type. Example: Switch(config-network-policy)# voice vlan 100 cos 4 • vlan—Specifies the native VLAN for voice traffic.
Configuring LLDP, LLDP-MED, and Wired Location Service Configuring Location TLV and Wired Location Service Step 7 Command or Action Purpose lldp med-tlv-select network-policy Specifies the network-policy TLV. Example: Switch(config-if)# lldp med-tlv-select network-policy Step 8 Returns to privileged EXEC mode. end Example: Switch(config)# end Step 9 show network-policy profile Verifies the configuration.
Configuring LLDP, LLDP-MED, and Wired Location Service Configuring Location TLV and Wired Location Service SUMMARY STEPS 1. configure terminal 2. location {admin-tag string | civic-location identifier {id | host} | elin-location string identifier id | custom-location identifier {id | host} | geo-location identifier {id | host}} 3. exit 4. interface interface-id 5.
Configuring LLDP, LLDP-MED, and Wired Location Service Configuring Location TLV and Wired Location Service Step 3 Command or Action Purpose exit Returns to global configuration mode. Example: Switch(config-civic)# exit Step 4 interface interface-id Specifies the interface on which you are configuring the location information, and enter interface configuration mode.
Configuring LLDP, LLDP-MED, and Wired Location Service Configuring Location TLV and Wired Location Service Command or Action Purpose Example: Switch# show location admin-tag or Switch# show location civic-location identifier or Switch# show location elin-location identifier Step 8 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Configuring LLDP, LLDP-MED, and Wired Location Service Configuration Examples for LLDP, LLDP-MED, and Wired Location Service Step 2 Command or Action Purpose nmsp enable Enables the NMSP features on the switch. Example: Switch(config)# nmsp enable Step 3 nmsp notification interval {attachment | location} Specifies the NMSP notification interval. interval-seconds attachment—Specifies the attachment notification interval. location—Specifies the location notification interval.
Configuring LLDP, LLDP-MED, and Wired Location Service Monitoring and Maintaining LLDP, LLDP-MED, and Wired Location Service Switch(config-network-policy)# exit Switch(config)# interface gigabitethernet1/0/1 Switch(config-if)# network-policy profile 1 Switch(config-if)# lldp med-tlv-select network-policy This example shows how to configure the voice application type for the native VLAN with priority tagging: Switchconfig-network-policy)# voice vlan dot1p cos 4 Switchconfig-network-policy)# voice vlan dot1
Configuring LLDP, LLDP-MED, and Wired Location Service Additional References for LLDP, LLDP-MED, and Wired Location Service Command Description show location civic-location identifier id Displays the location information for a specific global civic location. show location elin-location identifier id Displays the location information for an emergency location show network-policy profile Displays the configured network-policy profiles.
Configuring LLDP, LLDP-MED, and Wired Location Service Additional References for LLDP, LLDP-MED, and Wired Location Service Catalyst 2960-X Switch Interface and Hardware Component Configuration Guide, Cisco IOS Release 15.
CHAPTER 6 Configuring System MTU This module contains the following sections: • Finding Feature Information, page 71 • Information about the MTU, page 71 • How to Configure MTU Sizes, page 72 • Configuration Examples for System MTU, page 73 • Additional References for System MTU, page 74 Finding Feature Information Your software release may not support all the features documented in this module. For the latest feature information and caveats, see the release notes for your platform and software release.
Configuring System MTU How to Configure MTU Sizes the system mtu global configuration command. You can increase the MTU size to support jumbo frames on all Gigabit Ethernet interfaces by using the system mtu jumbo global configuration command. • Gigabit Ethernet ports are not affected by the system mtu command; 10/100 ports are not affected by the system mtu jumbo command. If you do not configure the system mtu jumbo command, the setting of the system mtu command applies to all Gigabit Ethernet interfaces.
Configuring System MTU Configuration Examples for System MTU Step 2 Command or Action Purpose system mtu bytes (Optional) Change the MTU size for all interfaces on the switch stack that are operating at 10 or 100 Mb/s. Example: The range is 1500 to 1998 bytes; the default is 1500 bytes. Switch(config)# system mtu 2500 Step 3 system mtu jumbo bytes (Optional) Changes the MTU size for all Gigabit Ethernet interfaces on the switch or the switch stack.
Configuring System MTU Additional References for System MTU Additional References for System MTU MIBs MIB MIBs Link All supported MIBs for this release. To locate and download MIBs for selected platforms, Cisco IOS 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 website provides extensive online http://www.cisco.
CHAPTER 7 Configuring PoE This module contains the following sections: • Finding Feature Information, page 75 • Restrictions for PoE, page 75 • Information about PoE, page 76 • How to Configure PoE, page 81 • Monitoring Power Status, page 88 • Configuration Examples for Configuring PoE, page 88 Finding Feature Information Your software release may not support all the features documented in this module.
Configuring PoE Information about PoE Information about PoE Power over Ethernet Ports A PoE-capable switch port automatically supplies power to one of these connected devices if the switch senses that there is no power on the circuit: • a Cisco pre-standard powered device (such as a Cisco IP Phone or a Cisco Aironet Access Point) • an IEEE 802.3af-compliant powered device • an IEEE 802.
Configuring PoE Power over Ethernet Ports Powered-Device Detection and Initial Power Allocation The switch detects a Cisco pre-standard or an IEEE-compliant powered device when the PoE-capable port is in the no-shutdown state, PoE is enabled (the default), and the connected device is not being powered by an AC adaptor.
Configuring PoE Power over Ethernet Ports Note The initial allocation for Class 0, Class 3, and Class 4 powered devices is 15.4 W. When a device starts up and uses CDP or LLDP to send a request for more than 15.4 W, it can be allocated up to the maximum of 30 W. Note The CDP-specific power consumption requirement is referred to as the actual power consumption requirement in the software configuration guides and command references.
Configuring PoE Power over Ethernet Ports a wattage, the switch delivers the maximum value. Use the auto setting on any PoE port. The auto mode is the default setting. • static—The switch pre-allocates power to the port (even when no powered device is connected) and guarantees that power will be available for the port. The switch allocates the port configured maximum wattage, and the amount is never adjusted through the IEEE class or by CDP messages from the powered device.
Configuring PoE Power over Ethernet Ports Maximum Power Allocation (Cutoff Power) on a PoE Port When power policing is enabled, the switch determines one of the these values as the cutoff power on the PoE port in this order: 1 Manually when you set the user-defined power level that the switch budgets for the port by using the power inline consumption default wattage global or interface configuration command 2 Manually when you set the user-defined power level that limits the power allowed on the port by us
Configuring PoE How to Configure PoE We recommend that you enable power policing when PoE is enabled on your switch. For example, if policing is disabled and you set the cutoff-power value by using the power inline auto max 6300 interface configuration command, the configured maximum power allocation on the PoE port is 6.3 W (6300 mW). The switch provides power to the connected devices on the port if the device needs up to 6.3 W.
Configuring PoE Budgeting Power for Devices Connected to a PoE Port DETAILED STEPS Step 1 Command or Action Purpose configure terminal Enters global configuration mode. Example: Switch# configure terminal Step 2 interface interface-id Specifies the physical port to be configured, and enters interface configuration mode. Example: Switch(config)# interface gigabitethernet2/0/1 Step 3 power inline {auto [max max-wattage] | Configures the PoE mode on the port.
Configuring PoE Budgeting Power for Devices Connected to a PoE Port grants a power request, the switch adjusts the power budget according to the powered-device IEEE classification. If the powered device is a class 0 (class status unknown) or a class 3, the switch budgets 15,400 mW for the device, regardless of the CDP-specific amount of power needed.
Configuring PoE Budgeting Power for Devices Connected to a PoE Port Step 3 Command or Action Purpose power inline consumption default wattage Configures the power consumption of powered devices connected to each the PoE port on the switch. Example: The range for each device is 4000 to 30000 mW (PoE+). The default is 30000 mW. Switch(config)# power inline consumption default 5000 Note Step 4 When you use this command, we recommend you also enable power policing. Returns to privileged EXEC mode.
Configuring PoE Configuring Power Policing Step 2 Command or Action Purpose no cdp run (Optional) Disables CDP. Example: Switch(config)# no cdp run Step 3 interface interface-id Specifies the physical port to be configured, and enter interface configuration mode. Example: Switch(config)# interface gigabitethernet2/0/1 Step 4 Step 5 power inline consumption wattage Configures the power consumption of a powered device connected to a PoE port on the switch.
Configuring PoE Configuring Power Policing SUMMARY STEPS 1. configure terminal 2. interface interface-id 3. power inline police [action{log | errdisable}] 4. exit 5. Use one of the following: • errdisable detect cause inline-power • errdisable recovery cause inline-power • errdisable recovery interval interval 6. exit 7. Use one of the following: • show power inline police • show errdisable recovery DETAILED STEPS Step 1 Command or Action Purpose configure terminal Enters global configuration mode.
Configuring PoE Configuring Power Policing Command or Action Purpose • power inline police action log—Generates a syslog message while still providing power to the port. If you do not enter the action log keywords, the default action shuts down the port and puts the port in the error-disabled state. Step 4 Returns to global configuration mode.
Configuring PoE Monitoring Power Status Monitoring Power Status Table 11: Show Commands for Interfaces Command Purpose show env power switch [switch-number] (Optional) Displays the status of the internal power supplies for each switch in the stack or for the specified switch. The range is 1 to 9, depending on the switch member numbers in the stack. These keywords are available only on stacking-capable switches.
CHAPTER 8 Configuring EEE This module contains the following sections: • Finding Feature Information, page 89 • Information About EEE, page 89 • Restrictions for EEE, page 90 • How to Configure EEE, page 90 • Monitoring EEE, page 91 • Configuration Examples for Configuring EEE, page 92 • Additional References, page 92 • Feature History and Information for Configuring EEE, page 93 Finding Feature Information Your software release may not support all the features documented in this module.
Configuring EEE Default EEE Configuration power by shutting down certain services. EEE provides the protocol needed to transition into and out of LPI mode in a way that is transparent to upper layer protocols and applications. Default EEE Configuration EEE is disabled by default. Restrictions for EEE EEE has the following restrictions: • Changing the EEE configuration resets the interface because the device has to restart Layer 1 autonegotiation.
Configuring EEE Monitoring EEE Step 2 Command or Action Purpose interface interface-id Specifies the interface to be configured, and enter interface configuration mode. Example: Switch(config)# interface gigabitethernet1/0/1 Step 3 Enables EEE on the specified interface. When EEE is enabled, the device advertises and autonegotiates EEE to its link partner. power efficient-ethernet auto Example: Switch(config-if)# power efficient-ethernet auto Step 4 Disables EEE on the specified interface.
Configuring EEE Configuration Examples for Configuring EEE Configuration Examples for Configuring EEE This example shows how to enable EEE for an interface: Switch# configure terminal Switch(config)# interface gigabitethernet1/0/1 Switch(config-if)# power efficient-ethernet auto This example shows how to disable EEE for an interface: Switch# configure terminal Switch(config)# interface gigabitethernet1/0/1 Switch(config-if)# no power efficient-ethernet auto Additional References MIBs MIB MIBs Link All
Configuring EEE Feature History and Information for Configuring EEE Feature History and Information for Configuring EEE Release Modification Cisco IOS Release 15.0(2)EX This feature was introduced. Catalyst 2960-X Switch Interface and Hardware Component Configuration Guide, Cisco IOS Release 15.
Configuring EEE Feature History and Information for Configuring EEE Catalyst 2960-X Switch Interface and Hardware Component Configuration Guide, Cisco IOS Release 15.
INDEX A E active link 45 and routing 45 and routing protocols 45 auto mode 78 auto-MDIX 42 configuring 42 described 42 auto-MDIX, configuring 42 ELIN location 53 enhanced PoE 76, 84 Ethernet management port 45, 46 active link 45 and routing 45 and routing protocols 45 default setting 45 described 45 for network management 45 supported features 46 unsupported features 46 Ethernet management port configuration 47 Ethernet management port, internal 45, 46 and routing 45 and routing protocols 45 unsupported
Index I IEEE power classification levels 77 interface 88 interfaces 42 auto-MDIX, configuring 42 inventory management TLV 53 L LLDP 51, 55, 56, 57 transmission timer and holdtime, setting 57 configuring 55 default configuration 55 enabling 56 overview 51 switch stack considerations 51 LLDP-MED 52, 59 configuring 59 TLVs 59 overview 52 supported TLVs 52 location TLV 53 M MAC/PHY configuration status TLV 51 management address TLV 51 monitoring 79 monitoring power 85 MTU 71 system 71 PoE (continued) polici