Cisco Systems WSC2960X48TDL manual Configuration Examples for Interface Characteristics

Page 48

Configuring Interface Characteristics

Configuration Examples for Interface Characteristics

Note The clear counters privileged EXEC command does not clear counters retrieved by using Simple Network Management Protocol (SNMP), but only those seen with the show interface privileged EXEC command.

Configuration Examples for Interface Characteristics

Adding a Description to an Interface: Example

Switch# configure terminal

Enter configuration commands, one per line. End with CNTRL/Z.

Switch(config)# interface gigabitethernet1/0/2

Switch(config-if)#description Connects to Marketing

Switch(config-if)# end

Switch# show interfaces gigabitethernet1/0/2 description

Interface

Status

Protocol

Description

Gi1/0/2

admin down

down

Connects to Marketing

Identifying Interfaces on a Stack-Capable Switch: Examples

To configure 10/100/1000 port 4 on a standalone switch, enter this command:

Switch(config)# interface gigabitethernet1/0/4

Configuring a Range of Interfaces: Examples

This example shows how to use the interface range global configuration command to set the speed to 100 Mb/s on ports 1 to 4 on switch 1:

Switch# configure terminal

Switch(config)# interface range gigabitethernet1/0/1 - 4

Switch(config-if-range)# speed 100

This example shows how to use a comma to add different interface type strings to the range to enable Gigabit Ethernet ports 1 to 3 and 10-Gigabit Ethernet ports 1 and 2 to receive flow-control pause frames:

Switch# configure terminal

Switch(config)# interface range gigabitethernet1/0/1 - 3 , tengigabitethernet1/0/1 - 2 Switch(config-if-range)#flowcontrol receive on

If you enter multiple configuration commands while you are in interface-range mode, each command is executed as it is entered. The commands are not batched and executed after you exit interface-range mode. If you exit interface-range configuration mode while the commands are being executed, some commands might not be executed on all interfaces in the range. Wait until the command prompt reappears before exiting interface-range configuration mode.

 

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

36

OL-29034-01

