port-group group-member

Function

The port-group group-member command creates a temporary port group and adds specified Ethernet interfaces to the temporary port group. Commands configured for a temporary port group will be automatically run on all member interfaces.

By default, no temporary port group is created.

Format

port-group group-member { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-10>

Parameters

Parameter Description Value
interface-type interface-number1 [ to interface-type interface-number2 ] Specifies Ethernet interfaces to be added to a temporary port group.

to indicates an interface range. All interfaces numbered between interface-number1 and interface-number2 are added to the temporary port group.

The value of interface-number2 must be larger than the value of interface-number1.

Views

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

Two port group types are available:
  • Temporary port group: To temporarily batch deliver the configuration to multiple specified interfaces, you can configure a temporary port group. After the configuration is batch delivered, the system will delete the temporary port group once you exit from the port group view.
  • Permanent port group: To batch deliver the configuration for multiple times, you can configure a permanent port group. The port group and its port members still exist even if you exit from the port group view. This facilities the next configuration batch configuration. To delete a permanent port group, run the undo port-group { all | port-group-name } command.

Precautions

  • The port-group group-member command is equivalent to the group-member command executed in the permanent port group view. Multiple interfaces can be added to a permanent port group in batches using the group-member command.

  • When you specify the keyword to in the port-group group-member command:

    • The interfaces specified by interface-number1 and interface-number2 must reside on the same LPU. To add contiguous interfaces on different LPUs to the same port group, run this command several times or use the keyword to several times.
    • The interfaces specified by interface-number1 and interface-number2 must be of the same type, for example, both of the interfaces are 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 specified, the preceding limitations do not apply.

Example

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

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