Cisco Systems WSC2960X48TDL manual How to Configure Interface Characteristics

Page 35

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

Purpose

 

Step 1

Enter the configure terminal command at the privileged EXEC

 

 

 

prompt:

 

 

 

Example:

 

 

 

Switch# configure terminal

 

 

 

Enter configuration commands, one per line. End with

 

 

 

CNTL/Z.

 

 

 

Switch(config)#

 

 

Step 2

Enter the interface global configuration command. Identify the

Note

You do not need to add a space between the

 

interface type, the switch number (only on stacking-capable

 

interface type and the interface number. For

 

switches), and the number of the connector. In this example,

 

example, in the preceding line, you can specify

 

Gigabit Ethernet port 1 on switch 1 is selected:

 

either gigabitethernet 1/0/1,

 

 

 

gigabitethernet1/0/1, gi 1/0/1, or gi1/0/1.

 

Example:

 

 

 

Switch(config)# interface gigabitethernet1/0/1

 

 

 

Switch(config-if)#

 

 

Step 3 Follow each interface command with the interface configuration commands that the interface requires. The commands that you enter define the protocols and applications that will run on the interface. The commands are collected and applied to the interface when you enter another interface command or enter end to return to privileged EXEC mode.

You can also configure a range of interfaces by using the interface range or interface range macro global configuration commands. Interfaces configured in a range must be the same type and must be configured with the same feature options.

Step 4 After you configure an interface, verify its status by using the show privileged EXEC commands.

Example:

Enter the show interfaces privileged EXEC command to see a list of all interfaces on or configured for the switch. A report is provided for each interface that the device supports or for the specified interface.

Catalyst 2960-X Switch Interface and Hardware Component Configuration Guide, Cisco IOS Release 15.0(2)EX

OL-29034-01

23

