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