You are on page 1of 10

HUAWEI SWITCH S5700 - HOW TO

HUAWEI SWITCH S5700 HOW TO


Configuring basic STP functions

HUAWEI SWITCH S5700 - HOW TO

General infos and application environment


Network designers tend to deploy multiple physical links between two
devices (one link is the master and the others are backups) to fulfill
network redundancy requirements. Loops are bound to occur on such
types of complex networks.
Loops will cause broadcast storms, which exhaust network resources
and paralyze the network. Loops also cause MAC address flapping
that damages MAC address entries.
STP can be deployed on a network to eliminate loops by blocking
some ports.
We will use a simple network scenario (see the picture) to show how
basic STP functions work. In our example, after SwitchA, SwitchB,
SwitchC, and SwitchD running STP discover loops by exchanging
information, they trim the ring topology into a loop-free tree topology
by blocking a certain port. STP prevents replication and circular
propagation of packets on the network and the release the switching
devices from processing duplicate packets, improving their processing
performance.

Configuring basic STP functions

SwitchD

GE 0/0/1

GE 0/0/1

SwitchA
Root
Bridge
GE 0/0/2

GE 0/0/2
STP
GE 0/0/3

SwitchC

GE 0/0/3

GE 0/0/1

GE 0/0/1

GE 0/0/2

SwitchB

GE 0/0/2

Blocked port
PC1
10.1.1.2/24

PC2
10.1.1.3/24

HUAWEI SWITCH S5700 - HOW TO

Configuring the STP mode for the ring network


1. Configure the STP mode for all the switches
<Huawei> system-view

Enter the configuration view


Configure the switch name

[Huawei] sysname SwitchA


[SwitchA] stp mode stp

Configure the STP mode

<Huawei> system-view
[Huawei] sysname SwitchB

<Huawei> system-view

[SwitchB] stp mode stp

[Huawei] sysname SwitchC


[SwitchC] stp mode stp

<Huawei> system-view
[Huawei] sysname SwitchD
[SwitchD] stp mode stp

Configuring basic STP functions

HUAWEI SWITCH S5700 - HOW TO

Configuring root bridges and blocking ports


2. Configure primary (SwitchA) and secondary (SwitchD) root bridges
Configure the primary root bridge

[SwitchA] stp root primary


[SwitchD] stp root secondary

Configure the secondary root bridge

3. Configure the ports to be blocked (GE0/0/1 of SwitchC)

Enter the interface view

[SwitchC] interface gigabitethernet 0/0/1


[SwitchC-GigabitEthernet0/0/1] stp cost 200000

[SwitchC-GigabitEthernet0/0/1] quit
Configuring basic STP functions

Configure the interface path cost

Exit the interface view

HUAWEI SWITCH S5700 - HOW TO

Enabling STP to eliminate loops (1)


4. Disable STP on interfaces connected to PC
[SwitchB] interface gigabitethernet 0/0/2
[SwitchB-GigabitEthernet0/0/1] stp disable

Enter the interface view

Disable STP on the interface


Exit the interface view

[SwitchB-GigabitEthernet0/0/1] quit

[SwitchC] interface gigabitethernet 0/0/2


[SwitchC-GigabitEthernet0/0/2] stp disable
[SwitchC-GigabitEthernet0/0/2] quit

5. Enable STP globally on all the switches

Enable STP on the switch

[SwitchA] stp enable


[SwitchB] stp enable
[SwitchC] stp enable
Configuring basic STP functions

[SwitchD] stp enable

HUAWEI SWITCH S5700 - HOW TO

Enabling STP to eliminate loops (2)


6. Enable BPDU on all the interfaces except the interfaces connected to terminals
Enter the interface view

[SwitchA] interface gigabitethernet 0/0/1


[SwitchA-GigabitEthernet0/0/1] bpdu enable
[SwitchA-GigabitEthernet0/0/1] quit
[SwitchA] interface gigabitethernet 0/0/2
[SwitchA-GigabitEthernet0/0/2] bpdu enable
[SwitchA-GigabitEthernet0/0/2] quit

Enable the BPDU


Exit the interface view

[SwitchB] interface gigabitethernet 0/0/1


[SwitchB-GigabitEthernet0/0/1] bpdu enable
[SwitchB-GigabitEthernet0/0/1] quit
[SwitchB] interface gigabitethernet 0/0/3
[SwitchB-GigabitEthernet0/0/3] bpdu enable

Configuring basic STP functions

[SwitchB-GigabitEthernet0/0/3] quit

HUAWEI SWITCH S5700 - HOW TO

Enabling STP to eliminate loops (3)


Enter the interface view

[SwitchC] interface gigabitethernet 0/0/1


[SwitchC-GigabitEthernet0/0/1] bpdu enable
[SwitchC-GigabitEthernet0/0/1] quit
[SwitchC] interface gigabitethernet 0/0/3
[SwitchC-GigabitEthernet0/0/3] bpdu enable
[SwitchC-GigabitEthernet0/0/3] quit

Enable the BPDU


Exit the interface view

[SwitchD] interface gigabitethernet 0/0/1


[SwitchD-GigabitEthernet0/0/1] bpdu enable
[SwitchD-GigabitEthernet0/0/1] quit
[SwitchD] interface gigabitethernet 0/0/2
[SwitchD-GigabitEthernet0/0/2] bpdu enable

Configuring basic STP functions

[SwitchD-GigabitEthernet0/0/2] quit

HUAWEI SWITCH S5700 - HOW TO

Checking the configuration

7. Check the stp configuration on all the switches


[SwitchA] display stp brief
MSTID Port
0
GigabitEthernet0/0/1
0
GigabitEthernet0/0/2
[Huawei]

[SwitchC] display stp brief


MSTID Port
0
GigabitEthernet0/0/1
0
GigabitEthernet0/0/3
[SwitchC]

Role
DESI
DESI

STP State
FORWARDING
FORWARDING

Role
STP State
ALTE DISCARDING
ROOT FORWARDING

Configuring basic STP functions

Protection
NONE
NONE

[SwitchB] display stp brief


MSTID Port
0
GigabitEthernet0/0/1
0
GigabitEthernet0/0/3
[SwitchB]

Role
STP State
DESI FORWARDING
ROOT FORWARDING

Protection
NONE
NONE

[SwitchD] display stp brief


MSTID Port
0
GigabitEthernet0/0/1
0
GigabitEthernet0/0/2
[SwitchD]

Role STP State


ROOT FORWARDING
DESI FORWARDING

Protection
NONE
NONE

Protection
NONE
NONE

HUAWEI SWITCH S5700 - HOW TO


More needs?
See hints on www.ipmax.it
Or email us your questions to info_ipmax@ipmax.it

Configuring basic STP functions

HUAWEI SWITCH S5700 - HOW TO


IPMAX is a Huawei Partner in Italy.
IPMAX is the ideal partner for companies seeking quality in products and services.
IPMAX guarantees method and professionalism to support its customers in selecting
technologies with the best quality / price ratio, in the design, installation,
commissioning and operation.

IPMAX srl
Via Ponchielli, 4
20063 Cernusco sul Naviglio (MI) Italy
+39 02 9290 9171
Configuring basic STP functions

You might also like