WLAN AC V200R010C00 Command Reference
interface range
Function
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.
Format
interface range { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-5>
Parameters
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. |
Usage Guidelines
Usage Scenario
Generally, a device has many Ethernet interfaces and most of them have the same configuration. Configuring these Ethernet interfaces one by one increases the configuration workload and may result in incorrect configurations. Therefore, you can add the Ethernet interfaces to be configured with the same command to a port group. After a command is run in this port group, the system executes the command on all the member interfaces. This process allows Ethernet interfaces to be configured in batches.
Precautions
- The interface range and port-group group-member commands have the same functions. Therefore, use either of the commands for configuration.
After exiting from the temporary port group view, the system deletes the temporary port group.
The system supports a maximum of 32 temporary port groups. If more than 32 users log in to the device through Telnet simultaneously, only 32 users can create temporary port groups.
When you specify the keyword to in the interface range command:
- The interfaces specified by interface-number1 and interface-number2 must reside on the same LPU. To add contiguous interfaces on different LPUs to the same port group, run this command several times or use the keyword to several times.
- The interfaces specified by interface-number1 and interface-number2 must be of the same type, for example, both of the interfaces are GigabitEthernet interfaces.
- If to is not specified, the preceding limitations do not apply.