The port-group group-member command creates a temporary interface group and adds one or more interfaces to the temporary interface group. When you run a command in the interface group view, the system automatically applies the command to all the interfaces in the temporary interface group.
By default, no temporary interface group is configured.
Parameter | Description | Value |
---|---|---|
startIfName |
Specifies a start interface name. |
- |
interface-type-start interface-number-start to interface-type-end endIfNum |
Specifies one or more interfaces to be added to a permanent interface group.
A maximum of 10 interface number ranges can be specified using to in a group-member command. |
- |
interface-number-end |
Specifies an end interface name. |
- |
Usage Scenario
A switching device provides multiple interfaces, many of which have the same configuration. To simplify the configuration of interfaces, run the port-group command to create a permanent interface group and add interfaces to the permanent interface group. When you run a command in the interface group view, the system automatically applies the command to all the interfaces in the permanent interface group. In this manner, interfaces in a permanent interface group are configured in a batch.
If some interfaces need to be temporarily configured in a batch, run the port-group group-member command to create a temporary interface group. After you complete the batch configuration and exit the view of the temporary interface group, the temporary interface group is automatically deleted.Configuration Impact
If the port-group group-member command is run more than once, all configurations take effect.
Precautions
Each temporary interface group supports a maximum of 512 interfaces.
Similar to the group-member command, the port-group group-member command adds one or more interfaces to a permanent interface group, implementing batch interface configurations. The differences between permanent and temporary interface groups are described as follows: