Information

No relevant resource is found in the selected language.

Go to Homepage

Cancel Language Switch

Your browser version is too early. Some functions of the website may be unavailable. To obtain better user experience, upgrade the browser to the latest version.

Enterprise

Worldwide

Login

My Huawei

Logout

Enterprise

Enterprise products, solutions & services

Huawei Cloud

Cloud products, solutions & services

Carrier

Products, Solutions and Services for Carrier

Consumer

Phones, laptops, tablets, wearables & other devices

Corporate

About Huawei, Press & Events , and More

English

Português

Español

简体中文

日本語

Deutsch

Français

Italiano

русский

Türkçe

Products and Solutions

Learning and Tech Support

Partners

How to Buy

About Us

Enterprise

Worldwide

Login

My Huawei

Logout

Back Menu

Products and Solutions

Products

Enterprise Networking

Network Switches

Routers

WLAN

Network Security Products

Campus Network

Data Center Network

WAN Solution

Network Security

Network Management, Control, and Analysis Software

Enterprise Networking Home

Optical Networking

Optical Access

Optical Transmission

Optical Terminal

Optical Sensing

Optical Networking Home

Data Storage

All-Flash Storage

Scale-Out Storage

Hybrid Flash Storage

Hyper-Converged Infrastructure (HCI)

Smart Disk Enclosure

Data Protection

Data Center Storage Consolidation Tool Suite

Datacenter Virtualization(DCS)

Data Storage Home

Computing

Ascend Computing

Intelligent Collaboration

Huawei CloudLink Video Conferencing Platform

HUAWEI IdeaHub S2

HUAWEI IdeaHub Board 2

Intelligent Collaboration Home

Enterprise Wireless

Industry Wireless

Enterprise Microwave

Enterprise Cloud Core

Enterprise Wireless Home

Digital Services

Industry Operation Support Service

Service Home

Management System

eSight ICT Unified Management Systems

Huawei Cloud

HUAWEI CLOUD Stack

Huawei Cloud Home

Product Portfolio

Intelligent Campus

Industries

Airport

Education

Electric Power

Finance

Government

Healthcare

Manufacturing

Mining

Oil and Gas

Railway

Urban Rail

New Products

All Products and Solutions

Resource Center

Back Menu

Learning and Tech Support

Support Center

Online Support

Service
Request

Service Hotlines

Tools

Maintenance
Status

RMA Status

Get License

Warranty

View all Service Support

Product Support

Documentation

Software
Download

Knowledge

Base Bulletins

Multimedia Portal

Info -
Finder

Online
Courses

Multilingual
Documents

Industry Solution Support

Government

Finance

Construction
/ Real Estate

Training and Certification

Learning Resources

Courses
and Classes

Certification

Career Certification

Specialist
Certification

ICT Academy

Introduction of ICT
Academy

Course
Catalog

Practice
Competition

Innovation
Competition

Search ICT
Academy

Learning Partner

Introduction of Learning
Partner

Search HALP

Enterprise Training

Introduction of Enterprise
Training

Digital
Transformation

Digital
Leadership

ICT
Technology

Course Catalog

More Info

Information Center

Technical Support Home

Community

Back Menu

Partners

Become Partner

Join Sales Partner Program

Join Service Partner Program

Join Solution Partner Program

Partner Policy

Partner Policy

Partner Support

Huawei Partner University

Marketing Material Center

One-stop Platform for Marketing Development

Partner Home

Back Menu

How to Buy

Ask the Chatbot

Instantly find the answers to all your questions about Huawei products and
solutions.

Ask Now

Contact Huawei Sales

Looking to make a purchase? Leave your details and we'll be in touch.

Get in Touch

Find a Reseller

Find your local reseller now.

Find a Reseller

How to Buy

Back Menu

About Us

About Huawei Enterprise

News Room

Events

Case
Studies

Video Center

ICT
Insights

Blog

Hot Topics

New Value Together

City of
Intelligence

100 Digital Transformation
Stories

Digital Transformation:
From Strategy to Execution

