Setting Interface Speed And Duplex Mode: Example; Configuring Layer 3 Interfaces: Example; Configuring The Console Media Type: Example - Cisco Catalyst 2960-XR Configuration Manual

Switch interface and hardware component
Hide thumbs Also See for Catalyst 2960-XR:
Table of Contents

Advertisement

Setting Interface Speed and Duplex Mode: Example

This example shows how to delete the interface-range macro enet_list and to verify that it was deleted.
Switch# configure terminal
Switch(config)# no define interface-range enet_list
Switch(config)# end
Switch# show run | include define
Switch#
Setting Interface Speed and Duplex Mode: Example
This example shows how to set the interface speed to 100 Mb/s and the duplex mode to half on a 10/100/1000
Mb/s port:
Switch# configure terminal
Switch(config)# interface gigabitethernet1/0/3
Switch(config-if)# speed 10
Switch(config-if)# duplex half
This example shows how to set the interface speed to 100 Mb/s on a 10/100/1000 Mb/s port:
Switch# configure terminal
Switch(config)# interface gigabitethernet1/0/2
Switch(config-if)# speed 100

Configuring Layer 3 Interfaces: Example

Switch# configure terminal
Enter configuration commands, one per line.
Switch(config)# interface gigabitethernet1/0/2
Switch(config-if)# no switchport
Switch(config-if)# ip address 192.20.135.21 255.255.255.0
Switch(config-if)# no shutdown

Configuring the Console Media Type: Example

This example disables the USB console media type and enables the RJ-45 console media type.
Switch# configure terminal
Switch(config)# line console 0
Switch(config-line)# media-type rj45
This configuration terminates any active USB console media type in the stack. A log shows that this termination
has occurred. This example shows that the console on switch 1 reverted to RJ-45.
*Mar
system configuration, media-type reverted to RJ45.
At this point no switches in the stack allow a USB console to have input. A log entry shows when a console
cable is attached. If a USB console cable is connected to switch 2, it is prevented from providing input.
*Mar
by system configuration, media-type remains RJ45. (switch-stk-2)
Catalyst 2960-XR Switch Interface and Hardware Component Configuration Guide, Cisco IOS Release 15.0(2)EX1
40
1 00:25:36.860: %USB_CONSOLE-6-CONFIG_DISABLE: Console media-type USB disabled by
1 00:34:27.498: %USB_CONSOLE-6-CONFIG_DISALLOW: Console media-type USB is disallowed
Configuring Interface Characteristics
End with CNTL/Z.
OL-29420-01

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 2960-x

Table of Contents