port-group

Function

The port-group command creates a permanent port group and displays the permanent port group view.

The undo port-group command deletes permanent port groups.

By default, no permanent port group is configured.

Format

port-group port-group-name

undo port-group { all | port-group-name }

Parameters

Parameter

Description

Value

port-group-name

Specifies the name of a permanent port group.

The value is a string of 1 to 32 case-insensitive characters without spaces.

NOTE:

A permanent port group cannot be named group or all.

all

Deletes all port groups.

-

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.

Follow-up Procedure

Run the group-member command to add Ethernet interfaces to the created permanent port group.

Precautions

The system supports a maximum of 32 permanent port groups and each port group supports a maximum of 48 member interfaces.

Example

# Create port group portgroup1 and enter the port group view.

<HUAWEI> system-view
[HUAWEI] port-group portgroup1
[HUAWEI-port-group-portgroup1]
Related Topics
display port-group
group-member

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