Article Overview

VLANs on Huawei core switches can be configured by creating VLANs, assigning ports to VLANs, and selecting appropriate interface types such as access, trunk, or hybrid, with optional IP subnet-based VLAN assignment for advanced segmentation.

Overview of VLANs

VLANs (Virtual Local Area Networks) divide a physical LAN into multiple broadcast domains, improving network security, reducing broadcast traffic, and simplifying management . Hosts within the same VLAN can communicate directly, while communication between VLANs requires a router or Layer 3 switch. VLANs can be assigned based on interfaces, MAC addresses, or IP subnets .

Interface Types

Huawei switches support four main interface types for VLAN configuration :

  • Access Interface: Connects end devices; carries traffic for a single VLAN.
  • Trunk Interface: Connects switches; carries traffic for multiple VLANs using VLAN tags.
  • Hybrid Interface: Can carry both tagged and untagged traffic; suitable for mixed environments.
  • QinQ Interface: Supports VLAN stacking for service provider networks.

Basic VLAN Configuration Steps

  1. Enter System View: Access the CLI via console, SSH, or Telnet and enter system view.
  2. Create VLANs: Use the vlan <VLAN_ID> command to create VLANs individually or in batch. Optionally, add a description for clarity .
  3. Configure Ports:
    • Set port type: port link-type access for end devices or port link-type trunk for inter-switch links.
    • Assign ports to VLANs: port default vlan <VLAN_ID> for access ports or port trunk allow-pass vlan <VLAN_LIST> for trunk ports .
  4. Bind VLAN Interfaces (Optional): Assign an IP address to a VLAN interface for management or inter-VLAN routing:

    interface Vlanif1ip address 172.20.99.38 255.255.255.0ip route-static 0.0.0.0 0.0.0.0 172.20.99.1quit

  5. Configure Interface Ranges: For multiple ports, use interface range GigabitEthernet 0/0/1 to 0/0/25 to apply VLAN settings simultaneously .

Advanced VLAN Assignment

  • IP Subnet-Based VLANs: Map IP subnets to VLANs to automatically assign devices to VLANs based on their IP addresses. Enable this on hybrid interfaces and verify with display ip-subnet-vlan vlan all .
  • MAC Address-Based VLANs: Assign VLANs based on device MAC addresses for mobility and security.
  • Policy-Based VLANs: Use policies to dynamically assign VLANs based on protocols or user-defined rules .

Best Practices

  • Use access ports for end devices and trunk ports for switch-to-switch links.
  • Document VLAN IDs and port assignments to simplify management.
  • Consider hybrid interfaces for ports connecting multiple VLANs or mixed devices.
  • Regularly verify VLAN configuration using commands like display vlan and display interface brief. By following these steps, Huawei core switches can be effectively segmented into VLANs, improving network performance, security, and manageability .

Configuring the Core Switch to Be Managed by the Controller (Switch

Context After devices to be managed are added to campus network sites, iMaster NCE-Campus needs to establish

01-04 VLAN CONFIGURATION

VLAN Switch switch-vlan VLAN Switch switch-vlan requires a pre-configured static forwarding path along switching nodes on a

How to Create VLAN on Huawei Switch: Are You Overlooking

Creating a VLAN on a Huawei switch isn''t just a technical task—it''s a strategic move. From blocking hackers with

Huawei switch configuration step by step

How to configure the Huawei Switch configurationLearn the configure Huawei switch

Basic CLI Commands on Huawei Switch

The text covers tasks such as creating a user, VLAN configuration, port settings, enabling SSH and Telnet

VLAN Routing with Layer 2 Switch and Router on Huawei

Huawei VLAN Routing with Layer 2 Switch is done with the help of a Layer 3 device, a router. Mainly, in the router, in layer 3,

VLAN Configuration on Huawei S5720 Switch | PDF

Knowing the CLI commands for VLAN configuration, such as those used on a Huawei S5720 switch, aids in efficient network

Assigning VLANs

In Figure 4-24, to simplify configurations, switches are connected through the trunk link, and switches and user terminals are

VLAN Routing with Layer 3 Switch on Huawei

In this lesson we will learn Layer 3 VLAN Routing with VLAN Routing Huawei Configuration Example. We do not need any other

01-04 VLAN CONFIGURATION

Assign VLANs on Switch_1 and Switch_2, configure Switch_1 and Switch_2 to transparently transmit VLAN packets to the Layer 3

Huawei Switch Configuration Guide

The document provides configuration instructions and commands for basic switch configuration using Huawei switches. It covers

VLAN Principles and Configuration: Huawei Technologies Co., LTD

To meet this requirement, configure interface-based VLAN assignment on the switches and add interfaces connected to PCs with the

Huawei Enterprise Support Community

We''re sorry but web site doesn''t work properly without JavaScript enabled. Please enable it to continue.

9 Query Commands for Huawei Switches

In the modern network environment, switches, as the core equipment of the network, are

VLAN Switch Configuration Commands

After configuring VLAN switching, you can use the display vlan-switch command to verify the configuration. This command displays

VLAN Mapping Configuration Commands

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views,

Assign VLANs Based on IP Subnets in the Huawei Switch

Assign VLANs Based on IP Subnets in the Huawei Switch A data center network has multiple services, including office

Huawei Switch Setup | VLAN Creation and IP Assignment Explained

Learn how to configure VLAN and assign IP addresses on a Huawei Switch step by

Configuring Inter-VLAN Communication

S1720, S2700, S5700, and S6720 V200R011C10 Configuration Guide - Ethernet Switching This document describes the

Huawei S Series Quick Configuration

Small- and Mid-Sized Campus Networks This section uses the S2750 as an access switch (ACC1), S5700 as a core switch (CORE),

How to create VLANs on Huawei switches?

Huawei switches offer a robust and feature-rich solution for enterprise networks, providing high-performance

Step-by-Step Guide to Configure VLAN and Bind Ports on a Huawei

Configuring a Huawei switch to assign an IP address to VLAN 1 and binding multiple ports to it can seem challenging,

Management VLAN

To avoid such risks, configure a VLAN as a management VLAN and prevent access interfaces or Dot1q tunnel interfaces (both of

SME Network Solution Typical Configuration Examples

"Gateway + Core Switch + Aggregation Switch + Access Switch + WAC + AP + AR180" Networking: Local Entire Network

VLAN Configuration Commands

S1720, S2700, S5700, and S6720 V200R011C10 Command Reference This document describes all the configuration commands of

Huawei VLAN Configuration on Huawei Switches ⋆ | Huawei NE40

In this lesson we will learn Huawei VLAN Configuration on Huawei Switches. VLAN Configuration is one of the key lessons for

Configuring a Management VLAN

CloudEngine S5700 V600R022C01 Configuration Guide - Ethernet Switching Configuration About This Document MAC

Configuring the Core Switch

Configure interfaces for interconnecting the core switch with BRASs. # Create interconnection VLANs on the core

Related Resources

Ready to Optimize Your Cable Infrastructure?

Request a free quote for fiber optic cable trays, grid runways, U-steel troughs, aluminum bridges, or complete overhead trunking systems. EU‑owned German factory – reliable, compliant, and cost‑effective solutions for Africa.