Huawei Switch How To - Configuring basic STP functions
Click here to load reader
-
Upload
ipmax-srl -
Category
Technology
-
view
1.550 -
download
6
Transcript of Huawei Switch How To - Configuring basic STP functions
HUAWEI SWITCH S5700 - HOW TO
Configuring basic STP functions
HUAWEI SWITCH S5700 HOW TO
HUAWEI SWITCH S5700 - HOW TO
Configuring basic STP functions
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.
SwitchA
Root
Bridge
GE 0/0/1
SwitchB SwitchC
SwitchD
PC1
10.1.1.2/24
PC2
10.1.1.3/24
GE 0/0/1
GE 0/0/2 GE 0/0/2
GE 0/0/3 GE 0/0/3
GE 0/0/1 GE 0/0/1
STP
Blocked port
GE 0/0/2 GE 0/0/2
HUAWEI SWITCH S5700 - HOW TO
Configuring basic STP functions
Configuring the STP mode for the ring network
<Huawei> system-view
[Huawei] sysname SwitchA
[SwitchA] stp mode stp
1. Configure the STP mode for all the switches Enter the configuration view
Configure the switch name
Configure the STP mode
<Huawei> system-view
[Huawei] sysname SwitchB
[SwitchB] stp mode stp
<Huawei> system-view
[Huawei] sysname SwitchC
[SwitchC] stp mode stp <Huawei> system-view
[Huawei] sysname SwitchD
[SwitchD] stp mode stp
HUAWEI SWITCH S5700 - HOW TO
Configuring basic STP functions
Configuring root bridges and blocking ports
2. Configure primary (SwitchA) and secondary (SwitchD) root bridges
Configure the primary root bridge
Configure the secondary root bridge
Enter the interface view
Configure the interface path cost
[SwitchA] stp root primary
[SwitchD] stp root secondary
3. Configure the ports to be blocked (GE0/0/1 of SwitchC)
[SwitchC] interface gigabitethernet 0/0/1
[SwitchC-GigabitEthernet0/0/1] stp cost 200000
[SwitchC-GigabitEthernet0/0/1] quit Exit the interface view
HUAWEI SWITCH S5700 - HOW TO
Configuring basic STP functions
Enabling STP to eliminate loops (1)
4. Disable STP on interfaces connected to PC Enter the interface view
Disable STP on the interface
Enable STP on the switch
Exit the interface view
[SwitchB] interface gigabitethernet 0/0/2
[SwitchB-GigabitEthernet0/0/1] stp disable
[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
[SwitchA] stp enable
[SwitchB] stp enable
[SwitchC] stp enable
[SwitchD] stp enable
HUAWEI SWITCH S5700 - HOW TO
Configuring basic STP functions
Enabling STP to eliminate loops (2)
6. Enable BPDU on all the interfaces except the interfaces connected to terminals
[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
Enter the interface view
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
[SwitchB-GigabitEthernet0/0/3] quit
HUAWEI SWITCH S5700 - HOW TO
Configuring basic STP functions
Enabling STP to eliminate loops (3)
[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
Enter the interface view
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
[SwitchD-GigabitEthernet0/0/2] quit
HUAWEI SWITCH S5700 - HOW TO
Configuring basic STP functions
Checking the configuration 7. Check the stp configuration on all the switches
[SwitchA] display stp brief
MSTID Port Role STP State Protection
0 GigabitEthernet0/0/1 DESI FORWARDING NONE
0 GigabitEthernet0/0/2 DESI FORWARDING NONE
[Huawei] [SwitchB] display stp brief
MSTID Port Role STP State Protection
0 GigabitEthernet0/0/1 DESI FORWARDING NONE
0 GigabitEthernet0/0/3 ROOT FORWARDING NONE
[SwitchB]
[SwitchC] display stp brief
MSTID Port Role STP State Protection
0 GigabitEthernet0/0/1 ALTE DISCARDING NONE
0 GigabitEthernet0/0/3 ROOT FORWARDING NONE
[SwitchC] [SwitchD] display stp brief
MSTID Port Role STP State Protection
0 GigabitEthernet0/0/1 ROOT FORWARDING NONE
0 GigabitEthernet0/0/2 DESI FORWARDING NONE
[SwitchD]
HUAWEI SWITCH S5700 - HOW TO
Configuring basic STP functions
More needs?
See hints on www.ipmax.it
Or email us your questions to [email protected]
HUAWEI SWITCH S5700 - HOW TO
Configuring basic STP functions
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