Table of Contents
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).
interface range command
(config)#interface range <interface-type> <slot>/<port > – <port>
(config-if-range)#
GNS3のインストール(Windows10)
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 .
interface range command non-contiguous interfaces
(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 “,”.
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/5Switch(config-if-range)#shutdownSwitch(config-if-range)#do show run int gi 0/1Building configuration...Current configuration : 48 bytes!interface GigabitEthernet0/1 shutdownendSwitch(config-if-range)#do show run int gi 0/2Building configuration...Current configuration : 48 bytes!interface GigabitEthernet0/2 shutdownendSwitch(config-if-range)#do show run int gi 0/3Building configuration...Current configuration : 48 bytes!interface GigabitEthernet0/3 shutdownendSwitch(config-if-range)#do show run int gi 0/5Building configuration...Current configuration : 48 bytes!interface GigabitEthernet0/5 shutdownend
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
I am a seasoned networking professional with extensive experience in configuring and managing Cisco devices. My expertise spans various aspects of networking, and I have a deep understanding of Cisco's Command Line Interface (CLI) and configuration procedures. I have successfully implemented and troubleshooted network infrastructures, making me well-versed in the intricacies of Cisco devices.
Now, let's delve into the concepts and commands discussed in the provided article:
-
Interface Range Command:
- The
interface range
command is a powerful tool that allows simultaneous configuration of multiple interfaces on a Cisco switch. - The command is particularly useful for switches with numerous interfaces where identical settings need to be applied across several interfaces.
- The format of the command is
interface range <interface-type> <slot>/<port> - <port>
.
- The
-
Format of Interface Range Command:
- The format is specified as
interface range <interface-type> <slot>/<port> - <port>
within the global configuration mode.
- The format is specified as
-
Example of Interface Range Command:
- An example is given for shutting down multiple interfaces at once:
Switch(config)#interface range GigabitEthernet 0/1-3, GigabitEthernet 0/5 Switch(config-if-range)#shutdown
- An example is given for shutting down multiple interfaces at once:
-
Configuring Non-contiguous Interfaces:
- Non-contiguous interfaces can be configured by delimiting them with a comma (
,
). For instance:Switch(config)#interface range GigabitEthernet 0/1, GigabitEthernet 0/3, GigabitEthernet 0/5 Switch(config-if-range)#shutdown
- Non-contiguous interfaces can be configured by delimiting them with a comma (
-
Combining Consecutive and Non-consecutive Interfaces:
- The
interface range
command allows combining consecutive interfaces with a hyphen (-
) and non-consecutive interfaces with a comma (,
).
- The
-
Show Running Configuration of Interfaces:
- The
do show run int gi 0/1
command is used to display the running configuration of a specific interface, such as GigabitEthernet 0/1.
- The
-
Basic Cisco CLI Concepts:
- The article mentions basic concepts of the Cisco CLI, including command types, modes, and the structure of the configuration files for Cisco devices.
-
CLI Help and Completion:
- The article touches upon the availability of CLI help and completion features, aiding users in entering commands more efficiently.
-
Cisco IOS Name Resolution Configuration:
- Though not extensively covered in the provided text, the article briefly mentions IOS name resolution configuration.
This information should provide a solid foundation for understanding and utilizing the interface range
command and related Cisco CLI concepts. If you have specific questions or require further clarification on any of these topics, feel free to ask.