Contact Us

Global Service
Hotline

Branch
Office

Search

History

Popular search

Switches
Routers
Servers
Storage
Data Center Energy
Cloud Computing

Quick access

Recommended

Support

Documentation

Switches  Data Center Switch  CloudEngine 12800&16800  Configuration & Commissioning  Configuration Examples

Loading...

CloudEngine 16800, 12800, 9800, 8800, 7800, 6800, and 5800 Series Switches Typical Configuration Examples (V100 and V200)

About This Document

Multi-Feature Configuration Examples

Deploying VRRP on a Data Center Network with 3-Layer Architecture

Deploying VRRP on a Data Center Network with 2-Layer Architecture

Configuring a Data Center Network Based on VS and VRRP

Example for Configuring IPv4 VXLAN in Distributed Gateway Deployment Mode

Example for Configuring IPv6 VXLAN in Distributed Gateway Deployment Mode

Example for Configuring VXLAN in Centralized Gateway Mode

Example for Configuring a VXLAN Network Using a Two-Layer Architecture in Distributed Gateway Deployment Mode in a DC

Example for Configuring NFVI Distributed Gateways (Asymmetric Mode)

Example for Configuring NFVI Distributed Gateways (Symmetric Mode)

Example for Configuring M-LAG Lite

Example for Configuring IPv6 M-LAG Lite

Example for Configuring VRRP over VXLAN with Inter-DC Master and Backup Gateways

Configuring M-LAG Dual-Active Distributed Gateways as DHCPv4/DHCPv6 Relay Agents

Configuring M-LAG and Transparent Firewalls

Configuring M-LAG, VSs, and Firewalls in Bypass Mode

Configuring M-LAG and VRRP Across Data Centers

Configuring M-LAG and VRRP/VRRP6 Across Data Centers

Example for Configuring Dynamic Routing Protocols for Communication with an M-LAG

Example for Configuring IPv4 Layer 3 Multicast Over VXLAN When the Multicast Source is Located on an External Network

Configuring an Intelligent Lossless Network

Example for Configuring the INC Function for an Intelligent Lossless Network

Feature-Specific Configuration Examples

Basic Configurations

Example for Deleting the Console Port Password Using BIOS/BootLoader

Logging In to the Device Through STelnet

Logging In to the Device Through STelnet Based on RADIUS Authentication

Logging In to the Device Through STelnet Based on HWTACACS Authentication

Configuring STelnet Login Based on AAA Local Authentication

Virtualization

Configuring a Stack (CE12800, CE12800E, and CE16800)

Configuring VSs

Example for Configuring a CE Switch as a DAD Relay Agent for a Stack of S Switches

Example for Configuring an S Switch as a DAD Relay Agent for a Stack of CE Switches

Device Management

Example for Configuring Clock Synchronization on a Hybrid Network (CE12800E series switches and CloudEngine 16800)

Example for Configuring Clock Synchronization on a Hybrid Network (CE6800 and CE8800 series switches)

Ethernet

Configuring Interface-based VLAN Assignment

Configuring ERPS Multi-instance

Example for Configuring EFM to Detect the ERPS Networking

IP Service

Example for Configuring a DHCP Relay Agent

IP Multicast

Example for Configuring IPv4 PIM-SM in the ASM Model

Example for Configuring IPv4 PIM-SM in the SSM Model

Example for Configuring Anycast RP Using MSDP

Example for Configuring Anycast RP Using IPv4 PIM

Reliability

Configuring BFD for Static Routes

Configuring Dynamic BFD for OSPF

Configuring Dynamic BFD for IS-IS

Example for Configuring BFD for M-LAG

Configuring Multi-Level M-LAG Interconnection

Configuring MSTP and VRRP to Implement Redundancy

Configuring MSTP and VRRP to Implement Load Balancing

Network Management

Querying Information and Maintaining Network Through LLDP

Configuring NTP to Synchronize Time

Configuring Data Center Network Management (RADIUS Authentication)

