The interface range command creates a temporary interface group and adds specified interfaces to this temporary interface group. Commands configured for a temporary interface group then automatically run on all member interfaces.
By default, no temporary interface group is created.
interface range { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-10>
Parameter | Description | Value |
---|---|---|
interface-type interface-number1 [ to interface-type interface-number2 ] | Specifies Ethernet interfaces to be added to a temporary
port group. to indicates an interface range. All interfaces numbered between interface-number1 and interface-number2 are added to the temporary port group. |
The value of interface-number2 must
be larger than the value of interface-number1. A maximum of 48 temporary port groups can be created on a device. |
Usage Scenario
If you need to perform the same operations on multiple Ethernet interfaces, configuring each interface one by one easily causes incorrect configurations and is labor-intensive.
The port group function easily solves the problem. You can add all the Ethernet interfaces to the same port group. After you run a configuration command once in the port group view, the configuration takes effect on all the Ethernet interfaces in the port group, reducing the configuration workload.
Configuration Impact
If the interface range command is run more than once, all configurations take effect.
Precautions
The interface range command is equivalent to the group-member command executed in the permanent port group view. Multiple interfaces can be added to a permanent port group in batches using the group-member command.
When you specify the keyword to in the interface range command:
Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support sub-interfaces.