Cisco Systems WSC2960X48TDL manual Configuration Examples for Interface Characteristics

Models: WSC2960X48TDL

1 108
Download 108 pages 27.2 Kb
Page 48
Image 48
Configuration Examples for Interface Characteristics

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

Page 48
Image 48
Cisco Systems WSC2960X48TDL manual Configuration Examples for Interface Characteristics