Configuring Data Center Network Management (HWTACACS Authentication)

Example for Configuring Original Flow Statistics Exporting

Example for Configuring sFlow

Example for Configuring Local Port Mirroring

Example for Configuring Local Traffic Mirroring

PBR

Configuring PBR

VXLAN

Example for Configuring E2E VXLAN to Implement DCI

Example for Configuring VLAN Hand-off to Implement DCI

Configuring Inter-AS Segment VXLAN to Implement Layer 3 Interworking

Example for Configuring Intra-AS Segment VXLAN to Implement Layer 3 Interworking

Example for Configuring Segment VXLAN to Implement Layer 2 Interworking (Local VNI Mode)

Example for Configuring Segment VXLAN to Implement Layer 2 Interworking (Mapping VNI Mode)

Routing Policy

Configuring a Routing Policy

VPN

Configuring a VPN Instance to Forward Service Packets

Example for Configuring Static Routes to Implement Route-based Connectivity Between Public and Private Networks

Security

Configuring an ACL to Control STelnet Client Login Rights

Using User-Defined ACLs to Filter the Specified Packets

Configuring Local Attack Defense

Configuring ARP Security (ARP Anti-Spoofing)

Configuring ARP Security (ARP Anti-Flood)

Configuring Traffic Suppression

Configuring Storm Control

Enter keywords to search.

Rate and give feedback:

Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document.
Note: Even the most advanced machine translation cannot match the quality of professional translators.
Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).

Configuring MSTP and VRRP to Implement Load Balancing

Configuring MSTP and VRRP to Implement Load Balancing

Applicable Products and Versions

This example applies to the CE12800/CE6800 (excluding CE6810LI)/CE5800 V100R001C00 or later, the CE7800 V100R003C00 or later, the CE8800 V100R006C00 or later, the CE9800 V200R020C00 or later, the CloudEngine 16800 V200R005C20 or later, and CE12800E V200R002C50 or later.

For details about the mapping between software versions and switch models, see the Hardware Query Tool.

Networking Requirements

Access switches are dual-homed to core devices on a data center network. The requirements are as follows:

To ensure service reliability, deploy link redundancy. When one uplink is disconnected, traffic can be switched to another uplink. In addition, network bandwidth can be fully used.

Loops caused by link redundancy on the ring network are eliminated.

Figure 2-35 Networking for configuring MSTP and VRRP to implement load balancing

Device

Interface

VLANIF Interface

IP Address

SwitchA

10GE1/0/1 and 10GE1/0/2

VLANIF2

10.1.2.102/24

10GE1/0/1 and 10GE1/0/2

VLANIF3

10.1.3.102/24

10GE1/0/3

VLANIF4

10.1.4.102/24

SwitchB

10GE1/0/1 and 10GE1/0/2

VLANIF2

10.1.2.103/24

10GE1/0/1 and 10GE1/0/2

VLANIF3

10.1.3.103/24

10GE1/0/3

VLANIF5

10.1.5.103/24

Requirement Analysis

Deploy VRRP between SwitchA and SwitchB to implement link redundancy. VRRP load balancing improves link use efficiency.

Deploy MSTP between SwitchA, SwitchB, and SwitchC to eliminate loops.

Procedure

Configure basic MSTP functions.

Configure SwitchA, SwitchB, and SwitchC in the MST region RG1 and create MSTI 1 and MSTI 2.

# Configure an MST region on SwitchA.

<HUAWEI> system-view
[~HUAWEI] sysname SwitchA
[*HUAWEI] commit
[~SwitchA] stp region-configuration
[~SwitchA-mst-region] region-name RG1
[*SwitchA-mst-region] instance 1 vlan 2
[*SwitchA-mst-region] instance 2 vlan 3
[*SwitchA-mst-region] commit
[~SwitchA-mst-region] quit

# Configure an MST region on SwitchB.

