< Home

as name interface (port group view)

Function

The as name interface command adds ports on the AS with a specified name to a port group.

The as name-include interface command adds ports on the AS of which the name contains a specified string to a port group.

The undo as name interface command deletes ports on the AS with a specified name from a port group.

The undo as name-include interface command deletes ports on the AS of which the name contains a specified string from a port group.

By default, no ports on an AS are added to a port group.

This command can only be executed on a parent switch.

Format

as name as-name interface { { interface-type interface-number1 [ to interface-number2 ] } &<1-10> | all }

as name-include string interface all

undo as name as-name interface { { interface-type interface-number1 [ to interface-number2 ] } &<1-10> | all }

undo as name-include string interface all

Parameters

Parameter Description Value
as-name

Specifies the name of an AS.

The value must have an existing AS name.

string

Specifies the string contained in an AS name.

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

interface-type interface-number1 [ to interface-number2 ]
Specifies the type and number of AS interfaces.
  • interface-type specifies the interface type. The interface type can be a physical interface, an Eth-Trunk, or a fabric port.
  • interface-number1 specifies the first interface number.
  • interface-number2 specifies the last interface number.

-

all

Indicates all downlink service ports on an AS.

-

Views

Port group view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

After creating a port group, add the AS ports that need to be configured in a batch to the port group.

Precautions

A port can be added to only one port group.

After ports on an AS are added to a port group, to change the port group, run the as name interface command to add the ports to another port group.

A fabric port in a port group takes effect only for a network QoS profile but not for any network basic profile, network enhanced profile, traffic policy profile, or user access profile.

Example

# Add ports on the AS as1 to the port group group_1.

<HUAWEI> system-view
[HUAWEI] uni-mng
[HUAWEI-um] port-group name group_1
[HUAWEI-um-portgroup-group_1] as name as1 interface gigabitethernet 0/0/1 to 0/0/5
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >