WLAN AC V200R010C00 Command Reference

interface range

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.

Views

System view

Default Level

2: Configuration level

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.

Example

# Add GE0/0/1 and 0/0/2 to a temporary port group.
<AC6605> system-view
[AC6605] interface range gigabitethernet 0/0/1 to gigabitethernet 0/0/2
[AC6605-port-group]
Translation
Favorite
Download
Update Date:2021-02-27
Document ID:EDOC1100064351
Views:9024885
Downloads:1494
Average rating:4.0Points