<HUAWEI> system-view
[~HUAWEI] sysname SwitchB
[*HUAWEI] commit
[~SwitchB] stp region-configuration
[~SwitchB-mst-region] region-name RG1
[*SwitchB-mst-region] instance 1 vlan 2
[*SwitchB-mst-region] instance 2 vlan 3
[*SwitchB-mst-region] commit
[~SwitchB-mst-region] quit

# Configure an MST region on SwitchC.

<HUAWEI> system-view
[~HUAWEI] sysname SwitchC
[*HUAWEI] commit
[~SwitchC] stp region-configuration
[~SwitchC-mst-region] region-name RG1
[*SwitchC-mst-region] instance 1 vlan 2
[*SwitchC-mst-region] instance 2 vlan 3
[*SwitchC-mst-region] commit
[~SwitchC-mst-region] quit

Configure root bridges and secondary root bridges of MSTI 1 and MSTI 2 in the MST region RG1.

Configure the root bridge and secondary root bridge of MSTI 1.

# Configure SwitchA as the root bridge in MSTI 1.

[~SwitchA] stp instance 1 root primary
[*SwitchA] commit

# Configure SwitchB as the secondary root bridge in MSTI 1.

[~SwitchB] stp instance 1 root secondary
[*SwitchB] commit

Configure the root bridge and secondary root bridge of MSTI 2.

# Configure SwitchB as the root bridge in MSTI 2.

[~SwitchB] stp instance 2 root primary
[*SwitchB] commit

# Configure SwitchA as the secondary root bridge in MSTI 2.

[~SwitchA] stp instance 2 root secondary
[*SwitchA] commit

Set the path costs of the interfaces to be blocked in MSTI 1 and MSTI 2 to be greater than the default value.

The path cost range depends on the algorithm. Huawei proprietary algorithm is used as an example. Set the path costs of the interfaces to be blocked in MSTI 1 and MSTI 2 to 20000.

Switching devices on the same network must use the same algorithm to calculate the path cost of interfaces.

# Configure SwitchA to use Huawei proprietary algorithm to calculate the path cost.

[~SwitchA] stp pathcost-standard legacy
[*SwitchA] commit

# Configure SwitchB to use Huawei proprietary algorithm to calculate the path cost.

[~SwitchB] stp pathcost-standard legacy
[*SwitchB] commit

# Configure SwitchC to use Huawei proprietary algorithm to calculate the default path cost, and set the path cost of 10GE1/0/1 in MSTI 2 to 20000 and path cost of 10GE1/0/4 in MSTI 1 to 20000.

[~SwitchC] stp pathcost-standard legacy
[*SwitchC] interface 10ge 1/0/1
[*SwitchC-10GE1/0/1] stp instance 2 cost 20000
[*SwitchC-10GE1/0/1] commit
[~SwitchC-10GE1/0/1] quit
[~SwitchC] interface 10ge 1/0/4
[~SwitchC-10GE1/0/4] stp instance 1 cost 20000
[*SwitchC-10GE1/0/4] commit
[~SwitchC-10GE1/0/4] quit

Enable MSTP to eliminate loops.

MSTP is enabled by default.

Enable MSTP globally.

# Enable MSTP on SwitchA.

[~SwitchA] stp enable
[*SwitchA] commit

# Enable MSTP on SwitchB.

[~SwitchB] stp enable
[*SwitchB] commit

# Enable MSTP on SwitchC.

[~SwitchC] stp enable
[*SwitchC] commit

Configure ports connected to hosts as edge ports.

# Configure 10GE1/0/2 and 10GE1/0/3 on SwitchC as edge ports.

[~SwitchC] interface 10ge 1/0/2
[~SwitchC-10GE1/0/2] stp edged-port enable
[*SwitchC-10GE1/0/2] commit
[~SwitchC-10GE1/0/2] quit
[~SwitchC] interface 10ge 1/0/3
[~SwitchC-10GE1/0/3] stp edged-port enable
[*SwitchC-10GE1/0/3] commit
[~SwitchC-10GE1/0/3] quit

Enable protection functions on the designated port of each root bridge in each MSTI. Here, root protection is used.

# Enable root protection on 10GE1/0/1 of SwitchA.

