Inter-VLAN communication of Huawei core switches

Inter-VLAN communication on Huawei core switches is achieved using Layer 3 interfaces such as VLANIF or sub-interfaces, enabling routing between VLANs.OverviewVLANs logically segment a physical LAN in...

Inter-VLAN communication of Huawei core switches

Inter-VLAN communication on Huawei core switches is achieved using Layer 3 interfaces such as VLANIF or sub-interfaces, enabling routing between VLANs.

Overview

VLANs logically segment a physical LAN into multiple broadcast domains, isolating traffic for security and performance. Hosts within the same VLAN can communicate directly at Layer 2, but hosts in different VLANs require Layer 3 routing to exchange data, as broadcast packets are confined to their VLANs . Huawei core switches support inter-VLAN communication primarily through:

  1. VLANIF Interfaces – Layer 3 logical interfaces that act as gateways for each VLAN.
  2. Sub-interfaces (Dot1Q termination) – Allow a single physical interface to route traffic for multiple VLANs.

VLANIF Interface Method

  • Purpose: Each VLANIF interface serves as the default gateway for its VLAN.
  • Configuration Steps:
    1. Create VLANs on the switch.
    2. Assign access ports to the respective VLANs.
    3. Create a VLANIF interface for each VLAN.
    4. Assign an IP address to each VLANIF interface.
    5. Enable routing on the switch (if not already enabled).
  • Advantages: Simple to configure and widely used.
  • Considerations: Each VLANIF consumes an IP address, which may lead to IP address usage inefficiency in large networks . Example configuration snippet:

vlan 10[Switch-vlan10] quit interface vlanif 10[Switch-Vlanif10] ip address 192.168.10.1 24[Switch-Vlanif10] quit

Sub-Interface Method (Dot1Q Termination)

  • Purpose: A single physical Layer 3 interface can handle multiple VLANs using 802.1Q tagging.
  • Configuration Steps:
    1. Configure the physical interface as a Layer 3 interface.
    2. Create sub-interfaces for each VLAN with Dot1Q encapsulation.
    3. Assign IP addresses to each sub-interface.
  • Advantages: Reduces the number of physical interfaces required.
  • Considerations: Traffic from multiple VLANs shares the same physical interface, which may become a bottleneck under heavy load . Example configuration snippet:

interface GigabitEthernet 0/0/1[Switch-GigabitEthernet0/0/1] undo shutdown[Switch-GigabitEthernet0/0/1] interface GigabitEthernet 0/0/1.10[Switch-GigabitEthernet0/0/1.10] encapsulation dot1q 10[Switch-GigabitEthernet0/0/1.10] ip address 192.168.10.1 24

Routing Considerations

  • Static Routing: Suitable for small networks with a limited number of VLANs.
  • Dynamic Routing (e.g., RIP, OSPF): Recommended for larger networks to simplify route management and scalability .
  • Performance: Ensure that the switch has sufficient Layer 3 forwarding capacity to handle inter-VLAN traffic without congestion.

Summary

To enable inter-VLAN communication on Huawei core switches:

  • Use VLANIF interfaces for simplicity and dedicated gateways per VLAN.
  • Use sub-interfaces for scenarios where multiple VLANs share a single physical interface.
  • Assign IP addresses to each Layer 3 interface and configure routing (static or dynamic) to allow traffic between VLANs.
  • Consider network size, IP address usage, and potential interface bottlenecks when choosing the method. This approach ensures efficient Layer 3 connectivity between VLANs while maintaining network segmentation and security.
Factory
Jul 05, 2026

InterVLAN routing using Layer 3 switch | NetworkAcademy.IO

In this lesson, we will learn to configure a multilayer switch (also called Layer 3 switch) to perform inter-VLAN routing, which was

Factory
Aug 01, 2025

01-04 VLAN CONFIGURATION

Switches, routers, and ACs can receive and send both tagged and untagged frames. Voice terminals and APs can receive and send

Factory
Sep 08, 2025

Example for Configuring VLANIF Interfaces to Implement Inter-VLAN

Example for Configuring VLANIF Interfaces to Implement Inter-VLAN Communication Networking Requirements Different user hosts

Factory
Sep 18, 2025

Inter-VLAN Communication

Inter-VLAN Communication Through a Single Device (Using VLANIF Interfaces) In Figure 4-5, Host1 and Host2 connect to DeviceA,

Factory
Mar 20, 2026

Configuring Inter-VLAN Communication

Configuring Inter-VLAN Communication Context After VLANs are assigned, users in the same VLAN can communication with each

Factory
Dec 26, 2025

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

Factory
Jul 13, 2026

Intra-VLAN Communication

If Switch_1 or Switch_2 is a Layer 3 switch, hosts can communicate through VLANIF interfaces. The principles are similar to those in

Factory
Mar 27, 2026

Inter-VLAN Communication

This document describes the configuration of Ethernet services, including configuring link aggregation, VLANs, Voice VLAN, VLAN

Factory
Feb 27, 2026

Inter-VLAN Communication

As shown in Figure 4-20, VLAN 2, VLAN 3, and VLAN 4 are VLANs across different switches. In such a situation, you can configure

Factory
Jan 01, 2026

12 Inter-VLAN Communication

When a sub-interface is used to implement inter-VLAN communication, how does the switch interface connected to the router need

Factory
Aug 23, 2025

Configuring Inter-VLAN Communication

This document describes the configuration of Ethernet services, including configuring link aggregation, VLANs, Voice VLAN, VLAN

Power Grid Optical Insights

Need Reliable Optical Solutions for Power Grids?

Contact us for OPGW, ADSS, hardware, and communication systems – we respond within 24 hours.