RSTP Configuration on Huawei

huawei-rstp-example-topology

RSTP Configuration on Huawei

In this lessons, we will focus on RSTP (Rapid Spanning Tree Protocol) Configuration on Huawei Switches. For our Huawei RSTP Example, we will use the basic topology below.

huawei-rstp-example-topology

Let’s start to configure RSTP on one of these Huawei Switches, Switch 1.

STP Mode Selection

Firstly, we will configure the mode of used STP. Here, we will configure RSTP, so we will select RSTP.

system-view

[Huawei-Switch-1] stp mode ?

mstp Multiple Spanning Tree Protocol (MSTP) mode
rstp Rapid Spanning Tree Protocol (RSTP) mode
stp Spanning Tree Protocol (STP) mode
[Huawei-Switch-1] stp mode rstp

Switching RSTP Mode

In some situationi we need to switch to RSTP mode. FOr example, if you connect an RSTP configured device to STP configured device and then disconnect them. Because of the fact that, during the configuration both mode will work as STP, the RSTP enabled device will need an RSTP switch. When we use stp mcheck” command, then it will work with RSTP again.

[Huawei-Switch-1] stp mcheck

Bridge Priority Configuration

To manuplate Root Bridge Selection, we wil configure Bridge Priority value of the Switch 1. When we configure the lowest Priority value in this switch, it will be selected as Root Bridge automatically.

The default Bridge Priority is 32768. We will configure Switch 1 Bridge Priority as 4096. So, it will be the lowest one in the network and this will provide Switch 1 as Root Bridge.

[Huawei-Switch-1] stp priority 4096

If we do not manuplate this, the priority values will remain as default, 32768. Acocrding to MAC addresses, the Root Bridge will be selected. So, Switch 2 has the lowest MAC. It would be Root Bridge. Think about that, what if Switch 2 is a very low capacity switch? This can cause a bad network affect.

Edge Port Configuration

In RSTP, we can set Edge Ports for Host devices that is not need to receive and send BPDUs They will not participate in RSTP process.

By default all the ports are in Non Edge Mode. To configure all porst as Edge Port, we will use global “stp edged-port default” command.

[Huawei-Switch-1] stp edged-port default

We can also use “stp edged-port enabled” command under interfaces to set a specific Edge Port.Here, our PC is connected to the Ge 0/0/3, so our edge port is Ge 0/0/3 on Switch 3.

[Huawei-Switch-1] interface GigabitEthernet 0/0/3
[Huawei-Switch-1-GigabitEthernet0/0/3] stp loop-protection

Loop Protection

It is used to prevent one node to receive any BPDU. To do this use “stp loop-protection” command under a specific interface. Here, we will also configure Ge 0/0/3 with this command. Normally a PC do not use BPDU, but a malicious atatck can come from a PC.

[Huawei-Switch-1] interface GigabitEthernet 0/0/3
[Huawei-Switch-1-GigabitEthernet0/0/3] stp loop-protection

Loop Protection is disabled on the interfaces by default.

Root Protection

As a protection mechanism for Root Bridge, we can configure the ports of Root Bridge with “stp root-protection”.

Root Protection is disabled on the interfaces by default.

AS an important note, we can not use both “Root Protection” and Loop Protection” on the same interface.

We're Sorry!

Full Access is for only IPCisco Crew...

With IPCisco Membership, You Can Access:

• All Certification Courses (Cisco, Juniper, Nokia and Huawei),
• Thousands of Questions (Lesson Quizes and Special Quiz Section),
• Carieer Consultancy, CV/Resume Check, Career Advice Meeting,
• Cheat Sheets, Job Interview Trainings, Network Tools,
You will be Member of a Big IPCisco Community,
You will Learn Network Lessons with Always,
New And Different Learning Styles!
We are waiting for you!

Lesson tags: rsvp, HCNA, Huawei, switching
Back to: HCNA > Spanning Tree

Comments are closed.




HCNA