[~SwitchA] interface 10ge 1/0/1
[~SwitchA-10GE1/0/1] stp root-protection
[*SwitchA-10GE1/0/1] commit
[~SwitchA-10GE1/0/1] quit

# Enable root protection on 10GE1/0/1 of SwitchB.

[~SwitchB] interface 10ge 1/0/1
[~SwitchB-10GE1/0/1] stp root-protection
[*SwitchB-10GE1/0/1] commit
[~SwitchB-10GE1/0/1] quit

Configure Layer 2 forwarding on switches on the ring network.

Create VLAN 2 and VLAN 3 on SwitchA, SwitchB, and SwitchC.

# Create VLAN 2 and VLAN 3 on SwitchA.

[~SwitchA] vlan batch 2 to 3

# Create VLAN 2 and VLAN 3 on SwitchB.

[~SwitchB] vlan batch 2 to 3

# Create VLAN 2 and VLAN 3 on SwitchC.

[~SwitchC] vlan batch 2 to 3

Add interfaces connecting to the ring to VLANs.

# Add 10GE1/0/1 on SwitchA to VLAN 2 and VLAN 3.

[~SwitchA] interface 10ge 1/0/1
[~SwitchA-10GE1/0/1] port link-type trunk
[*SwitchA-10GE1/0/1] port trunk allow-pass vlan 2 to 3
[*SwitchA-10GE1/0/1] undo port trunk allow-pass vlan 1
[*SwitchA-10GE1/0/1] commit
[~SwitchA-10GE1/0/1] quit

# Add 10GE1/0/2 on SwitchA to VLAN 2 and VLAN 3.

[~SwitchA] interface 10ge 1/0/2
[~SwitchA-10GE1/0/2] port link-type trunk
[*SwitchA-10GE1/0/2] port trunk allow-pass vlan 2 to 3
[*SwitchA-10GE1/0/2] undo port trunk allow-pass vlan 1
[*SwitchA-10GE1/0/2] commit
[~SwitchA-10GE1/0/2] quit

# Add 10GE1/0/1 on SwitchB to VLAN 2 and VLAN 3.

[~SwitchB] interface 10ge 1/0/1
[~SwitchB-10GE1/0/1] port link-type trunk
[*SwitchB-10GE1/0/1] port trunk allow-pass vlan 2 to 3
[*SwitchB-10GE1/0/1] undo port trunk allow-pass vlan 1
[*SwitchB-10GE1/0/1] commit
[~SwitchB-10GE1/0/1] quit

# Add 10GE1/0/2 on SwitchB to VLAN 2 and VLAN 3.

[~SwitchB] interface 10ge 1/0/2
[~SwitchB-10GE1/0/2] port link-type trunk
[*SwitchB-10GE1/0/2] port trunk allow-pass vlan 2 to 3
[*SwitchB-10GE1/0/2] undo port trunk allow-pass vlan 1
[*SwitchB-10GE1/0/2] commit
[~SwitchB-10GE1/0/2] quit

# Add 10GE1/0/1 on SwitchC to VLAN 2 and VLAN 3.

[~SwitchC] interface 10ge 1/0/1
[~SwitchC-10GE1/0/1] port link-type trunk
[*SwitchC-10GE1/0/1] port trunk allow-pass vlan 2 to 3
[*SwitchC-10GE1/0/1] undo port trunk allow-pass vlan 1
[*SwitchC-10GE1/0/1] commit
[~SwitchC-10GE1/0/1] quit

# Add 10GE1/0/2 on SwitchC to VLAN 2 and VLAN 3.

[~SwitchC] interface 10ge 1/0/2
[~SwitchC-10GE1/0/2] port link-type access
[*SwitchC-10GE1/0/2] port default vlan 2
[*SwitchC-10GE1/0/2] commit
[~SwitchC-10GE1/0/2] quit

# Add 10GE1/0/3 on SwitchC to VLAN 2 and VLAN 3.

[~SwitchC] interface 10ge 1/0/3
[~SwitchC-10GE1/0/3] port link-type access
[*SwitchC-10GE1/0/3] port default vlan 3
[*SwitchC-10GE1/0/3] commit
[~SwitchC-10GE1/0/3] quit

# Add 10GE1/0/4 on SwitchC to VLAN 2 and VLAN 3.

[~SwitchC] interface 10ge 1/0/4
[~SwitchC-10GE1/0/4] port link-type trunk
[*SwitchC-10GE1/0/4] port trunk allow-pass vlan 2 to 3
[*SwitchC-10GE1/0/4] undo port trunk allow-pass vlan 1
[*SwitchC-10GE1/0/4] commit
[~SwitchC-10GE1/0/4] quit

Configure devices to ensure network connectivity.

# Assign an IP address to each interface. SwitchA is used as an example. The configuration of SwitchB is similar to that of SwitchA.

[~SwitchA] vlan batch 4
[*SwitchA] interface 10ge 1/0/3
[*SwitchA-10GE1/0/3] port link-type trunk
[*SwitchA-10GE1/0/3] port trunk allow-pass vlan 4
[*SwitchA-10GE1/0/3] undo port trunk allow-pass vlan 1
[*SwitchA-10GE1/0/3] quit
[*SwitchA] interface vlanif 2
[*SwitchA-Vlanif2] ip address 10.1.2.102 24
[*SwitchA-Vlanif2] quit
[*SwitchA] interface vlanif 3
[*SwitchA-Vlanif3] ip address 10.1.3.102 24
[*SwitchA-Vlanif3] quit
[*SwitchA] interface vlanif 4
[*SwitchA-Vlanif4] ip address 10.1.4.102 24
[*SwitchA-Vlanif4] quit
[*SwitchA] commit

# Configure OSPF between SwitchA, SwitchB, and router. SwitchA is used as an example. The configuration of SwitchB is similar to that of SwitchA.

[~SwitchA] ospf 1
[*SwitchA-ospf-1] area 0
[*SwitchA-ospf-1-area-0.0.0.0] network 10.1.2.0 0.0.0.255
[*SwitchA-ospf-1-area-0.0.0.0] network 10.1.3.0 0.0.0.255
[*SwitchA-ospf-1-area-0.0.0.0] network 10.1.4.0 0.0.0.255
[*SwitchA-ospf-1-area-0.0.0.0] quit
[*SwitchA-ospf-1] quit
[*SwitchA] commit

Configure VRRP groups.

# Configure VRRP group 1 on SwitchA and SwitchB, set the priority of SwitchA to 120 and the preemption delay to 20s, and set the default priority for SwitchB.

[~SwitchA] interface vlanif 2
[~SwitchA-Vlanif2] vrrp vrid 1 virtual-ip 10.1.2.100
[*SwitchA-Vlanif2] vrrp vrid 1 priority 120
[*SwitchA-Vlanif2] vrrp vrid 1 preempt-mode timer delay 20
[*SwitchA-Vlanif2] commit
[~SwitchA-Vlanif2] quit
[~SwitchB] interface vlanif 2
[~SwitchB-Vlanif2] vrrp vrid 1 virtual-ip 10.1.2.100
[*SwitchB-Vlanif2] commit
[~SwitchB-Vlanif2] quit

# Configure VRRP group 2 on SwitchA and SwitchB, set the priority of SwitchB to 120 and the preemption delay to 20s, and set the default priority for SwitchA.

[~SwitchB] interface vlanif 3
[~SwitchB-Vlanif3] vrrp vrid 2 virtual-ip 10.1.3.100
[*SwitchB-Vlanif3] vrrp vrid 2 priority 120
[*SwitchB-Vlanif3] vrrp vrid 2 preempt-mode timer delay 20
[*SwitchB-Vlanif3] commit
[~SwitchB-Vlanif3] quit
[~SwitchA] interface vlanif 3
[~SwitchA-Vlanif3] vrrp vrid 2 virtual-ip 10.1.3.100
[*SwitchA-Vlanif3] commit
[~SwitchA-Vlanif3] quit

