8-10
Catalyst 3550 Multilayer Switch Software Configuration Guide
78-11194-03
Chapter 8 Configuring Interface Characteristics
Using the Interface Command
•
You must add a space between the interface numbers and the hyphen when using the
interface range command. For example, the command interface range gigabitethernet 0/1 - 5 is
a valid range; the command interface range gigabitethernet 0/1-5 is not a valid range.
•
The interface range command works only with VLAN interfaces that have been configured with
the interface vlan command (the show running-config privileged EXEC command displays the
configured VLAN interfaces). VLAN interfaces not displayed by the show running-config
command cannot be used with the interface range command.
•
All interfaces in a range must be the same type; that is, all Fast Ethernet ports, all Gigabit Ethernet
ports, all EtherChannel ports, or all SVIs.
This example shows how to use the interface range global configuration command to enable Gigabit
Ethernet interfaces 0/1 to 0/5:
Switch# configure terminal
Switch(config)# interface range gigabitethernet0/1 - 5
Switch(config-if-range)# no shutdown
Switch(config-if-range)#
*Oct 6 08:24:35: %LINK-3-UPDOWN: Interface GigabitEthernet0/1, changed state to up
*Oct 6 08:24:35: %LINK-3-UPDOWN: Interface GigabitEthernet0/2, changed state to up
*Oct 6 08:24:35: %LINK-3-UPDOWN: Interface GigabitEthernet0/3, changed state to up
*Oct 6 08:24:35: %LINK-3-UPDOWN: Interface GigabitEthernet0/4, changed state to up
*Oct 6 08:24:35: %LINK-3-UPDOWN: Interface GigabitEthernet0/5, changed state to up
*Oct 6 08:24:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/05,
changed state to up
*Oct 6 08:24:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/3,
changed state to up
*Oct 6 08:24:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/4,
changed state to up
This example shows how to use a comma to add different interface type strings to the range to enable all
Gigabit Ethernet interfaces in the range 0/1 to 0/3 and both Gigabit Ethernet interfaces 0/7 and 0/8:
Switch# configure terminal
Switch(config)# interface range gigabitethernet0/1 - 3, gigabitethernet0/7 - 8
Switch(config-if-range)# no shutdown
Switch(config-if-range)#
*Oct 6 08:29:28: %LINK-3-UPDOWN: Interface GigabitEthernet0/1, changed state to up
*Oct 6 08:29:28: %LINK-3-UPDOWN: Interface GigabitEthernet0/2, changed state to up
*Oct 6 08:29:28: %LINK-3-UPDOWN: Interface GigabitEthernet0/3, changed state to up
*Oct 6 08:29:28: %LINK-3-UPDOWN: Interface GigabitEthernet0/7, changed state to up
*Oct 6 08:29:28: %LINK-3-UPDOWN: Interface GigabitEthernet0/8, changed state to up
*Oct 6 08:29:29: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/ 7,
changed state to up
*Oct 6 08:29:29: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/ 2,
changed state to up
*Oct 6 08:29:29: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/ 4,
changed state to up
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 together 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.