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