The group-member command adds specified Ethernet interfaces to a permanent port group.
The undo group-member command deletes specified Ethernet interfaces from a permanent port group.
By default, no Ethernet interface is added to a permanent port group.
group-member { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-10>
undo group-member { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-10>
undo group-member all-unavailable-interface
| Parameter | Description | Value |
|---|---|---|
| interface-type interface-number1 to interface-type interface-number2 | Adds an Ethernet interface to a permanent port group. to specifies an interface range, indicating all the interfaces numbered between interface-number1 and interface-number2. |
interface-number2 must be greater than interface-number1. |
| all-unavailable-interface | Delete all unavailable interfaces from this port-group. NOTE:
When an interface card where an interface added to a port group
is located is removed, the interface is not removed from the port
group automatically. This interface is called unavailable interface.
You can run the undo group-member all-unavailable-interface command to delete unavailable interfaces from the port group. |
- |
Usage Scenario
When the same configuration needs to be performed on multiple Ethernet interfaces, one-by-one configuration on each interface may result in errors and a large amount of duplicated workload.
The port group function can solve this problem. You can add the Ethernet interfaces to the same port group. After you run the configuration command once in the port group view, the configuration takes effect on all Ethernet interfaces in the port group, reducing your workload.
Precautions
This command has the same function as the port-group group-member and interface range command that is used in the system view. You can also run the port-group group-member command to add interfaces to a temporary port group to configure the interfaces in batches.
When you specify the keyword to in the group-member command: