Huawei Switch Routing Access Configuration

Huawei switches can be configured for Layer 3 routing, VLAN management, and port access to serve as gateways for network segments.Layer 3 Routing on Huawei SwitchesHuawei Layer 3 switches can function...

Huawei Switch Routing Access Configuration

Huawei switches can be configured for Layer 3 routing, VLAN management, and port access to serve as gateways for network segments.

Layer 3 Routing on Huawei Switches

Huawei Layer 3 switches can function as both Layer 2 and Layer 3 devices, allowing them to route traffic between VLANs and act as gateways for end devices . To configure routing:

  • Assign an IP address to a VLAN interface:

    interface Vlanif1ip address 172.20.99.38 255.255.255.0quit This sets the switch as the gateway for devices in VLAN 1 .

  • Configure a default route to forward traffic to a router or upstream network:

    ip route-static 0.0.0.0 0.0.0.0 172.20.99.1 This ensures devices can access external networks through the switch .

  • Static routing can be added for specific networks:

    ip route-static <destination-network> <subnet-mask> <next-hop> Dynamic routing protocols like OSPF, RIP, or BGP can also be enabled for automatic route discovery .

VLAN and Port Access Configuration

To manage access and segment traffic:

  • Create VLANs and assign ports:

    vlan 3port ethernet0/1port ethernet0/2 to ethernet0/4 This adds ports to VLAN 3 .

  • Set port link type:

    port link-type accessport default vlan 1 Access ports are used for end devices, while trunk ports carry multiple VLANs .

  • Bind multiple ports simultaneously using interface ranges:

    interface range GigabitEthernet0/0/1 to 0/0/25port link-type accessport default vlan 1quit This simplifies configuration for multiple devices .

Access Control and Management

Huawei switches support user authentication, Telnet/SSH access, and ACLs:

  • Enable SSH or Telnet for remote management.
  • Set user privileges and passwords:

    user-interface vty 0 4authentication-mode passwordset authentication-mode password simple222user privilege level 3quit

  • Configure ACLs to control traffic between VLANs or to external networks .

Verification and Saving Configuration

  • Check VLANs and interfaces:

    display vlandisplay interface GigabitEthernet0/0/1display ip route

  • Save configuration to make changes permanent:

    save

Summary

By combining VLAN assignment, Layer 3 IP configuration, static or dynamic routing, and access control, Huawei switches can serve as both access and routing devices in a campus or enterprise network. This setup allows end devices to communicate across VLANs and access external networks efficiently .

Information
Jan 11, 2026

Huawei Access Router Routers Support Guide, Manuals & PDF – Huawei

Access Router Access Routers: Access product manuals, HedEx documents, product images and visio stencils.

Information
Sep 21, 2025

Huawei switch configuration commands | DOC

The document provides a comprehensive guide on Huawei router and switch configuration commands, detailing various commands

Information
Dec 09, 2025

01-02 IP ROUTING CONFIGURATION

2.1 Route Management Configuration 2.1.1 Overview of Route Management Definition Route management refers to the capability of

Information
May 22, 2026

Example for Configuring a Traffic Policy to Limit Access Between

Configure a traffic policy on the Switch, bind the traffic policy to the traffic classifier and traffic behavior, and apply the

Information
May 29, 2026

Huawei S3700, S5700 and S6700 Switches Support Guide, Manuals

S3700&S5700&S6700 Series: Access product manuals, HedEx documents, product images and visio stencils.

Information
May 23, 2026

Basic Configuration for Interfaces

Basic Configuration for Interfaces This chapter describes interface types, interface numbering rules, and configuration parameters

Information
Dec 03, 2025

Access port config (Huawei)

Design & Configure Access port config (Huawei) Technology: Switching Area: Neighbor Discovery Vendor: Huawei Software: eNSP

Information
Nov 16, 2025

S Series Campus Switches Quick Configuration (V200)

This document describes how to log in Huawei S series switches for the first time and fast configure the switches, and

Information
Oct 01, 2025

Basic IP Routing Configuration

After the configuration is complete, if the L3VE sub-interface is up, run the display ip routing-table vpn-instance vpn-instance-name [

Information
Aug 14, 2025

VLAN Routing with Layer 3 Switch on Huawei ⋆ IpCisco

In our VLAN Routing Huawei Configuration Example, firstly we will configure, each interfaces of the L3 Switch. We will

Information
Apr 07, 2026

Master the Basic Command Configurations of Huawei,

As technology advances, networking switches have become an integral part of the IT

Information
Jun 10, 2026

Basic CLI Commands on Huawei Switch

This text is a guide detailing Basic Command Line Interface (CLI) Commands on Huawei brand switches. It

Information
May 14, 2026

Example for Configuring a Layer 3 Switch to Work with a Router for

It is required that users access the Internet through the Layer 3 switch and router and that the Layer 3 switch function as the gateway

Information
Jul 27, 2025

HUAWEI SWITCH BASIC CONFIGURATIONS WITH EXAMPLE(5

Access port config: An access port belongs to and carries the traffic of only one VLAN within 2-layer switch. Traffic is

Information
Jul 20, 2026

Huawei router and switch connection configuration plan, two

As a leading global ICT solutions provider, Huawei''s router and switch products play a key role in building advanced

Information
Oct 26, 2025

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,

Information
Apr 28, 2026

Configuring Access Port and Trunk Port on Huawei Switch

In this tutorial, we will guide you through the process of configuring access and trunk ports

Information
May 06, 2026

Huawei Switch Configuration Guide | PDF | Internet Protocols

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

Information
Mar 20, 2026

How to Configure Huawei Layer 3 Switch with AR Router for Internet

In enterprise campus networks, a common design is to use a Huawei Layer 3 campus switch as S5730 series, while

Information
Mar 11, 2026

Huawei Switch Configuration Tutorial Basic

Shahed Israr is a Network Engineer specializing in GPON, FTTH, and telecom access network technologies. With

Information
Nov 29, 2025

Example for Configuring a Layer 3 Switch to Work with a Router for

Layer 3 switches provide the routing function, which indicates a network-layer function in the OSI model. Layer 3 switches can work

Information
Sep 08, 2025

Example for Configuring Inter-VLAN Layer 3 Roaming

Example for Configuring Inter-VLAN Layer 3 Roaming Service Requirements Enterprise users can access the

Information
Aug 06, 2025

Huawei Router Basic Configuration Command

This document provides instructions for basic configuration of Huawei routers, including commands to display device information,

Information
Apr 11, 2026

How can I set up the Internet for my new HUAWEI router on my computer

Your router supports broadband sharing. You can use your router to connect several household devices such as your computer,

Information
Jul 11, 2026

Access port config (Huawei)

How to set access port config on Huawei switch? An access port belongs to and carries the traffic of only one VLAN within 2-layer

Fiber Optic Accessories & Infrastructure Insights

Need Reliable Fiber Optic Protection Solutions?

Contact us today for product inquiries, custom assemblies, or technical support