Cisco Systems, Inc
Americas Headquarters
First Published July 10
170 West Tasman Drive San Jose, CA
2013 Cisco Systems, Inc. All rights reserved
C O N T E N T S
Using the Command-Line Interface
Configuring Interface Characteristics
Preface
Interface Types Port-Based VLANs Switch Ports Access Ports
Configuring LLDP, LLDP-MED, and Wired Location Service
Configuring Auto-MDIX
Configuring Ethernet Management Port
C H A P T E R C H A P T E R C H A P T E R
Configuring System MTU
Configuring PoE
Configuring EEE
viii
Contents
OL-29034-01
Convention
Preface
Document Conventions
Description
Convention
Tip Means the following information will help you solve a problem
Reader Alert Conventions
Description
Related Documentation
Obtaining Documentation and Submitting a Service Request
Preface Obtaining Documentation and Submitting a Service Request
OL-29034-01
Command Modes
Using the Command-Line Interface
Information About Using the Command-Line Interface
C H A P T E R
the configure
Access Method
About This Mode
vlan-id command
5. command ? 6. command keyword ?
Using the Help System
2. abbreviated-command-entry ? 3. abbreviated-command-entry Tab
Command or Action
CLI Error Messages
Understanding Abbreviated Commands
No and default Forms of Commands
Lists all commands available for a particular command
Configuring the Command History
How to Use the CLI to Configure Features
Configuration Logging
Error Message
Repeat the key sequence to recall successively older commands
Changing the Command History Buffer Size
Recalling Commands
more recent commands
privileged EXEC mode
Enabling and Disabling Editing Features
Disabling the Command History Feature
Reenables the enhanced editing mode for the current terminal
terminal no editing
Editing Commands through Keystrokes
in the privileged EXEC mode
Ctrl-B or use the left arrow key
Esc D
Editing Command Lines That Wrap
1. access-list 2. Ctrl-A 3. Return key
Esc C
1. show more command begin include exclude regular-expression
Searching and Filtering Output of show and more Commands
access-list
show more command begin include exclude
Command or Action Example
Accessing the CLI through a Console Connection or through Telnet
Purpose
Accessing the CLI through a Console Connection or through Telnet
Using the Command-Line Interface
OL-29034-01
Information About Configuring Interface Characteristics
Configuring Interface Characteristics
Finding Feature Information
Interface Types
Access Ports
Switch Ports
Port-Based VLANs
Switch Virtual Interfaces
Trunk Ports
EtherChannel Port Groups
Power over Ethernet Ports
SVI Autostate Exclude
USB Mini-Type B Console Port
Using the Switch USB Ports
Console Port Change Logs
Interface Connections
USB Type A Ports
Interface Configuration Mode
Feature
Default Ethernet Interface Configuration
Default Setting
Feature
Interface Speed and Duplex Mode
Speed and Duplex Configuration Guidelines
Default Setting
IEEE 802.3x Flow Control
either gigabitethernet 1/0/1
How to Configure Interface Characteristics
Configuring Interfaces Procedure
gigabitethernet1/0/1 , gi 1/0/1 , or gi1/0/1
Adding a Description for an Interface
1. configure terminal
configure terminal
2. interface interface-id
Enters global configuration mode
Configuring a Range of Interfaces
1. configure terminal 2. interface range port-range macro macroname
3. end 4. show interfaces interface-id
show interfaces interface-id
Configuring and Using Interface Range Macros
5. show running-config include define
2. define interface-range macroname interface-range
show running-config include define
Configuring Ethernet Interfaces
Setting the Interface Speed and Duplex Parameters
Shows the defined interface range macro configuration
speed 10 100 1000 auto 10
Displays the interface speed and duplex mode configuration
interface interface-id
1000 nonegotiate
Optional Saves your entries in the configuration file
Configuring IEEE 802.3x Flow Control
copy running-config startup-config
enter interface configuration mode
Verifies the interface flow control settings
Configuring SVI Autostate Exclude
Returns to privileged EXEC mode
3. switchport autostate exclude 4. end
Optional Shows the running configuration
switchport autostate exclude
show running config interface interface-id
Shutting Down and Restarting the Interface
shutdown
Configuring the Console Media Type
1. configure terminal 2. line console 3. media-type rj45 4. end
Shuts down an interface
Configures the console and enters line configuration mode
Configuring the USB Inactivity Timeout
Enters the global configuration mode
1. configure terminal 2. line console
Command
Monitoring Interface Characteristics
usb-inactivity-timeout timeout-minutes
show interfaces interface-id status err-disabled
show interfaces interface-id description
Clearing and Resetting Interfaces and Counters
show running-config interface interface-id
show ip interface interface-id
Configuring a Range of Interfaces Examples
Configuration Examples for Interface Characteristics
Identifying Interfaces on a Stack-Capable Switch Examples
Adding a Description to an Interface Example
Setting Interface Speed and Duplex Mode Example
Configuring and Using Interface Range Macros Examples
Configuring the Console Media Type Example
Standards and RFCs
Additional References for the Interface Characteristics Feature
Configuring the USB Inactivity Timeout Example
Standard/RFC
Release
Technical Assistance
Link
Modification
Configuring Interface Characteristics
Restrictions for Auto-MDIX
Configuring Auto-MDIX
Prerequisites for Auto-MDIX
C H A P T E R
Configuring Auto-MDIX on an Interface
Information about Configuring Auto-MDIX
How to Configure Auto-MDIX
Auto-MDIX on an Interface
Switchconfig# interface gigabitethernet1/0/1
Switch# configure terminal
interface configuration mode
Configures the interface to autonegotiate speed with the
show controllers ethernet-controller interface-id
Example for Configuring Auto-MDIX
feature on the interface
Verifies the operational state of the auto-MDIX
Information about the Ethernet Management Port
Configuring Ethernet Management Port
Prerequisites for Ethernet Management Ports
Finding Feature Information
Supported Features on the Ethernet Management Port
Ethernet Management Port Direct Connection to a Switch
Ethernet Management Port Connection to Stack Switches using a Hub
Disabling and Enabling the Ethernet Management Port
How to Configure the Ethernet Management Port
1. configure terminal 2. interface fastethernet0 3. shutdown
4. no shutdown 5. exit 6. show interfaces fastethernet0
Additional References
Bootloader configuration
Configuration Guide
What to Do Next
Related Topic
Bootloader commands
Catalyst 2960-X Switch System Management Configuration Guide
MIBs MIB
Configuring Ethernet Management Port Additional References
OL-29034-01
Finding Feature Information
Configuring LLDP, LLDP-MED, and Wired Location Service
LLDP
LLDP, LLDP-MED, and Wired Location Service Overview
LLDP Supported TLVs
LLDP and Cisco Switch Stacks
LLDP-MED
LLDP and Cisco Medianet
LLDP-MED Supported TLVs
Wired Location Service
Feature
Default LLDP Configuration
Configuration Guidelines
Default Setting
8. copy running-config startup-config
How to Configure LLDP, LLDP-MED, and Wired Location Service
1. configure terminal 2. lldp run
Enables LLDP globally on the switch
Enables the interface to receive LLDP packets
Configuring LLDP Characteristics
Enables the interface to send LLDP packets
Verifies the configuration
10. copy running-config startup-config
1. configure terminal 2. lldp holdtime seconds 3. lldp reinit delay
4. lldp timer rate 5. lldp tlv-select
lldp reinit delay
Purpose
Configuring LLDP-MED TLVs
Command or Action
Specifies the interface on which you are enabling LLDP, and
LLDP-MED TLV
3. lldp med-tlv-select 4. end 5. copy running-config startup-config
Specifies the TLV to enable
lldp med-tlv-select
9. show network-policy profile 10. copy running-config startup-config
Configuring Network-Policy TLV
1. configure terminal 2. network-policy profile profile number
configuration mode. The range is 1 to
cvalue dscp dvalue dot1p cos cvalue
voice voice-signaling vlan vlan-id cos
profile, and enter interface configuration mode
dscp dvalue none untagged
Specifies the network-policy TLV
Configuring Location TLV and Wired Location Service
lldp med-tlv-select network-policy
show network-policy profile
4. interface interface-id
show location admin-tag string
3. exit
6. end
interface interface-id
Returns to global configuration mode
information, and enter interface configuration mode
Command or Action
6. copy running-config startup-config
Enabling Wired Location Service on the Switch
1. configure terminal 2. nmsp enable
3. nmsp notification interval attachment location interval-seconds
nmsp enable
Configuration Examples for LLDP, LLDP-MED, and Wired Location Service
Configuring Network-Policy TLV Examples
Enables the NMSP features on the switch
clear lldp counters
Monitoring and Maintaining LLDP, LLDP-MED, and Wired Location Service
show location admin-tag string
clear lldp table
show location civic-location identifier id
Additional References for LLDP, LLDP-MED, and Wired Location Service
Displays the configured network-policy profiles
civic location
Additional References for LLDP, LLDP-MED, and Wired Location Service
Configuring LLDP, LLDP-MED, and Wired Location Service
OL-29034-01
System MTU Guidelines
Configuring System MTU
Information about the MTU
Finding Feature Information
1. configure terminal 2. system mtu bytes 3. system mtu jumbo bytes
How to Configure MTU Sizes
Configuring the System MTU
4. end 5. copy running-config startup-config 6. reload
Verifies your settings
Configuration Examples for System MTU
Saves your entries in the configuration file
system mtu bytes
Description
Additional References for System MTU
Technical Assistance
Link
Finding Feature Information
Configuring PoE
Restrictions for PoE
Finding Feature Information, page Restrictions for PoE, page
Information about PoE
Power over Ethernet Ports
Supported Protocols and Standards
Powered-Device Detection and Initial Power Allocation
Class
Power Management Modes
Power Monitoring and Power Policing
Maximum Power Allocation Cutoff Power on a PoE Port
Power Consumption Values
3. power inline auto max max-wattage never static max max-wattage
How to Configure PoE
Configuring a Power Management Mode on a PoE Port
5. show power inline interface-id module switch-number
switch-number
Budgeting Power for Devices Connected to a PoE Port
Step 5 show power inline
never static max max-wattage
3. power inline consumption default wattage 4. end
Budgeting Power to All PoE ports
1. configure terminal 2. no cdp run
5. show power inline consumption default
show power inline consumption default
Budgeting Power to a Specific PoE Port
power inline consumption default wattage
4. power inline consumption wattage 5. end
power inline consumption wattage
Configuring Power Policing
Specifies the physical port to be configured, and enter
show power inline consumption
errdisable recovery cause inline-power
3. power inline police actionlog errdisable 4. exit
errdisable detect cause inline-power
errdisable recovery interval interval 6. exit
Command or Action
power inline police action log-Generates a syslog message
errdisable recovery interval interval
errdisable detect cause inline-power
Budgeting Power Example
Monitoring Power Status
Configuration Examples for Configuring PoE
show env power switch switch-number
EEE Overview
Configuring EEE
Information About EEE
Finding Feature Information
3. power efficient-ethernet auto 4. no power efficient-ethernet auto
How to Configure EEE
Default EEE Configuration
5. end 6. copy running-config startup-config
no power efficient-ethernet auto
Specifies the interface to be configured, and enter
power efficient-ethernet auto
Disables EEE on the specified interface
Technical Assistance
Configuration Examples for Configuring EEE
Additional References
Description
Release
Feature History and Information for Configuring EEE
Configuring EEE Feature History and Information for Configuring EEE
Modification
Configuring EEE Feature History and Information for Configuring EEE
OL-29034-01
I N D E
PoE continued