Table of Contents
interface range command
The interface range command allows you to configure multiple interfaces at once. The interface range command is particularly useful because switches have many interfaces and the same settings are often applied to multiple interfaces.
interface range command format
The format of the interface range command is as follows: range should be specified with “-” (hyphen).
(config)#interface range <interface-type> <slot>/<port > – <port>
(config-if-range)#
To configure multiple non-contiguous interfaces at once, delimit them with a comma (“,”). After separating with a comma, you need to specify the interface from .
(config)#interface range <interface-type> <slot>/<port > , <interface-type> <slot>/<port >
(config-if-range)#
It is also possible to combine a consecutive interfaces with “-” and non-consecutive interfaces with a “,”.
interface range command example
The following is an example of entering the shutdown command from GigabitEthernet0/1 to GigabitEthernet0/3 and GigabitEthernet0/5 all at once.
Switch(config)#interface range GigabitEthernet 0/1-3, GigabitEthernet 0/5 Switch(config-if-range)#shutdown Switch(config-if-range)#do show run int gi 0/1 Building configuration... Current configuration : 48 bytes ! interface GigabitEthernet0/1 shutdown end Switch(config-if-range)#do show run int gi 0/2 Building configuration... Current configuration : 48 bytes ! interface GigabitEthernet0/2 shutdown end Switch(config-if-range)#do show run int gi 0/3 Building configuration... Current configuration : 48 bytes ! interface GigabitEthernet0/3 shutdown end Switch(config-if-range)#do show run int gi 0/5 Building configuration... Current configuration : 48 bytes ! interface GigabitEthernet0/5 shutdown end
Cisco Basic
- Preparing for Cisco devices configuration
- Configuration files for Cisco devices
- The configuration steps for Cisco devices
- Basic knowledge of the Cisco CLI: Command types and modes
- Cisco device’s interface
- CLI help and completion
- The main error messages in CLI
- Cisco Deleting a configuration command
- default interface command -Initialize the interface settings-
- Entering commands in batches
- do command – Execute EXEC command from configuration mode –
- interface range command -Batch configuration of multiple interfaces-
- Filtering the display of the show command – displaying only the information you want to see –
- Cisco IOS Name Resolution Configuration
- terminal length command : configuration of the number of lines displayed in the command output
- debug command to verify real-time operation
- Automatically enter privileged EXEC mode upon CLI login
- Configure System Clock
- Saving and managing configuration files
- Version Management of Configuration Files ~archive command
- IOS File System Operations
- Managing Cisco Catalyst Switches :What it means to set an IP address on a switch.
- Remote management by VTY access (Telnet/SSH)
- terminal monitor command to display the log of Telnet/SSH login destination
- Multi-step Telnet Session Suspensions
- Set the minimum number of characters in the password [Cisco]
- Restrict login attempts : login block-for command
- Cisco Initial Configuration Example
- CDP – What are the connected devices? –
- Password recovery for Cisco routers
- Password Recovery for Catalyst Switches