Image 48
Contents Americas Headquarters First Published July 10Page N T E N T S Contents Configuring Auto-MDIX41 Configuring System MTU Configuring EEE Viii Document Conventions Convention DescriptionBold font Vertical bars ElementReader Alert Conventions Obtaining Documentation and Submitting a Service Request Related DocumentationXii Information About Using the Command-Line Interface Command ModesThis chapter contains the following topics Mode Access Method Prompt Exit Method About This Mode ConfigureQuit Ctrl-ZUsing the Help System Command or Action Purpose StepMode HelpUnderstanding Abbreviated Commands No and default Forms of CommandsCLI Error Messages How to Use the CLI to Configure Features Configuration LoggingConfiguring the Command History Error Message MeaningChanging the Command History Buffer Size Recalling CommandsCommand or Action Enabling and Disabling Editing Features Disabling the Command History FeaturePrivileged Exec mode Terminal no historyEditing Commands through Keystrokes Editing Command Lines That Wrap Searching and Filtering Output of show and more Commands Access-listShow more command begin include exclude regular-expression Show more command begin include excludeCommand or Action Example OL-29034-01 Finding Feature Information Information About Configuring Interface CharacteristicsInterface Types This module contains the following topicsSwitch Ports Port-Based VLANsSwitch Virtual Interfaces Trunk PortsPower over Ethernet Ports EtherChannel Port GroupsUsing the Switch USB Ports USB Mini-Type B Console PortInterface Connections USB Type a PortsInterface Configuration Mode Connecting VLANs with the SwitchDefault Ethernet Interface Configuration FeatureDefault Setting Layer 2 or switching mode switchport command VLANs 1Interface Speed and Duplex Mode Speed and Duplex Configuration GuidelinesIeee 802.3x Flow Control How to Configure Interface Characteristics Configuring Interfaces ProcedureGigabit Ethernet port 1 on switch 1 is selected Either gigabitethernet 1/0/1Configure terminal Adding a Description for an InterfaceDescription string Show interfaces interface-id descriptionConfiguring a Range of Interfaces Configure terminal Enters global configuration modeInterface range port-rangemacro Configuring and Using Interface Range Macros Verifies the configuration of the interfaces in the rangeDefine interface-range macroname Configuring Ethernet Interfaces Setting the Interface Speed and Duplex ParametersInterface range macro macroname Speed 10 100 1000 auto 10 NonegotiateConfiguring Ieee 802.3x Flow Control Command or Action PurposeConfiguring SVI Autostate Exclude End Returns to privileged Exec modeEnter interface configuration mode Switchport autostate exclude Shutting Down and Restarting the InterfaceAn SVI line state up or down Interface vlan vlan-id gigabitethernet interface-idConfiguring the Console Media Type This configuration applies to all switches in a stackConfigure terminal Line console Media-type rj45 End Shutdown Shuts down an interfaceConfiguring the USB Inactivity Timeout Configure terminal Enters the global configuration modeMonitoring Interface Characteristics Command PurposeShow interfaces interface-id status err-disabled Show interfaces interface-id switchportClearing and Resetting Interfaces and Counters Configuration Examples for Interface Characteristics Identifying Interfaces on a Stack-Capable Switch ExamplesConfiguring a Range of Interfaces Examples Adding a Description to an Interface ExampleConfiguring and Using Interface Range Macros Examples Setting Interface Speed and Duplex Mode ExampleConfiguring the Console Media Type Example Configuring the USB Inactivity Timeout Example To disable the configuration, use these commandsStandards and RFCs Standard/RFC NoneCisco IOS Release 15.02EX This feature was introduced Technical Assistance Description LinkRelease Modification OL-29034-01 Prerequisites for Auto-MDIX Restrictions for Auto-MDIXThis module contains the following sections Information about Configuring Auto-MDIX How to Configure Auto-MDIXConfiguring Auto-MDIX on an Interface Auto-MDIX on an InterfaceMonitoring Auto-MDIX Example for Configuring Auto-MDIX This example shows how to enable auto-MDIX on a portPrerequisites for Ethernet Management Ports Information about the Ethernet Management PortEthernet Management Port Direct Connection to a Switch Supported Features on the Ethernet Management PortHow to Configure the Ethernet Management Port Disabling and Enabling the Ethernet Management PortAdditional References What to Do NextBootloader commands Related TopicMIBs Document TitleOL-29034-01 Configuring LLDP, LLDP-MED, and Wired Location Service Lldp and Cisco Switch Stacks Lldp Supported TLVsLldp and Cisco Medianet LLDP-MED Supported TLVs Wired Location Service Default Lldp Configuration Configuration GuidelinesConfigure terminal Lldp run Lldp run Enables Lldp globally on the switchLLDP, and enter interface configuration mode Enabling LldpConfiguring Lldp Characteristics Lldp transmit Enables the interface to send Lldp packetsLldp receive Enables the interface to receive Lldp packets Show lldp Verifies the configurationSwitchconfig# lldp holdtime Configuring LLDP-MED TLVs Command or Action Purpose StepLldp med-tlv-select End Copy running-config startup-config Lldp med-tlv-select Specifies the TLV to enableConfiguring Network-Policy TLV Configuration mode. The range is 1 toVoice voice-signalingvlan vlan-idcos Dscp dvalue none untaggedConfiguring Location TLV and Wired Location Service Show network-policy profile Verifies the configurationUse one of the following WayExit Returns to global configuration mode Information, and enter interface configuration modeUse one of the following Verifies the configuration Enters location information for an interfaceEnabling Wired Location Service on the Switch Command or Action Purpose ExampleConfiguring Network-Policy TLV Examples Nmsp enable Enables the Nmsp features on the switchNmsp notification interval attachment location Command Description Civic location OL-29034-01 Information about the MTU System MTU GuidelinesHow to Configure MTU Sizes Configuring the System MTUConfiguration Examples for System MTU Show system mtu Verifies your settingsReload Reloads the operating system Additional References for System MTU Configuring PoE Restrictions for PoEPower over Ethernet Ports Information about PoESupported Protocols and Standards Powered-Device Detection and Initial Power Allocation ClassPower Management Modes Power Monitoring and Power Policing Maximum Power Allocation Cutoff Power on a PoE Port How to Configure PoE Configuring a Power Management Mode on a PoE PortBudgeting Power for Devices Connected to a PoE Port Show power inlineNever static max max-wattage Budgeting Power to All PoE ports No cdp run Optional Disables CDPBudgeting Power to a Specific PoE Port Configure terminal No cdp runConfiguring Power Policing Specifies the physical port to be configured, and enterPower inline consumption wattage Power inline police actionlog errdisable Exit Show power inline police Show errdisable recoveryConfiguration mode Power inline police actionlog errdisablePower inline police action log-Generates a syslog message While still providing power to the portDown the port and puts the port in the error-disabled state Monitoring Power Status Configuration Examples for Configuring PoEBudgeting Power Example Information About EEE EEE OverviewHow to Configure EEE Default EEE ConfigurationEEE is disabled by default Restrictions for EEESpecifies the interface to be configured, and enter Power efficient-ethernet autoCommand Monitoring EEEConfiguration Examples for Configuring EEE This example shows how to enable EEE for an interfaceThis example shows how to disable EEE for an interface Feature History and Information for Configuring EEE OL-29034-01 D E PoE