Image 35
Contents First Published July 10 Americas HeadquartersPage N T E N T S Contents Configuring Auto-MDIX41 Configuring System MTU Configuring EEE Viii Bold font Document ConventionsConvention Description Reader Alert Conventions Vertical barsElement Related Documentation Obtaining Documentation and Submitting a Service RequestXii This chapter contains the following topics Information About Using the Command-Line InterfaceCommand Modes Ctrl-Z Mode Access Method Prompt Exit Method About This ModeConfigure QuitHelp Using the Help SystemCommand or Action Purpose Step ModeCLI Error Messages Understanding Abbreviated CommandsNo and default Forms of Commands Error Message Meaning How to Use the CLI to Configure FeaturesConfiguration Logging Configuring the Command HistoryCommand or Action Changing the Command History Buffer SizeRecalling Commands Terminal no history Enabling and Disabling Editing FeaturesDisabling the Command History Feature Privileged Exec modeEditing Commands through Keystrokes Editing Command Lines That Wrap Show more command begin include exclude Searching and Filtering Output of show and more CommandsAccess-list Show more command begin include exclude regular-expressionCommand or Action Example OL-29034-01 This module contains the following topics Finding Feature InformationInformation About Configuring Interface Characteristics Interface TypesPort-Based VLANs Switch PortsTrunk Ports Switch Virtual InterfacesEtherChannel Port Groups Power over Ethernet PortsUSB Mini-Type B Console Port Using the Switch USB PortsUSB Type a Ports Interface ConnectionsConnecting VLANs with the Switch Interface Configuration ModeLayer 2 or switching mode switchport command VLANs 1 Default Ethernet Interface ConfigurationFeature Default SettingSpeed and Duplex Configuration Guidelines Interface Speed and Duplex ModeIeee 802.3x Flow Control Either gigabitethernet 1/0/1 How to Configure Interface CharacteristicsConfiguring Interfaces Procedure Gigabit Ethernet port 1 on switch 1 is selectedShow interfaces interface-id description Configure terminalAdding a Description for an Interface Description stringInterface range port-rangemacro Configuring a Range of InterfacesConfigure terminal Enters global configuration mode Define interface-range macroname Configuring and Using Interface Range MacrosVerifies the configuration of the interfaces in the range Interface range macro macroname Configuring Ethernet InterfacesSetting the Interface Speed and Duplex Parameters Nonegotiate Speed 10 100 1000 auto 10Command or Action Purpose Configuring Ieee 802.3x Flow ControlEnter interface configuration mode Configuring SVI Autostate ExcludeEnd Returns to privileged Exec mode Interface vlan vlan-id gigabitethernet interface-id Switchport autostate excludeShutting Down and Restarting the Interface An SVI line state up or downShutdown Shuts down an interface Configuring the Console Media TypeThis configuration applies to all switches in a stack Configure terminal Line console Media-type rj45 EndConfigure terminal Enters the global configuration mode Configuring the USB Inactivity TimeoutShow interfaces interface-id switchport Monitoring Interface CharacteristicsCommand Purpose Show interfaces interface-id status err-disabledClearing and Resetting Interfaces and Counters Adding a Description to an Interface Example Configuration Examples for Interface CharacteristicsIdentifying Interfaces on a Stack-Capable Switch Examples Configuring a Range of Interfaces ExamplesConfiguring the Console Media Type Example Configuring and Using Interface Range Macros ExamplesSetting Interface Speed and Duplex Mode Example None Configuring the USB Inactivity Timeout ExampleTo disable the configuration, use these commands Standards and RFCs Standard/RFCRelease Modification Cisco IOS Release 15.02EX This feature was introducedTechnical Assistance Description Link OL-29034-01 This module contains the following sections Prerequisites for Auto-MDIXRestrictions for Auto-MDIX Auto-MDIX on an Interface Information about Configuring Auto-MDIXHow to Configure Auto-MDIX Configuring Auto-MDIX on an InterfaceMonitoring Auto-MDIX This example shows how to enable auto-MDIX on a port Example for Configuring Auto-MDIXInformation about the Ethernet Management Port Prerequisites for Ethernet Management PortsSupported Features on the Ethernet Management Port Ethernet Management Port Direct Connection to a SwitchDisabling and Enabling the Ethernet Management Port How to Configure the Ethernet Management PortWhat to Do Next Additional ReferencesDocument Title Bootloader commandsRelated Topic MIBsOL-29034-01 Configuring LLDP, LLDP-MED, and Wired Location Service Lldp and Cisco Medianet Lldp and Cisco Switch StacksLldp Supported TLVs LLDP-MED Supported TLVs Wired Location Service Configuration Guidelines Default Lldp ConfigurationEnabling Lldp Configure terminal Lldp runLldp run Enables Lldp globally on the switch LLDP, and enter interface configuration modeShow lldp Verifies the configuration Configuring Lldp CharacteristicsLldp transmit Enables the interface to send Lldp packets Lldp receive Enables the interface to receive Lldp packetsSwitchconfig# lldp holdtime Command or Action Purpose Step Configuring LLDP-MED TLVsLldp med-tlv-select Specifies the TLV to enable Lldp med-tlv-select End Copy running-config startup-configConfiguration mode. The range is 1 to Configuring Network-Policy TLVDscp dvalue none untagged Voice voice-signalingvlan vlan-idcosShow network-policy profile Verifies the configuration Configuring Location TLV and Wired Location ServiceWay Use one of the followingEnters location information for an interface Exit Returns to global configuration modeInformation, and enter interface configuration mode Use one of the following Verifies the configurationCommand or Action Purpose Example Enabling Wired Location Service on the SwitchNmsp notification interval attachment location Configuring Network-Policy TLV ExamplesNmsp enable Enables the Nmsp features on the switch Command Description Civic location OL-29034-01 System MTU Guidelines Information about the MTUConfiguring the System MTU How to Configure MTU SizesReload Reloads the operating system Configuration Examples for System MTUShow system mtu Verifies your settings Additional References for System MTU Restrictions for PoE Configuring PoESupported Protocols and Standards Power over Ethernet PortsInformation about PoE Class Powered-Device Detection and Initial Power AllocationPower Management Modes Power Monitoring and Power Policing Maximum Power Allocation Cutoff Power on a PoE Port Configuring a Power Management Mode on a PoE Port How to Configure PoENever static max max-wattage Budgeting Power for Devices Connected to a PoE PortShow power inline No cdp run Optional Disables CDP Budgeting Power to All PoE portsConfigure terminal No cdp run Budgeting Power to a Specific PoE PortPower inline consumption wattage Configuring Power PolicingSpecifies the physical port to be configured, and enter Power inline police actionlog errdisable Power inline police actionlog errdisable ExitShow power inline police Show errdisable recovery Configuration modeDown the port and puts the port in the error-disabled state Power inline police action log-Generates a syslog messageWhile still providing power to the port Budgeting Power Example Monitoring Power StatusConfiguration Examples for Configuring PoE EEE Overview Information About EEERestrictions for EEE How to Configure EEEDefault EEE Configuration EEE is disabled by defaultMonitoring EEE Specifies the interface to be configured, and enterPower efficient-ethernet auto CommandThis example shows how to disable EEE for an interface Configuration Examples for Configuring EEEThis example shows how to enable EEE for an interface Feature History and Information for Configuring EEE OL-29034-01 D E PoE