Huawei Core Switch Routing Priority

Routing priority on Huawei core switches is determined by route attributes like PrefVal for BGP, internal QoS priorities, and priority mapping for packet forwarding.Route Priority in Routing Protocols...

Huawei Core Switch Routing Priority

Routing priority on Huawei core switches is determined by route attributes like PrefVal for BGP, internal QoS priorities, and priority mapping for packet forwarding.

Route Priority in Routing Protocols

Huawei core switches use route attributes and policies to determine which route is preferred when multiple routes exist to the same destination. For BGP, the PrefVal attribute is a Huawei-specific parameter that indicates route priority: a larger PrefVal value gives a higher route priority. PrefVal can be modified through route policies to influence route selection, but changes should be carefully evaluated as they may affect overall routing behavior . Routes are also selected based on standard metrics such as administrative distance, route type (direct, static, dynamic), and next-hop reachability .

Internal Priority Mapping for Packet Forwarding

Huawei switches implement priority mapping to translate external QoS fields into internal priorities used for forwarding decisions. This ensures that packets maintain their service precedence across different network types:

  • 802.1p: Used in VLANs to indicate priority.
  • DSCP: Used in IP networks for differentiated services.
  • MPLS EXP: Used in MPLS networks to mark packet priority. The switch maps these external fields to internal priorities, which are then used to differentiate packet forwarding and scheduling. When sending packets, internal priorities can be mapped back to external fields to maintain QoS across network boundaries .

Configuring Routing and Device Priority

  • Route Policies: You can define route policies to match specific routes and assign PrefVal values, influencing which routes are preferred in the routing table .
  • Device Priority: For Layer 2 protocols like STP/RSTP/MSTP, a device priority can be set to influence root bridge selection. A smaller priority value indicates higher priority for root bridge election .
  • Priority Mapping: Configure priority mapping to ensure consistent QoS treatment across networks, including re-marking 802.1p, DSCP, or MPLS EXP fields based on internal service levels .

Best Practices

  1. Use PrefVal carefully: Only adjust PrefVal in BGP route policies when necessary to influence route selection.
  2. Maintain consistent QoS mapping: Ensure internal priorities align with service-level agreements across VLAN, IP, and MPLS networks.
  3. Monitor routing tables: Verify that route selection aligns with intended priorities and that next-hop reachability is correct.
  4. Layer 2 priority: For STP networks, configure root bridge priorities to ensure high-performance core switches are selected as root. By combining route attributes, internal priority mapping, and device priority settings, Huawei core switches can provide deterministic routing and QoS behavior across complex enterprise networks .
Information
Jul 28, 2025

Understanding Priority Mapping

When packets leave the switch, internal CoS values and colors are mapped to QoS priorities. The switch determines

Information
Aug 11, 2025

Configuring the Route Priority of the Forwarding Plane

To resolve the conflict, the route low-priority enable command is automatically generated in the configuration file of a switch. In actual

Contact Us 3,923
Information
Jan 10, 2026

Understanding IP Routing

A local core routing table stores protocol routes and optimal routes and selects routes based on the priorities of routing protocols and

Contact Us 3,038
Information
Jul 09, 2026

Setting a Priority for OSPF Routes

Version:V200R020C00.This document describes the configurations of IP Unicast Routing, including IP Routing, Static Route, RIP,

Contact Us 4,931
Information
Jan 27, 2026

QoS Configuration

The switch performs priority mapping based on the priority of packets or priority of an interface. Then the switch determines the

Contact Us 3,655
Information
Apr 22, 2026

SME Network Solution Typical Configuration Examples

"Gateway + Core Switch + Access Switch + AP + AR180" Networking: Huawei eKit Cloud Management "Gateway + Core Switch +

Contact Us 7,273
Information
Nov 25, 2025

(Optional) Configuring a Priority for a Device

To ensure the desired device is selected as the root bridge, you can set a high priority for the device. Set low priorities for devices

Information
Nov 18, 2025

(Optional) Configuring Port Priorities

(Optional) Configuring Port Priorities Context In VBST spanning tree calculation, the port path cost, bridge ID of the sending switch,

Contact Us 7,632
Information
Jul 08, 2026

Example for Configuring Priority Re-marking and Queue Scheduling

Example for Configuring Priority Re-marking and Queue Scheduling Overview The device allocates or modifies priorities of received

Contact Us 6,733
Information
Sep 09, 2025

Configuring the BGP Priority

Configuring the BGP Priority Context The routing protocols may share and select routing information because switche s may run

Contact Us 3,556
Information
Feb 13, 2026

Routing Table and FIB Table

S1720, S2700, S5700, and S6720 V200R011C10 Configuration Guide - IP Unicast Routing This document describes IP Unicast

Contact Us 1,637
Information
May 01, 2026

Understanding Priority Mapping

The switch can re-mark priorities of outgoing packets so that the downstream device can provide differentiated QoS based on packet

Contact Us 5,143
Information
Jul 23, 2026

3-HQ Configuration, Huawei VLANif, VLANs, VRRP on Core Switch

Huawei HCIA Datacom Grand Lab (English) Mahmoud Miaari 3-HQ Configuration, Huawei VLANif, VLANs, VRRP on

Contact Us 5,882
Information
Oct 26, 2025

STP attack and Root Protection feature on Huawei switches

Even if the root bridge was configured with priority 0, every switch in this network, with priority 0 and a lower MAC

Contact Us 4,731
Information
Jul 14, 2026

01-03 PRIORITY MAPPING CONFIGURATION

When the switch connects different types of networks, it maps external precedence fields (including 802.1p, MPLS EXP, and DSCP)

Contact Us 1,241
Information
Jul 10, 2026

Priority-based Route Convergence

To improve network reliability, priority-based route convergence is essential. It provides faster route convergence for key services. In

Contact Us 6,798
Information
Jul 31, 2025

Configuring a Routing Policy

The customer requires that the two branches communicate through the core network of the headquarters. A routing

Contact Us 3,405
Information
Nov 28, 2025

What Governs Huawei Switch Stack Priority ? Who Leads When

Wrapping up, Huawei switch stack priority remains a non-negotiable lever for anyone building bulletproof networks. It converts

Contact Us 3,135
Information
Apr 10, 2026

route low-priority enable

Therefore, you need to run the route low-priority enable command to adjust the route priority on the forwarding plane to control

Information
Feb 10, 2026

Route Policy Overview_Enterprise Router-Huawei Cloud

Change the policy values of routes as needed. The size of route tables can be controlled to conserve system

Contact Us 3,449
Information
Oct 30, 2025

01-02 IP ROUTING CONFIGURATION

In a scenario requiring route recursion, when IGP route or tunnel switching occurs, the indirect next hop function helps a device

Contact Us 2,452
Information
Apr 04, 2026

Setting a Priority for OSPF Routes

A priority can be set for each routing protocol running on a switch. When these protocols discover the same route, the route

Contact Us 2,978
Information
Nov 15, 2025

Network Switches | Huawei Enterprise

Huawei Ethernet Switches Turbocharge your enterprise network with high-performance, high-availability for resilient services and

Contact Us 7,196
Information
May 05, 2026

【Huawei S Series Switches Routing Policy】1 Routing Policy

Routing policies are used to filter routes and set route attributes. You can change route attributes (including

Contact Us 6,578
Information
May 04, 2026

Huawei Enterprise Support Community

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

Contact Us 6,942
Information
Apr 26, 2026

Routing Protocol Preference

To select the optimal route, each routing protocol (including static routing) is assigned a preference (a smaller value indicates a

Contact Us 3,364
Information
Dec 18, 2025

Setting a Priority for OSPF Routes

Setting a Priority for OSPF Routes Context A priority can be set for each routing protocol running on a switch. When these protocols

Contact Us 7,422
Information
Jul 14, 2026

(Optional) Configuring Switching Device Priorities

During root bridge selection, a high-performance switching device at a high network layer should be selected as the root bridge;

Contact Us 6,619
Information
Dec 26, 2025

IP Routing Basics

When multiple routing information sources coexist, the route discovered by the routing protocol with the highest preference is

Information
Jul 21, 2026

Configuring Convergence Priorities for IS-IS Routes

Configuring Convergence Priorities for IS-IS Routes Context Devices allow you to configure the highest convergence priority for

Contact Us 5,688

High-Density Interconnect & AI Infrastructure Insights

Need High-Density Interconnect Solutions?

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