Configuring Interface Characteristics

Configuring and Using Interface Range Macros: Examples

Configuring and Using Interface Range Macros: Examples

This example shows how to define an interface-range named enet_list to include ports 1 and 2 on switch 1 and to verify the macro configuration:

Switch# configure terminal

Switch(config)# define interface-range enet_list gigabitethernet1/0/1 - 2 Switch(config)# end

Switch# show running-config include define

define interface-range enet_list GigabitEthernet1/0/1 - 2

This example shows how to create a multiple-interface macro named macro1:

Switch# configure terminal

Switch(config)# define interface-range macro1 gigabitethernet1/0/1 - 2, gigabitethernet1/0/5

-7, tengigabitethernet1/0/1 -2 Switch(config)# end

This example shows how to enter interface-range configuration mode for the interface-range macro enet_list:

Switch# configure terminal

Switch(config)# interface range macro enet_list

Switch(config-if-range)#

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 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

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

OL-29034-01

37

Page 49
Image 49
Cisco Systems WSC2960X48TDL manual Configuring and Using Interface Range Macros Examples