< Home

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 indicates an interface range. All interfaces numbered between interface-number1 and interface-number2 are added to the temporary port group.

interface-number2 must be greater than interface-number1.
all-unavailable-interface

Delete all unavailable interfaces from this port-group.

-

Views

Permanent port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If you need to perform the same operations on multiple Ethernet interfaces, configuring each interface one by one easily causes incorrect configurations and is labor-intensive.

The port group function easily solves the problem. You can add all the Ethernet interfaces to the same port group. After you run a configuration command once in the port group view, the configuration takes effect on all the Ethernet interfaces in the port group, reducing the configuration workload.

Prerequisite

Prior to running this command, run the port-group command in the system view to create a permanent interface group.

Configuration Impact

If the group-member command is run more than once, all configurations take effect.

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 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 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.
    • Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support sub-interfaces.

Example

# Add GE0/0/1 and GE0/0/2 to port group portgroup1.
<HUAWEI> system-view
[HUAWEI] port-group portgroup1
[HUAWEI-port-group-portgroup1] group-member gigabitethernet 0/0/1 to gigabitethernet 0/0/2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >