The group-member command adds one or more interfaces to a permanent interface group.
The undo group-member command deletes one or more interfaces from a permanent interface group.
By default, a permanent interface group does not contain any interfaces.
group-member { { interface-name-start | interface-type-start interface-number-start } [ to { interface-name-end | interface-type-end interface-number-end } ] } &<1-10>
undo group-member { { interface-name-start | interface-type-start interface-number-start } [ to { interface-name-end | interface-type-end interface-number-end } ] } &<1-10>
Parameter | Description | Value |
---|---|---|
interface-name-start |
Specifies a start interface name. |
- |
interface-type-start |
Specifies the type of the first interface to be added to a permanent port group.
A maximum of 10 interface number ranges can be specified using to in a group-member command. |
- |
interface-number-start |
Specifies the number of the first interface to be added to a permanent port group.
A maximum of 10 interface number ranges can be specified using to in a group-member command. |
The value is a string of 1 to 63 case-sensitive characters. It cannot contain spaces. |
interface-name-end |
Specifies an end interface name. |
- |
interface-type-end |
Specifies the last interface type to be added to a permanent port group.
A maximum of 10 interface number ranges can be specified using to in a group-member command. |
- |
interface-number-end |
Specifies the number of the last interface to be added to a permanent port group.
A maximum of 10 interface number ranges can be specified using to in a group-member command. |
The value is a string of 1 to 63 case-sensitive characters. It cannot contain spaces. |
Usage Scenario
After a permanent interface group is created using the port-group command, the permanent interface group does not contain any interfaces. To add one or more interfaces to the permanent interface group, run the group-member command. 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. Then interfaces in a permanent interface group are configured in a batch.
Prerequisites
A permanent interface group has been created using the port-group command in the system view.
Precautions
Similar to the group-member command, the port-group group-member command adds one or more interfaces to a temporary interface group, implementing batch interface configurations. The differences between permanent and temporary interface groups are described as follows:
After a user exits the view of a temporary interface group, the system automatically deletes the member interfaces in the temporary interface group. However, the member interfaces in the permanent interface group can be deleted only by using the undo group-member command.Information about a permanent interface group can be viewed using the display port-group command, whereas information about a temporary interface group cannot.
After a permanent interface group is configured, a configuration file is generated. However, no configuration file is generated after a temporary interface group is configured.
Only Ethernet physical interfaces can be added to a permanent interface group, which supports a maximum of 64 member interfaces.