15-20
Cisco IE 2000 Switch Software Configuration Guide
OL-25866-01
Chapter 15 Configuring Interface Characteristics
Configuration Examples for Configuring Interface Characteristics
Configuration Examples for Configuring Interface Characteristics

Configuring the Interface Range: Examples

This example shows how to use the interface range global configuration command to set the speed on
ports 1 to 2 to 100 Mb/s:
Switch# configure terminal
Switch(config)# interface range gigabitethernet1/1 - 2
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
Fast Ethernet ports 1 to 3 and Gigabit Ethernet ports 1 and 2 to receive flow-control pause frames:
Switch# configure terminal
Switch(config)# interface range fastethernet1/1 - 3, gigabitethernet1/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.

Configuring Interface Range Macros: Examples

This example shows how to define an interface-range named enet_list to include ports 1 and 2 and to
verify the macro configuration:
Switch# configure terminal
Switch(config)# define interface-range enet_list gigabitethernet1/1 - 2
Switch(config)# end
Switch# show running-config | include define
Switch# define interface-range enet_list gigabitethernet1/1 - 2
This example shows how to create a multiple-inte rface macro named macro1:
Switch# configure terminal
Switch(config)# define interface-range macro1 fastethernet1/1 - 2, gigabitethernet1/1 - 2
Switch(config)# end
Step 3 shutdown Shuts down an interface.
Note Use the no shutdown interface
configuration command to restart the
interface.
Step 4 end Returns to privileged EXEC mode.
Step 5 show running-config Verifies your entry.
Command Purpose