# Set virtual IP address 10.1.2.100 of VRRP group 1 as the default gateway of HostA, and virtual IP address 10.1.3.100 of VRRP group 2 as the default gateway of HostB.

Verifying the Configuration

# After the configuration is complete, run the display vrrp command on SwitchA. You can see that SwitchA is the master in VRRP group 1 and the backup in VRRP group 2.

<SwitchA> display vrrp verbose
Vlanif2 | Virtual Router 1
State : Master
Virtual IP : 10.1.2.100
Master IP : 10.1.2.102
PriorityRun : 120
PriorityConfig : 120
MasterPriority : 120
Preempt : YES Delay Time : 20 s Remain : --
TimerRun : 1 s
TimerConfig : 1 s
Auth type : NONE
Virtual MAC : 0000-5e00-0101
Check TTL : YES
Config type : normal-vrrp
Create time : 2013-05-11 11:39:18
Last change time : 2013-05-26 11:38:58

Vlanif3 | Virtual Router 2
State : Backup
Virtual IP : 10.1.3.100
Master IP : 10.1.3.103
PriorityRun : 100
PriorityConfig : 100
MasterPriority : 120
Preempt : YES Delay Time : 0 s Remain : --
TimerRun : 1 s
TimerConfig : 1 s
Auth type : NONE
Virtual MAC : 0000-5e00-0102
Check TTL : YES
Config type : normal-vrrp
Create time : 2013-05-11 11:40:18
Last change time : 2013-05-26 11:48:58

Run the display vrrp command on SwitchB. You can see that SwitchB is the backup in VRRP group 1 and the master in VRRP group 2.

<SwitchB> display vrrp verbose
Vlanif2 | Virtual Router 1
State : Backup
Virtual IP : 10.1.2.100
Master IP : 10.1.2.102
PriorityRun : 100
PriorityConfig : 100
MasterPriority : 120
Preempt : YES Delay Time : 0 s Remain : --
TimerRun : 1 s
TimerConfig : 1 s
Auth type : NONE
Virtual MAC : 0000-5e00-0101
Check TTL : YES
Config type : normal-vrrp
Create time : 2012-05-11 11:39:18
Last change time : 2012-05-26 11:38:58

Vlanif3 | Virtual Router 2
State : Master
Virtual IP : 10.1.3.100
Master IP : 10.1.3.103
PriorityRun : 120
PriorityConfig : 120
MasterPriority : 120
Preempt : YES Delay Time : 20 s Remain : --
TimerRun : 1 s
TimerConfig : 1 s
Auth type : NONE
Virtual MAC : 0000-5e00-0102
Check TTL : YES
Config type : normal-vrrp
Create time : 2012-05-11 11:40:18
Last change time : 2012-05-26 11:48:58

Configuration Files

Configuration file of SwitchA

#
sysname SwitchA
#
vlan batch 2 to 4
#
stp instance 1 root primary
stp instance 2 root secondary
stp pathcost-standard legacy
#
stp region-configuration
region-name RG1
instance 1 vlan 2
instance 2 vlan 3
#
interface Vlanif2
ip address 10.1.2.102 255.255.255.0
vrrp vrid 1 virtual-ip 10.1.2.100
vrrp vrid 1 priority 120
vrrp vrid 1 preempt-mode timer delay 20
#
interface Vlanif3
ip address 10.1.3.102 255.255.255.0
vrrp vrid 2 virtual-ip 10.1.3.100
#
interface Vlanif4
ip address 10.1.4.102 255.255.255.0
#
interface 10GE1/0/1
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 3
stp root-protection
#
interface 10GE1/0/2
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 3
#
interface 10GE1/0/3
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 4
#
ospf 1
area 0.0.0.0
network 10.1.2.0 0.0.0.255
network 10.1.3.0 0.0.0.255
network 10.1.4.0 0.0.0.255
#
return

Configuration file of SwitchB

