Operations 2 min read

Configuring Port Groups and VLAN20 on Huawei Switches

This guide explains how to create a permanent port group on a Huawei aggregation switch, add ten access‑switch interfaces to it, set the ports as trunk, allow VLAN20 traffic, and verify the configuration using display commands.

Practical DevOps Architecture
Practical DevOps Architecture
Practical DevOps Architecture
Configuring Port Groups and VLAN20 on Huawei Switches

The network diagram shows an aggregation switch with 30 downstream access switches, of which ten need to interconnect and permit VLAN20 traffic. To achieve this, the aggregation switch ports GE1/0/1 through GE1/0/10 must be configured to allow VLAN20.

First, create a permanent port group on the Huawei switch:

port-group 1 // create port group 1

Add the required interfaces to the group:

group-member gigabitethernet1/0/1 to gigabitethernet1/0/10 // add GE1/0/1‑GE1/0/10 to port group 1

Set the port type to trunk and allow VLAN20 to pass:

port link-type trunk // configure port as trunk

port trunk allow-pass vlan20 // allow VLAN20 on the trunk ports

Verify the permanent port group members with the display command:

displayport-group [all|port-group-name] // view members of the specified port group

For temporary port groups, the following command can be used, which is equivalent to an interface range command:

port-group group-member gigabitethernet1/0/1 to gigabitethernet1/0/10 // create temporary port group

Equivalent command:

interface range gigabitethernet1/0/1 to gigabitethernet1/0/10 // select the range of interfaces

network configurationswitchHuaweiPort GroupVLAN20
Practical DevOps Architecture
Written by

Practical DevOps Architecture

Hands‑on DevOps operations using Docker, K8s, Jenkins, and Ansible—empowering ops professionals to grow together through sharing, discussion, knowledge consolidation, and continuous improvement.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.