User's Manual

188
Chapter 24 Interface Range Configuration
24.1 Interface Range Configuration Task
24.1.1 Understanding Interface Range
In the process of configuring interface tasks, there are cases when you have to configure the same attribute
on ports of the same type. In order to avoid repeated configuration on each port, we provide the interface
range configuration mode. You can configure ports of the same type and slot number with the same
configuration parameters. This reduces the workload.
Note:
when entering the interface range mode, all interfaces included in this mode must have been established.
24.1.2 Entering Interface Range Mode
Run the following commands to enter the interface range mode.
Step Command Description
1
interface range
type slot/<port1 -
port2 | port3>[ , <port1 - port2|port3>]
Enters the range mode. All ports included in
this mode accord to the following conditions:
(1) The slot number is set to
slot
.
(2) The port numbers before/after the
hyphen must range between port1 and
port2, or equal to port3.
(3) Port 2 must be less than port 1
(4) There must be space before/after the
hyphen or the comma.
24.1.3 Configuration Example
Enter the interface configuration mode via the following commands, including slot 0 and fast Ethernet
1,2,3,6,8,10,11,12:
switch_config#interface range 1 - 3 , 6 , 8 , 10 - 12
switch_config_if_range#