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.
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
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
40
Configuration Examples for Interface Characteristics
Summary of Contents for Catalyst 2960 Series
Page 96: ......
Page 196: ......
Page 250: ......
Page 292: ......
Page 488: ......
Page 589: ...P A R T VI Cisco Flexible NetFlow Configuring NetFlow Lite page 509 ...
Page 590: ......
Page 619: ...P A R T VII QoS Configuring QoS page 539 Configuring Auto QoS page 645 ...
Page 620: ......
Page 750: ......
Page 1604: ......
Page 1740: ......
Page 2105: ...P A R T XII Configuring Cisco IOS IP SLAs Configuring Cisco IP SLAs page 2025 ...
Page 2106: ......
Page 2118: ......
Page 2164: ......