group-member

Function

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.

Format

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

Parameters

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.
-

Views

Port group view

Default Level

2: Configuration level

Usage Guidelines

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

  • Both physical and logical interfaces can be added to a permanent port group.
  • 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:

    • The interfaces specified before and after the keyword to must reside on the same interface card. To add consecutive interfaces on different interface cards to the same port group, run the group-member command or use to multiple times.
    • The interfaces specified before and after the keyword to must be of the same type such as Ethernet interfaces.
    • The interfaces specified before and after the keyword to must have the same attribute. For example, both of them are main interfaces or sub-interfaces. If they are sub-interfaces, they must belong to the same main interface.
    • If to is not used, these limitations do not apply.

Example

# Add GE1/0/1 and GE1/0/2 to port group portgroup1.
<HUAWEI> system-view
[HUAWEI] port-group portgroup1
[HUAWEI-port-group-portgroup1] group-member gigabitethernet 1/0/1 to gigabitethernet 1/0/2
Related Topics
port-group
display port-group

Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.