#
sysname SwitchB
#
vlan batch 2 to 3 5
#
stp instance 1 root secondary
stp instance 2 root primary
stp pathcost-standard legacy
#
stp region-configuration
region-name RG1
instance 1 vlan 2
instance 2 vlan 3
#
interface Vlanif2
ip address 10.1.2.103 255.255.255.0
vrrp vrid 1 virtual-ip 10.1.2.100
#
interface Vlanif3
ip address 10.1.3.103 255.255.255.0
vrrp vrid 2 virtual-ip 10.1.3.100
vrrp vrid 2 priority 120
vrrp vrid 2 preempt-mode timer delay 20
#
interface Vlanif5
ip address 10.1.5.103 255.255.255.0
#
interface 10GE1/0/1
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 3
stp root-protection
#
interface 10GE1/0/2
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 3
#
interface 10GE1/0/3
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 5
#
ospf 1
area 0.0.0.0
network 10.1.2.0 0.0.0.255
network 10.1.3.0 0.0.0.255
network 10.1.5.0 0.0.0.255
#
return

Configuration file of SwitchC

#
sysname SwitchC
#
vlan batch 2 to 3
#
stp pathcost-standard legacy
#
stp region-configuration
region-name RG1
instance 1 vlan 2
instance 2 vlan 3
#
interface 10GE1/0/1
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 3
stp instance 2 cost 20000
#
interface 10GE1/0/2
port link-type access
port default vlan 2
stp edged-port enable
#
interface 10GE1/0/3
port link-type access
port default vlan 3
stp edged-port enable
#
interface 10GE1/0/4
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 3
stp instance 1 cost 20000
#
return

Translation

Español

Français

日本語

Русский

简体中文

Favorite

Favorited

Download

Page navigation

Updated: 2023-03-06

Document ID: EDOC1000039339

Views: 551787

Downloads: 10919

Average rating:
4.87 Points

This Document Applies to these Products

Related Version

Related Documents

CloudEngine 12800, 12800E, 8800, 7800, 6800, and 5800 Series Switches High CPU Technical Topics

CloudEngine 12800, 12800E, 8800, 7800, 6800, and 5800 Series Switches ACL Technical Topics

CloudEngine 16800, 8800, and 6800 Series Switches Typical Configuration Examples (V300)

Digital Signature File

Digital Signature Authentication Mode

Share

Operation succeeded,
Click here to view
.

Full screen
Recovery window

Previous

Next

About Us

About Huawei Enterprise

News Room

Events

Contact Us

See More

How to Buy

Get Pricing

Find a Reseller

Chatbot

Partner

Become Partner

Find a Partner

Partner Enablement

See More

Resources

Case Studies

Resource Center

Video Center

ICT Insights

eBlog

Quick Links

Corporate

Consumer

Carrier

Huawei Digital Power

Huawei Cloud

Huawei e+ App

Copyright © 2023 Huawei Technologies Co., Ltd. All rights reserved.

|

Privacy

Terms of use

Cookies

Cookie Settings

You are going to visit :

Feedback

Report Document Error

Select the content with the mouse pointer to quickly report the problem.

Select the content with the mouse pointer to quickly report the problem.

OK, got it

If ICS Lite cannot be started, see the

FAQ

or

Copy the download link.

ICS Lite is not installed or the software version is too early. Your file has been added to the offline download list. You are advised to:

Use

ICS Lite of the latest version

for high-speed download.

Copy the download link.

FAQ:

How do I obtain or upgrade to the latest version of ICS Lite?

How do I use the offline download function of ICS Lite?

Checking ICS Lite... Do not leave this page.

Select the files to download:

File

URL

No data found.

Save To:

OK

Cancel

Duplicate tasks:

URL

Continue

Cancel

OK

Path copied successfully.

High-Speed Download

(ICS Lite must have been installed and started)

Download By Browser

Feedback Close

We use cookies on this site, in order for the site to work properly and to analyse traffic, offer enhanced functionality and personalise content.Learn more

cookie settings

Accept Cookies

Reject Cookies