port-group group-member
Function
The port-group group-member command creates a temporary port group and adds specified Ethernet interfaces to the temporary port group. Commands configured for a temporary port group will be automatically run on all member interfaces.
By default, no temporary port group is created.
Format
port-group group-member { 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
After exiting from the temporary port group view, the system deletes the temporary port group.
The port-group group-member 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.
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 port-group group-member 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.
- If to is not specified, the preceding limitations do not apply.