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