The Privilege of HCNA/HCNP/HCIE:: Huawei Training/E-Learning
The Privilege of HCNA/HCNP/HCIE:: Huawei Training/E-Learning
The Privilege of HCNA/HCNP/HCIE:: Huawei Training/E-Learning
With any Huawei Career Certification, you have the privilege on http://learning.huawei.com/en to enjoy:
1、E-Learning Courses: Logon http://learning.huawei.com/en and enter Huawei Training/E-Learning
Content:All Huawei Career Certification E-Learning courses
Methods to get the E-learning privilege : submit Huawei Account and email being used for Huawei Account
registration to [email protected] .
2、 Training Material Download
Content: Huawei product training material and Huawei career certification training material
Method:Logon http://learning.huawei.com/en and enter Huawei Training/Classroom Training ,then you can
download training material in the specific training introduction page.
The Huawei career certification training and product training covering all ICT technical domains like R&S,
UC&C, Security, Storage and so on, which are conducted by Huawei professional instructors
4、Learning Tool:s
eNSP :Simulate single Router&Switch device and large network
WLAN Planner :Network planning tools for WLAN AP products.
In addition, Huawei has built up Huawei Technical Forum which allows candidates to discuss technical issues with
Huawei experts , share exam experiences with others or be acquainted with Huawei Products.
Huawei Certification
HCNP-IESN
Implementing Enterprise Switching Network
Lab Guide
HUAWEI TECHNOLOGIES
HCNP-IESN
Notice
Huawei Certification
Lab Guide
Edition 1.6
HUAWEI TECHNOLOGIES
HCNP-IESN
HUAWEI TECHNOLOGIES
HCNP-IESN
Referenced icon
Serial line
Ethernet line
HUAWEI TECHNOLOGIES
HCNP-IESN
HUAWEI TECHNOLOGIES
HCNP-IESN
CONTENTS
Chapter 1 Implementing VLAN features ............................................................................................. 1
Lab 2-2 Compatibility Between Multi-Region MSTP and STP (Optional) ....................................... 83
HUAWEI TECHNOLOGIES
HCNP-IESN Chapter 1 Implementing VLAN features
Learning Objectives
The objectives of this lab are to learn and understand how to perform
the following operations:
• Configure VLANs.
• Configure Eth-trunks.
Topology
Scenario
Tasks
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R2
[R2]interface GigabitEthernet 0/0/1
[R2-GigabitEthernet0/0/1]ip address 10.0.10.2 24
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R3
[R3]interface GigabitEthernet 0/0/2
[R3-GigabitEthernet0/0/2]ip address 10.0.10.3 24
<Quidway>system-view
Enter system view, return user view with Ctrl+Z.
[Quidway]sysname S2
The Eth-trunk technology bundles two or more links into a single link
to increase the bandwidth and improve reliability. Add the G0/0/9 and
G0/0/10 interfaces of S1 and S2 to an Eth-trunk.
Create an Eth-trunk.
[S1]interface Eth-Trunk 1
[S1-Eth-Trunk1]
[S2]interface Eth-Trunk 1
[S2-Eth-Trunk1]
[S2-Eth-Trunk1]bpdu enable
[S2-Eth-Trunk1]mode lacp-static
Partner:
----------------------------------------------------------------------------
ActorPortName SysPri SystemID PortPri PortNo PortKey PortState
GigabitEthernet0/0/9 32768 4c1f-cc45-aace 32768 9 305 10100010
GigabitEthernet0/0/10 32768 4c1f-cc45-aace 32768 10 305 10100010
[S2-Eth-Trunk1]max active-linknumber 1
Partner:
----------------------------------------------------------------------------
ActorPortName SysPri SystemID PortPri PortNo PortKey PortState
GigabitEthernet0/0/9 32768 4c1f-cc45-aacc 32768 9 305 10111100
GigabitEthernet0/0/10 32768 4c1f-cc45-aacc 32768 10 305 10100000
Partner:
----------------------------------------------------------------------------
ActorPortName SysPri SystemID PortPri PortNo PortKey PortState
GigabitEthernet0/0/9 0 0000-0000-0000 0 0 0 10100011
GigabitEthernet0/0/10 32768 4c1f-cc45-aacc 32768 10 305 10111100
[S2]vlan batch 10 20
[S2]inter Eth-Trunk 1
[S2-Eth-Trunk1]port link-type trunk
[S2-Eth-Trunk1]port trunk allow-pass vlan 10 20
Run the display port vlan command to view the status of the trunk
interface.
GigabitEthernet0/0/4 hybrid 1 -
GigabitEthernet0/0/5 hybrid 1 -
GigabitEthernet0/0/6 hybrid 1 -
GigabitEthernet0/0/7 hybrid 1 -
GigabitEthernet0/0/8 hybrid 1 -
GigabitEthernet0/0/9 hybrid 0 -
GigabitEthernet0/0/10 hybrid 0 -
GigabitEthernet0/0/11 hybrid 1 -
GigabitEthernet0/0/12 hybrid 1 -
GigabitEthernet0/0/13 hybrid 1 -
GigabitEthernet0/0/14 hybrid 1 -
GigabitEthernet0/0/15 hybrid 1 -
GigabitEthernet0/0/16 hybrid 1 -
GigabitEthernet0/0/17 hybrid 1 -
GigabitEthernet0/0/18 hybrid 1 -
GigabitEthernet0/0/19 hybrid 1 -
GigabitEthernet0/0/20 hybrid 1 -
GigabitEthernet0/0/21 hybrid 1 -
GigabitEthernet0/0/22 hybrid 1 -
GigabitEthernet0/0/23 hybrid 1 -
GigabitEthernet0/0/24 hybrid 1 -
Eth-Trunk1 trunk 1 1 10 20
[R2]ping -c 1 10.0.10.3
PING 10.0.10.3: 56 data bytes, press CTRL_C to break
Reply from 10.0.10.3: bytes=56 Sequence=1 ttl=255 time=3 ms
Run the display vlan and display port vlan commands to view
interface status.
[S1]display vlan 20
----------------------------------------------------------------------------
U: Up; D: Down; TG: Tagged; UT: Untagged;
MP: Vlan-mapping; ST: Vlan-stacking;
#: ProtocolTransparent-vlan; *: Management-vlan;
----------------------------------------------------------------------------
VID Type Ports
----------------------------------------------------------------------------
20 common UT:GE0/0/1(U) GE0/0/2(U)
TG:Eth-Trunk1(U)
VID Status Property MAC-LRN Statistics Description
----------------------------------------------------------------------------
20 enable default enable disable VLAN 0020
GigabitEthernet0/0/19 hybrid 1 -
GigabitEthernet0/0/20 hybrid 1 -
GigabitEthernet0/0/21 hybrid 1 -
GigabitEthernet0/0/22 hybrid 1 -
GigabitEthernet0/0/23 hybrid 1 -
GigabitEthernet0/0/24 hybrid 1 -
[S2]display vlan 10
----------------------------------------------------------------------------
U: Up; D: Down; TG: Tagged; UT: Untagged;
MP: Vlan-mapping; ST: Vlan-stacking;
#: ProtocolTransparent-vlan; *: Management-vlan;
----------------------------------------------------------------------------
VID Type Ports
----------------------------------------------------------------------------
10 common UT:GE0/0/3(U)
TG:Eth-Trunk1(U)
VID Status Property MAC-LRN Statistics Description
----------------------------------------------------------------------------
10 enable default enable disable VLAN 0010
GigabitEthernet0/0/18 hybrid 1 -
GigabitEthernet0/0/19 hybrid 1 -
GigabitEthernet0/0/20 hybrid 1 -
GigabitEthernet0/0/21 hybrid 1 -
GigabitEthernet0/0/22 hybrid 1 -
GigabitEthernet0/0/23 hybrid 1 -
GigabitEthernet0/0/24 hybrid 1 -
Run the ping command to test whether the routes from R1 to R2 and
R3 are reachable.
[R1]ping -c 1 10.0.10.2
PING 10.0.10.2: 56 data bytes, press CTRL_C to break
Request time out
[R1]ping -c 1 10.0.10.3
PING 10.0.10.3: 56 data bytes, press CTRL_C to break
Reply from 10.0.10.3: bytes=56 Sequence=1 ttl=255 time=13 ms
[S2]interface Eth-Trunk 1
[S2-Eth-Trunk1]undo port trunk allow-pass vlan 10 20
[S2-Eth-Trunk1]port link-type hybrid
[S2-Eth-Trunk1]port hybrid untagged vlan 20
[S1]display vlan 10
----------------------------------------------------------------------------
[R1]ping -c 1 10.0.10.3
Final Configurations
[S1]display current-configuration
#
!Software Version V100R005C01SPC100
sysname S1
#
vlan batch 10 20
#
stp mode rstp
stp enable
#
undo http server enable
#
interface Eth-Trunk1
port hybrid untagged vlan 10
mode lacp-static
max active-linknumber 1
bpdu enable
#
interface GigabitEthernet0/0/1
port hybrid pvid vlan 10
port hybrid tagged vlan 10
#
interface GigabitEthernet0/0/2
port link-type access
port default vlan 20
#
interface GigabitEthernet0/0/3
shutdown
#
interface GigabitEthernet0/0/4
shutdown
#
interface GigabitEthernet0/0/9
shutdown
eth-trunk 1
#
interface GigabitEthernet0/0/10
eth-trunk 1
#
interface GigabitEthernet0/0/13
shutdown
#
interface GigabitEthernet0/0/14
shutdown
#
interface GigabitEthernet0/0/21
shutdown
#
interface GigabitEthernet0/0/22
shutdown
#
interface GigabitEthernet0/0/23
shutdown
#
Return
[S2]display current-configuration
#
!Software Version V100R005C01SPC100
sysname S2
#
vlan batch 10 20
#
stp mode rstp
stp enable
#
interface Eth-Trunk1
port hybrid untagged vlan 20
mode lacp-static
max active-linknumber 1
bpdu enable
#
interface GigabitEthernet0/0/1
shutdown
#
interface GigabitEthernet0/0/2
shutdown
#
interface GigabitEthernet0/0/3
port hybrid pvid vlan 20
port hybrid tagged vlan 20
#
interface GigabitEthernet0/0/4
shutdown
#
interface GigabitEthernet0/0/5
shutdown
#
interface GigabitEthernet0/0/9
eth-trunk 1
#
interface GigabitEthernet0/0/10
eth-trunk 1
#
interface GigabitEthernet0/0/11
shutdown
#
interface GigabitEthernet0/0/12
shutdown
#
interface GigabitEthernet0/0/13
shutdown
#
interface GigabitEthernet0/0/23
shutdown
#
interface GigabitEthernet0/0/24
shutdown
#
return
(Optional)
Learning Objectives
The objectives of this lab are to learn and understand how to perform
the following operations:
Topology
Scenario
Tasks
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R2
[R2]interface g0/0/1
[R2-GigabitEthernet0/0/1]ip address 10.0.10.2 24
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R3
[R3]interface g0/0/1
[R3-GigabitEthernet0/0/1]ip address 10.0.10.3 24
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R4
[R4]interface g0/0/2
[R4-GigabitEthernet0/0/2]ip address 10.0.10.4 24
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R5
[R5]interface g0/0/2
<Quidway>system-view
Enter system view, return user view with Ctrl+Z.
[Quidway]sysname S1
[S1]
<Quidway>system-view
Enter system view, return user view with Ctrl+Z.
[Quidway]sysname S2
[S2]
Test whether the routes from R1 to R2, R3, R4, and R5 are reachable.
[R1]ping -c 1 10.0.10.2
PING 10.0.10.2: 56 data bytes, press CTRL_C to break
Reply from 10.0.10.2: bytes=56 Sequence=1 ttl=255 time=14 ms
[R1]ping -c 1 10.0.10.3
PING 10.0.10.3: 56 data bytes, press CTRL_C to break
Reply from 10.0.10.3: bytes=56 Sequence=1 ttl=255 time=5 ms
[R1]ping -c 1 10.0.10.4
PING 10.0.10.4: 56 data bytes, press CTRL_C to break
Reply from 10.0.10.4: bytes=56 Sequence=1 ttl=255 time=15 ms
[R1]ping -c 1 10.0.10.5
PING 10.0.10.5: 56 data bytes, press CTRL_C to break
Reply from 10.0.10.5: bytes=56 Sequence=1 ttl=255 time=6 ms
[S2]interface g0/0/9
[S2-GigabitEthernet0/0/9]port link-type trunk
[S2-GigabitEthernet0/0/9]port trunk allow-pass vlan all
[S2]gvrp
[S2]display vlan
The total number of vlans is : 4
----------------------------------------------------------------------------
U: Up; D: Down; TG: Tagged; UT: Untagged;
MP: Vlan-mapping; ST: Vlan-stacking;
#: ProtocolTransparent-vlan; *: Management-vlan;
----------------------------------------------------------------------------
VID Type Ports
----------------------------------------------------------------------------
1 common UT:GE0/0/1(U) GE0/0/2(U) GE0/0/3(U) GE0/0/4(U)
GE0/0/5(U) GE0/0/6(D) GE0/0/7(D) GE0/0/8(D)
GE0/0/9(U) GE0/0/10(D) GE0/0/11(D) GE0/0/12(D)
GE0/0/13(D) GE0/0/14(D) GE0/0/15(D) GE0/0/16(D)
GE0/0/17(D) GE0/0/18(D) GE0/0/19(D) GE0/0/20(D)
GE0/0/21(D) GE0/0/22(D) GE0/0/23(D) GE0/0/24(D)
10 common TG:GE0/0/9(U)
20 common TG:GE0/0/9(U)
100 common TG:GE0/0/9(U)
The preceding information shows that S2 does not learn the VLAN
information about S1.
[S2]vlan 100
[S2-vlan100]mux-vlan
[S2-vlan100]subordinate group 10
[S2-vlan100]subordinate separate 20
100 - principal
100 20 separate GigabitEthernet0/0/3
100 10 group GigabitEthernet0/0/1 GigabitEthernet0/0/2
[S2]display mux-vlan
Principal Subordinate Type Interface
----------------------------------------------------------------------------
100 - principal GigabitEthernet0/0/5
100 20 separate GigabitEthernet0/0/4
100 10 group
----------------------------------------------------------------------------
Run the ping command to test whether the routes from R1 to R2, R3,
R4, and R5 are reachable.
[R1]ping -c 1 10.0.10.2
PING 10.0.10.2: 56 data bytes, press CTRL_C to break
Reply from 10.0.10.2: bytes=56 Sequence=1 ttl=255 time=3 ms
[R1]ping -c 1 10.0.10.3
PING 10.0.10.3: 56 data bytes, press CTRL_C to break
Request time out
[R1]ping -c 1 10.0.10.4
PING 10.0.10.4: 56 data bytes, press CTRL_C to break
Request time out
[R1]ping -c 1 10.0.10.5
PING 10.0.10.5: 56 data bytes, press CTRL_C to break
Reply from 10.0.10.5: bytes=56 Sequence=1 ttl=255 time=3 ms
Run the ping command to test whether the routes from R3 to R2, R4,
and R5 are reachable.
[R3]ping -c 1 10.0.10.2
PING 10.0.10.2: 56 data bytes, press CTRL_C to break
Request time out
[R3]ping -c 1 10.0.10.4
PING 10.0.10.4: 56 data bytes, press CTRL_C to break
Request time out
[R3]ping -c 1 10.0.10.5
PING 10.0.10.5: 56 data bytes, press CTRL_C to break
Reply from 10.0.10.5: bytes=56 Sequence=1 ttl=255 time=3 ms
Configure the interface type and default VLAN for the G0/0/24
interface of S2. Assume that the voice device belongs to VLAN 30.
[S2]interface GigabitEthernet 0/0/24
[S2-GigabitEthernet0/0/24]port hybrid pvid vlan 30
[S2-GigabitEthernet0/0/24]port hybrid untagged vlan 30
Run the display voice-vlan oui command to view the OUI address of
the voice VLAN.
[S2]display voice-vlan oui
---------------------------------------------------
OuiAddress Mask Description
---------------------------------------------------
0011-2200-0000 ffff-ff00-0000
Final Configurations
[S1]display current-configuration
#
!Software Version V100R006C00SPC800
sysname S1
#
vlan batch 10 20 30 100
#
gvrp
#
vlan 100
mux-vlan
subordinate separate 20
subordinate group 10
#
interface GigabitEthernet0/0/1
port link-type access
port default vlan 10
[S2]display current-configuration
#
!Software Version V100R006C00SPC800
sysname S2
#
voice-vlan mac-address 0011-2200-0000 mask ffff-ff00-0000
#
Learning Objectives
The objectives of this lab are to learn and understand how to perform
the following operations:
Topology
Scenario
Tasks
<huawei>system-view
Enter system view, return user view with Ctrl+Z.
[huawei]sysname R2
[R2]interface GigabitEthernet 0/0/2
[R2-GigabitEthernet0/0/2]ip address 10.0.3.2 24
<Quidway>system-view
Enter system view, return user view with Ctrl+Z.
[Quidway]sysname S1
[S1]interface GigabitEthernet 0/0/9
[S1-GigabitEthernet0/0/10]undo shutdown
<Quidway>system-view
Enter system view, return user view with Ctrl+Z.
[Quidway]sysname S2
[S2]interface GigabitEthernet 0/0/9
[S2-GigabitEthernet0/0/10]undo shutdown
<huawei>system-view
Enter system view, return user view with Ctrl+Z.
[huawei]sysname R4
[R4]interface GigabitEthernet 0/0/1
[R4-GigabitEthernet0/0/1]ip address 10.0.2.1 24
[R4-GigabitEthernet0/0/1]interface GigabitEthernet 0/0/2
[R4-GigabitEthernet0/0/2]ip address 10.0.3.1 24
Run the ping command to test whether the route from R1 to the
G0/0/1 interface of R4 is reachable.
[R1]ping -c 1 10.0.2.1
PING 10.0.2.1: 56 data bytes, press CTRL_C to break
Reply from 10.0.2.1: bytes=56 Sequence=1 ttl=255 time=4 ms
Run the ping command to test whether the route from R2 to the
G0/0/2 interface of R4 is reachable.
[R2]ping -c 1 10.0.3.1
PING 10.0.3.1: 56 data bytes, press CTRL_C to break
Reply from 10.0.3.1: bytes=56 Sequence=1 ttl=255 time=3 ms
[S2]vlan batch 2 3
Info: This operation may take a few seconds. Please wait for a moment...done.
----------------------------------------------------------------------------
VID Type Ports
----------------------------------------------------------------------------
2 common UT:GE0/0/1(U) GE0/0/4(U)
VID Status Property MAC-LRN Statistics Description
----------------------------------------------------------------------------
2 enable default enable disable VLAN 0002
[S2]display vlan 3
----------------------------------------------------------------------------
U: Up; D: Down; TG: Tagged; UT: Untagged;
MP: Vlan-mapping; ST: Vlan-stacking;
#: ProtocolTransparent-vlan; *: Management-vlan;
----------------------------------------------------------------------------
VID Type Ports
----------------------------------------------------------------------------
3 common UT:GE0/0/2(U) GE0/0/4(U)
VID Status Property MAC-LRN Statistics Description
----------------------------------------------------------------------------
3 enable default enable disable VLAN 0003
[R2]ping -c 1 10.0.2.2
PING 10.0.2.2: 56 data bytes, press CTRL_C to break
Reply from 10.0.2.2: bytes=56 Sequence=1 ttl=254 time=3 ms
[R1]ping -c 1 10.0.30.2
Create VLAN 10, VLAN 20, and VLAN 100 on S1 and S2.
[S1]vlan batch 10 20 100
Info: This operation may take a few seconds. Please wait for a moment...done.
Configure a VLANIF interface for VLAN 100 and enable the ARP proxy
function.
[S1]interface Vlanif 100
[S1-Vlanif100]ip address 10.0.100.1 24
[S1-Vlanif100]arp-proxy inter-sub-vlan-proxy enable
Test whether the routes from R1 and R2 to the VLANIF 100 interface
of S1 are reachable.
[R1]ping -c 1 10.0.100.1
PING 10.0.100.1: 56 data bytes, press CTRL_C to break
Reply from 10.0.100.1: bytes=56 Sequence=1 ttl=254 time=3 ms
[R1]ping -c 1 10.0.100.3
PING 10.0.100.3: 56 data bytes, press CTRL_C to break
Reply from 10.0.100.3: bytes=56 Sequence=1 ttl=254 time=2 ms
[R2]pin -c 1 10.0.100.1
PING 10.0.100.1: 56 data bytes, press CTRL_C to break
Reply from 10.0.100.1: bytes=56 Sequence=1 ttl=254 time=3 ms
Final Configurations
[S1]display current-configuration
#
!Software Version V100R006C00SPC800
sysname S1
#
vlan batch 2 to 3 10 20 100
#
vlan 100
aggregate-vlan
access-vlan 10 20
#
interface Vlanif2
ip address 10.0.20.1 255.255.255.0
#
interface Vlanif3
ip address 10.0.30.1 255.255.255.0
#
interface Vlanif100
ip address 10.0.100.1 255.255.255.0
arp-proxy inter-sub-vlan-proxy enable
#
interface GigabitEthernet0/0/1
port link-type access
port default vlan 10
undo ntdp enable
undo ndp enable
bpdu disable
#
interface GigabitEthernet0/0/4
shutdown
port link-type trunk
port trunk allow-pass vlan 2 to 3
undo ntdp enable
[S2]display current-configuration
#
!Software Version V100R006C00SPC800
sysname S2
#
vlan batch 2 to 3 10 20 100
#
interface GigabitEthernet0/0/2
port link-type access
port default vlan 20
undo ntdp enable
undo ndp enable
bpdu disable
#
interface GigabitEthernet0/0/4
shutdown
port link-type access
port default vlan 3
undo ntdp enable
undo ndp enable
bpdu disable
#
interface GigabitEthernet0/0/9
port link-type trunk
port trunk allow-pass vlan 2 to 3 10 20
[R4]display current-configuration
[V200R001C00SPC500]
#
sysname R4
#
interface GigabitEthernet0/0/1
ip address 10.0.2.1 255.255.255.0
#
interface GigabitEthernet0/0/1.2
control-vid 20 dot1q-termination
dot1q termination vid 2
ip address 10.0.20.1 255.255.255.0
arp broadcast enable
#
interface GigabitEthernet0/0/1.3
control-vid 30 dot1q-termination
dot1q termination vid 3
ip address 10.0.30.1 255.255.255.0
arp broadcast enable
#
interface GigabitEthernet0/0/0
ip address 10.0.3.1 255.255.255.0
#
Return
Learning Objectives
The objectives of this lab are to learn and understand how to perform
the following operations:
• Configure SEP.
Topology
Scenario
Tasks
Configure names for all devices and disable the E0/0/1 interface of S4
to avoid affecting the experiment.
<Quidway>system-view
Enter system view, return user view with Ctrl+Z.
[Quidway]sysname S1
[S1]
<Quidway>system-view
Enter system view, return user view with Ctrl+Z.
[Quidway]sysname S2
[S2]
<Quidway>system-view
Enter system view, return user view with Ctrl+Z.
[Quidway]sysname S3
[S3]
<Quidway>system-view
Enter system view, return user view with Ctrl+Z.
[Quidway]sysname S4
[S4]interface Ethernet 0/0/1
[S4-Ethernet0/0/1]shutdown
[S2]sep segment 1
[S2-sep-segment1]control-vlan 10
[S2-sep-segment1]protected-instance all
[S2-sep-segment1]quit
[S2]sep segment 2
[S2-sep-segment2]control-vlan 20
[S2-sep-segment2]protected-instance all
[S3]sep segment 2
[S3-sep-segment2]control-vlan 20
[S3-sep-segment2]protected-instance all
[S4]sep segment 2
[S4-sep-segment2]control-vlan 20
[S4-sep-segment2]protected-instance all
Add interfaces to the SEP network segment and configure roles for
the interfaces.
[S1]interface GigabitEthernet 0/0/9
[S1-GigabitEthernet0/0/9]stp disable
[S1-GigabitEthernet0/0/9]sep segment 1 edge primary
[S1-GigabitEthernet0/0/9]interface GigabitEthernet 0/0/10
[S1-GigabitEthernet0/0/10]stp disable
[S1-GigabitEthernet0/0/10]sep segment 1 edge secondary
[S1-GigabitEthernet0/0/10]interface GigabitEthernet 0/0/13
[S1-GigabitEthernet0/0/13]stp disable
[S1-GigabitEthernet0/0/13]sep segment 2 edge primary
[S1]sep segment 1
[S1-sep-segment1]preempt delay 30
[S1-sep-segment1]quit
[S1]sep segment 2
[S1-sep-segment2]preempt delay 30
[S2]sep segment 2
[S2-sep-segment2]tc-notify segment 1
SEP segment 2
-----------------------------------------------------------------
System Name Port Name Port Role Port Status
-----------------------------------------------------------------
S1 GE0/0/13 primary forwarding
S3 Eth0/0/13 common forwarding
S3 Eth0/0/23 common forwarding
S2 GE0/0/23 secondary discarding
SEP segment 2
-----------------------------------------------------------------
System Name Port Name Port Role Port Status
-----------------------------------------------------------------
S1 GE0/0/13 primary forwarding
S3 Eth0/0/13 common forwarding
S3 Eth0/0/23 common forwarding
S2 GE0/0/23 secondary discarding
SEP segment 2
-----------------------------------------------------------------
System Name Port Name Port Role Port Status
-----------------------------------------------------------------
S1 GE0/0/13 primary forwarding
S3 Eth0/0/13 common forwarding
S3 Eth0/0/23 common discarding
S2 GE0/0/23 secondary forwarding
[S2]vlan 100
[S2-vlan100]quit
Disable Spanning Tree Protocol (STP) for the E0/0/14 and E0/0/24
interfaces of S4.
[S4]interface Ethernet 0/0/14
[S4-Ethernet0/0/14]stp disable
[S4-Ethernet0/0/14]interface ethe0/0/24
[S4-Ethernet0/0/24]stp disable
Enable the function of sending Flush packets on S4, and the function
of receiving Flush packets on S1 and S2.
[S4]smart-link group 1
[S4-smlk-group1]flush send control-vlan 100 password simple huawei
Link.
[S2]sep segment 1
[S2-sep-segment1]deal smart-link-flush
Compare SEP and STP, and figure out their respective strong points
and drawbacks.
Final Configurations
[S1]display current-configuration
#
!Software Version V100R006C00SPC800
sysname S1
#
vlan batch 10 20 100
#
sep segment 1
control-vlan 10
block port optimal
preempt delay 30
protected-instance 0 to 48
deal smart-link-flush
sep segment 2
control-vlan 20
block port optimal
preempt delay 30
tc-notify segment 1
protected-instance 0 to 48
#
interface GigabitEthernet0/0/9
port hybrid tagged vlan 10
stp disable
sep segment 1 edge primary
#
interface GigabitEthernet0/0/10
port hybrid tagged vlan 10
stp disable
sep segment 1 edge secondary
#
interface GigabitEthernet0/0/13
port hybrid tagged vlan 20
stp disable
sep segment 2 edge primary
#
interface GigabitEthernet0/0/14
port link-type trunk
port trunk allow-pass vlan 100
smart-link flush receive control-vlan 100 password simple huawei
#
Return
[S2]display current-configuration
#
!Software Version V100R006C00SPC800
sysname S2
#
vlan batch 10 20 100
#
sep segment 1
control-vlan 10
protected-instance 0 to 48
deal smart-link-flush
sep segment 2
control-vlan 20
tc-notify segment 1
protected-instance 0 to 48
#
interface GigabitEthernet0/0/9
port hybrid tagged vlan 10
stp disable
sep segment 1
#
interface GigabitEthernet0/0/10
port hybrid tagged vlan 10
stp disable
sep segment 1
[S3]display current-configuration
#
!Software Version V100R006C00SPC800
sysname S3
#
vlan batch 20
#
sep segment 2
control-vlan 20
protected-instance 0 to 48
#
#
interface Ethernet0/0/13
port hybrid tagged vlan 20
stp disable
sep segment 2
#
interface Ethernet0/0/23
port hybrid tagged vlan 20
stp disable
sep segment 2
sep segment 2 priority 128
#
Return
[S4]display current-configuration
#
!Software Version V100R006C00SPC800
sysname S4
#
vlan batch 20 100
#
sep segment 2
control-vlan 20
protected-instance 0 to 48
#
interface Ethernet0/0/1
shutdown
#
interface Ethernet0/0/14
shutdown
port link-type trunk
port trunk allow-pass vlan 100
stp disable
#
interface Ethernet0/0/24
port link-type trunk
port trunk allow-pass vlan 100
stp disable
#
smart-link group 1
restore enable
smart-link enable
port Ethernet0/0/14 master
port Ethernet0/0/24 slave
timer wtr 30
flush send control-vlan 100 password simple huawei
#
Return
Learning Objectives
The objectives of this lab are to learn and understand how to perform
the following operations:
(MSTP).
Topology
Scenario
Tasks
If the device default spanning tree is not turned on, use the following
command to open. Configuration using the STP:
<Quidway>system-view
<Quidway>system-view
Enter system view, return user view with Ctrl+Z.
[Quidway]sysname S2
[S2]stp enable
[S2]stp mode stp
<Quidway>system-view
Enter system view, return user view with Ctrl+Z.
[Quidway]sysname S3
[S3]stp enable
[S3]stp mode stp
<Quidway>system-view
Enter system view, return user view with Ctrl+Z.
[Quidway]sysname S4
[S4]stp enable
[S4]stp mode stp
[S2]display stp
-------[CIST Global Info][Mode STP]-------
CIST Bridge :32768.4c1f-cc45-aac1
Bridge Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
[S2]display stp
-------[CIST Global Info][Mode STP]-------
CIST Bridge :4096 .4c1f-cc45-aac1
Bridge Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC :0 .4c1f-cc45-aadc / 20000
CIST RegRoot/IRPC :4096 .4c1f-cc45-aac1 / 0
CIST RootPortId :128.9
BPDU-Protection :Disabled
CIST Root Type :Secondary root
TC or TCN received :26
TC count per hello :0
STP Converge Mode :Normal
Share region-configuration :Enabled
Time since last TC :0 days 0h:0m:1s
……output omit……
[S2]display stp
-------[CIST Global Info][Mode STP]-------
CIST Bridge :4096 .4c1f-cc45-aac1
Bridge Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC :4096 .4c1f-cc45-aac1 / 0
CIST RegRoot/IRPC :4096 .4c1f-cc45-aac1 / 0
CIST RootPortId :0.0
BPDU-Protection :Disabled
TC or TCN received :88
TC count per hello :0
STP Converge Mode :Normal
Share region-configuration :Enabled
Time since last TC :0 days 0h:0m:9s
……output omit……
The default priority is 128. The lower the priority value, the larger the
priority.
S1 interconnects with S2 over the G0/0/9 and G0/0/10 interfaces.
Set the priority to 32 for the G0/0/9 interface of S2 and to 16 for the
G0/0/10 interface.
[S2]interface GigabitEthernet 0/0/9
[S2-GigabitEthernet0/0/9]stp port priority 32
[S2-GigabitEthernet0/0/9]interface GigabitEthernet 0/0/10
[S2-GigabitEthernet0/0/10]stp port priority 16
----[CIST][Port1(Ethernet0/0/1)][FORWARDING]----
Port Protocol :Enabled
Port Role :Designated Port
Port Priority :128
Port Cost(Dot1T ) :Config=auto / Active=199999
Designated Bridge/Port :32768.5489-98ec-f00a / 128.1
Port Edged :Config=default / Active=disabled
Point-to-point :Config=auto / Active=true
Transit Limit :147 packets/hello-time
Protection Type :None
Port STP Mode :STP
Port Protocol Type :Config=auto / Active=dot1s
PortTimes :Hello 2s MaxAge 20s FwDly 15s RemHop 20
TC or TCN send :37
TC or TCN received :17
BPDU Sent :181
TCN: 0, Config: 181, RST: 0, MST: 0
BPDU Received :172
TCN: 0, Config: 172, RST: 0, MST: 0
[S2]interface Vlanif 1
[S2-Vlanif1]ip address 10.0.1.2 24
[S1]ping 10.0.1.2
PING 10.0.1.2: 56 data bytes, press CTRL_C to break
Reply from 10.0.1.2: bytes=56 Sequence=1 ttl=255 time=9 ms
Reply from 10.0.1.2: bytes=56 Sequence=2 ttl=254 time=1 ms
Reply from 10.0.1.2: bytes=56 Sequence=3 ttl=254 time=1 ms
Reply from 10.0.1.2: bytes=56 Sequence=4 ttl=254 time=1 ms
Reply from 10.0.1.2: bytes=56 Sequence=5 ttl=254 time=1 ms
Configure RSTP.
[S1]stp mode rstp
20 packet(s) transmitted
5 packet(s) received
75.00% packet loss
round-trip min/avg/max = 1/3/15 ms
[S2]vlan batch 1 to 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[S2]interface GigabitEthernet 0/0/9
[S2-GigabitEthernet0/0/9]port link-type trunk
[S2-GigabitEthernet0/0/9]port trunk allow-pass vlan 1 TO 20
[S2-GigabitEthernet0/0/9]interface GigabitEthernet 0/0/10
[S2-GigabitEthernet0/0/10]port link-type trunk
[S2-GigabitEthernet0/0/10]port trunk allow-pass vlan 1 TO 20
[S2-GigabitEthernet0/0/10]interface GigabitEthernet 0/0/23
[S2-GigabitEthernet0/0/23]port link-type trunk
[S2-GigabitEthernet0/0/23]port trunk allow-pass vlan 1 TO 20
[S2-GigabitEthernet0/0/23]interface GigabitEthernet 0/0/24
[S2-GigabitEthernet0/0/24]port link-type trunk
[S2-GigabitEthernet0/0/24]port trunk allow-pass vlan 1 TO 20
[S3]vlan batch 1 to 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[S3]interface Ethernet0/0/1
[S3-Ethernet0/0/1]port link-type trunk
[S3-Ethernet0/0/1]port trunk allow-pass vlan 1 TO 20
[S3-Ethernet0/0/1]interface Ethernet0/0/13
[S3-Ethernet0/0/13]port link-type trunk
[S3-Ethernet0/0/13]port trunk allow-pass vlan 1 TO 20
[S3-Ethernet0/0/13]interface Ethernet0/0/23
[S3-Ethernet0/0/23]port link-type trunk
[S3-Ethernet0/0/23]port trunk allow-pass vlan 1 TO 20
[S4]vlan batch 1 to 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[S4]interface Ethernet0/0/1
[S4-Ethernet0/0/1]port link-type trunk
[S4-Ethernet0/0/1]port trunk allow-pass vlan 1 TO 20
[S4-Ethernet0/0/1]interface Ethernet0/0/14
[S4-Ethernet0/0/14]port link-type trunk
[S4-Ethernet0/0/14]port trunk allow-pass vlan 1 TO 20
[S4-Ethernet0/0/14]interface Ethernet0/0/24
[S4-Ethernet0/0/24]port link-type trunk
[S4-Ethernet0/0/24]port trunk allow-pass vlan 1 TO 20
Configure MSTP.
1 1 to 10
2 11 to 20
Figure out how MSTP balances data transmission load among VLANs
in different areas.
Figure out the reasons why RSTP can forward data quickly.
Final Configurations
[S1]display current-configuration
#
!Software Version V100R006C00SPC800
sysname S1
#
vlan batch 2 to 20
#
stp instance 0 priority 8192
stp instance 1 priority 4096
stp instance 2 priority 8192
#
stp region-configuration
region-name RG1
instance 1 vlan 1 to 10
instance 2 vlan 11 to 20
active region-configuration
#
interface Vlanif1
ip address 10.0.1.1 255.255.255.0
#
interface GigabitEthernet0/0/9
port link-type trunk
port trunk allow-pass vlan 2 to 20
#
interface GigabitEthernet0/0/10
port link-type trunk
port trunk allow-pass vlan 2 to 20
#
interface GigabitEthernet0/0/13
port link-type trunk
port trunk allow-pass vlan 2 to 20
#
Return
[S2]display current-configuration
#
!Software Version V100R006C00SPC800
sysname S2
#
vlan batch 2 to 20
#
stp instance 1 priority 8192
stp instance 2 priority 4096
stp instance 0 root secondary
#
stp region-configuration
region-name RG1
instance 1 vlan 1 to 10
instance 2 vlan 11 to 20
active region-configuration
#
interface Vlanif1
ip address 10.0.1.2 255.255.255.0
#
interface GigabitEthernet0/0/9
port link-type trunk
port trunk allow-pass vlan 2 to 20
stp instance 0 port priority 32
#
interface GigabitEthernet0/0/10
port link-type trunk
port trunk allow-pass vlan 2 to 20
[S3]display current-configuration
#
!Software Version V100R006C00SPC800
sysname S3
#
vlan batch 2 to 20
#
stp region-configuration
region-name RG1
instance 1 vlan 1 to 10
instance 2 vlan 11 to 20
active region-configuration
#
interface Ethernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 20
#
interface Ethernet0/0/13
port link-type trunk
port trunk allow-pass vlan 2 to 20
#
interface Ethernet0/0/23
port link-type trunk
port trunk allow-pass vlan 2 to 20
#
Return
[S4]display current-configuration
#
!Software Version V100R006C00SPC800
sysname S4
#
vlan batch 2 to 20
#
stp region-configuration
region-name RG1
instance 1 vlan 1 to 10
instance 2 vlan 11 to 20
active region-configuration
#
interface Ethernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 20
#
interface Ethernet0/0/14
port link-type trunk
port trunk allow-pass vlan 2 to 20
#
interface Ethernet0/0/23
#
interface Ethernet0/0/24
port link-type trunk
port trunk allow-pass vlan 2 to 20
stp instance 0 cost 2000000
#
Return
STP (Optional)
Learning Objectives
The objectives of this lab are to learn and understand how to perform
the following operations:
compatible.
Topology
Scenario
Tasks
<S3>system-view
Enter system view, return user view with Ctrl+Z.
[S3]interface Ethernet 0/0/23
[S3-Ethernet0/0/23]shutdown
<S4>system-view
Enter system view, return user view with Ctrl+Z.
[S4]interface Ethernet 0/0/14
[S4-Ethernet0/0/14]shutdown
[S2]vlan batch 3 to 8
[S3]vlan batch 3 to 8
[S4]vlan batch 3 to 8
[S2]display vlan
* : management-vlan
---------------------
The total number of vlans is : 7
VLAN ID Type Status MAC Learning Broadcast/Multicast/Unicast Property
----------------------------------------------------------------------------
1 common enable enable forward forward forward default
3 common enable enable forward forward forward default
4 common enable enable forward forward forward default
5 common enable enable forward forward forward default
6 common enable enable forward forward forward default
7 common enable enable forward forward forward default
8 common enable enable forward forward forward default
[S3]display vlan
* : management-vlan
---------------------
The total number of vlans is : 7
VLAN ID Type Status MAC Learning Broadcast/Multicast/Unicast Property
----------------------------------------------------------------------------
1 common enable enable forward forward forward default
3 common enable enable forward forward forward default
4 common enable enable forward forward forward default
5 common enable enable forward forward forward default
6 common enable enable forward forward forward default
[S4]display vlan
* : management-vlan
---------------------
The total number of vlans is : 7
VLAN ID Type Status MAC Learning Broadcast/Multicast/Unicast Property
----------------------------------------------------------------------------
1 common enable enable forward forward forward default
3 common enable enable forward forward forward default
4 common enable enable forward forward forward default
5 common enable enable forward forward forward default
6 common enable enable forward forward forward default
7 common enable enable forward forward forward default
8 common enable enable forward forward forward default
Set the type to Trunk for the links between switches. Enable the links
to receive bridge protocol data unit (BDPU) packets and to allow the
access from all VLANs. Note: The direct link between S2 and S3 remains
unchanged.
[S1]interface GigabitEthernet 0/0/13
[S1-GigabitEthernet0/0/13]port link-type trunk
[S1-GigabitEthernet0/0/13]port trunk allow-pass vlan all
[S1-GigabitEthernet0/0/13]bpdu enable
[S1-GigabitEthernet0/0/13]interface GigabitEthernet 0/0/10
[S1-GigabitEthernet0/0/10]port link-type trunk
[S1-GigabitEthernet0/0/10]port trunk allow-pass vlan all
[S1-GigabitEthernet0/0/10]bpdu enable
[S3]interface Ethernet0/0/1
[S3-Ethernet0/0/1]port link-type trunk
[S3-Ethernet0/0/1]port trunk allow-pass vlan all
[S3-Ethernet0/0/1]bpdu enable
[S3-Ethernet0/0/1]interface Ethernet0/0/13
[S3-Ethernet0/0/13]port link-type trunk
[S3-Ethernet0/0/13]port trunk allow-pass vlan all
[S3-Ethernet0/0/13]bpdu enable
[S4]interface Ethernet0/0/1
[S4-Ethernet0/0/1]port link-type trunk
[S4-Ethernet0/0/1]port trunk allow-pass vlan all
[S4-Ethernet0/0/1]bpdu enable
[S4-Ethernet0/0/1]interface Ethernet0/0/24
[S4-Ethernet0/0/24]port link-type trunk
[S4-Ethernet0/0/24]port trunk allow-pass vlan all
[S4-Ethernet0/0/24]bpdu enable
[S2]stp enable
[S2]stp mode mstp
[S3]stp enable
[S3]stp mode mstp
[S4]stp enable
[S4]stp mode mstp
Configure all switches to belong to RG1 and set the revision level to 1.
Create instance 1 and map it to VLANs 3, 4 and 5. Create instance 2 and
map it to VLANs 6, 7, and 8. Then activate the region configurations.
[S1]stp region-configuration
[S1-mst-region]region-name RG1
[S1-mst-region]revision-level 1
[S1-mst-region]instance 1 vlan 3 4 5
[S1-mst-region]instance 2 vlan 6 7 8
[S1-mst-region]active region-configuration
[S2]stp region-configuration
[S2-mst-region]region-name RG1
[S2-mst-region]revision-level 1
[S2-mst-region]instance 1 vlan 3 4 5
[S2-mst-region]instance 2 vlan 6 7 8
[S2-mst-region]active region-configuration
[S3]stp region-configuration
[S3-mst-region]region-name RG1
[S3-mst-region]revision-level 1
[S3-mst-region]instance 1 vlan 3 4 5
[S3-mst-region]instance 2 vlan 6 7 8
[S3-mst-region]active region-configuration
[S4]stp region-configuration
[S4-mst-region]region-name RG1
[S4-mst-region]revision-level 1
[S4-mst-region]instance 1 vlan 3 4 5
[S4-mst-region]instance 2 vlan 6 7 8
[S4-mst-region]active region-configuration
[S3]stp region-configuration
[S3-mst-region]region-name RG1
[S3-mst-region]revision-level 1
[S3-mst-region]instance 1 vlan 3 4 5
[S3-mst-region]instance 2 vlan 6 7 8
[S3-mst-region]active region-configuration
[S4]stp region-configuration
[S4-mst-region]region-name RG2
[S4-mst-region]revision-level 2
[S4-mst-region]instance 1 vlan 3 4 5
[S4-mst-region]instance 2 vlan 6 7 8
[S4-mst-region]active region-configuration
[S2]stp region-configuration
[S2-mst-region]region-name RG2
[S2-mst-region]revision-level 2
[S2-mst-region]instance 1 vlan 6 7 8
[S2-mst-region]instance 2 vlan 3 4 5
[S2-mst-region]active region-configuration
[S4]stp region-configuration
[S4-mst-region]region-name RG2
[S4-mst-region]revision-level 2
[S4-mst-region]instance 1 vlan 6 7 8
[S4-mst-region]instance 2 vlan 3 4 5
[S4-mst-region]active region-configuration
Configure S1, S2, and S3 to belong to the same MSTP region. Enable
STP on S4.
Delete the MSTP configurations from S2 and then create RG1 on S2.
Create instance 1 and map it to VLANs 3, 4, and 5. Create instance 2 and
map it to VLANs 6, 7, and 8. Then activate the region configurations.
[S2]undo stp region-configuration
[S2]stp region-configuration
[S2-mst-region]region-name RG1
[S2-mst-region]revision-level 1
[S2-mst-region]instance 1 vlan 3 4 5
[S2-mst-region]instance 2 vlan 6 7 8
[S2-mst-region]active region-configuration
receive bridge protocol data unit (BPDU) packets, and allow the access
from all VLANs.
[S2]int GigabitEthernet 0/0/23
[S2-GigabitEthernet0/0/23]undo shutdown
[S2-GigabitEthernet0/0/23]port link-type trunk
[S2-GigabitEthernet0/0/23]port trunk all vlan all
[S2-GigabitEthernet0/0/23]bpdu enable
[S3]int Ethernet0/0/23
[S3-Ethernet0/0/23]undo shutdown
[S3-Ethernet0/0/23]port link-type trunk
[S3-Ethernet0/0/23]port trunk allow-pass vlan all
[S3-Ethernet0/0/23]bpdu enable
Observe S1.
Dec 21 2011 08:39:51-05:13 S1 %%01IFNET/4/IF_STATE(l)[3]:Interface
GigabitEthernet0/0/9 has turned into UP state.
Dec 21 2011 08:39:51-05:13 S1 %%01MSTP/4/BPDU_PROTECTION(l)[4]:This edged-port
GigabitEthernet0/0/9 that enabled BPDU-Protection will be shutdown, because it
received BPDU packet!
Dec 21 2011 08:39:52-05:13 S1 %%01IFNET/4/IF_STATE(l)[5]:Interface
GigabitEthernet0/0/9 has turned into DOWN state.
Figure out the impact if the MSTP region names are the same but the
revision levels are different on switches.
In step 4, figure out the status changes of the interfaces of the four
switches if the priority is changed to 0 for S3 in instance 1.
Final Configurations
<S1>display current-configuration
#
!Software Version V100R006C00SPC800
sysname S1
#
vlan batch 3 to 8
#
stp bpdu-protection
stp tc-protection
#
stp region-configuration
region-name RG1
revision-level 1
instance 1 vlan 3 to 5
instance 2 vlan 6 to 8
active region-configuration
#
interface GigabitEthernet0/0/9
shutdown
stp edged-port enable
#
interface GigabitEthernet0/0/10
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/13
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
return
<S2>display current-configuration
#
!Software Version V100R006C00SPC800
sysname S2
#
vlan batch 3 to 8
#
stp region-configuration
region-name RG1
revision-level 1
instance 1 vlan 3 to 5
instance 2 vlan 6 to 8
active region-configuration
#
interface GigabitEthernet0/0/9
#
interface GigabitEthernet0/0/10
port link-type trunk
<S3>display current-configuration
#
!Software Version V100R006C00SPC800
sysname S3
#
vlan batch 3 to 8
#
stp region-configuration
region-name RG1
revision-level 1
instance 1 vlan 3 to 5
instance 2 vlan 6 to 8
active region-configuration
#
interface Ethernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface Ethernet0/0/13
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface Ethernet0/0/23
port link-type trunk
port trunk allow-pass vlan 2 to 4094
stp loop-protection
#
return
<S4>display current-configuration
#
Learning Objectives
• Methods used to modify the LDP LSP trigger policy on each LSR
Topology
Scenario
Tasks
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R1
[R1]interface GigabitEthernet 0/0/1
[R1-GigabitEthernet0/0/1]ip address 10.0.1.1 24
[R1-GigabitEthernet0/0/1]quit
[R1]interface s1/0/0
[R1-Serial1/0/0]ip address 10.0.12.1 24
[R1-Serial1/0/0]quit
[R1]interface loopback 0
[R1-LoopBack0]ip address 2.2.2.2 24
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R2
[R2]interface s1/0/0
[R2-Serial1/0/0]ip address 10.0.12.2 24
[R2-Serial1/0/0]quit
[R2]interface s2/0/0
[R2-Serial2/0/0]ip address 10.0.23.2 24
[R2-Serial2/0/0]quit
[R2]interface loopback 0
[R2-LoopBack0]ip address 3.3.3.3 24
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R3
[R3]interface GigabitEthernet 0/0/2
[R3-GigabitEthernet0/0/2]ip address 10.0.2.1 24
[R3-GigabitEthernet0/0/2]quit
[R3]interface s2/0/0
[R3-Serial2/0/0]ip address 10.0.23.3 24
[R3-Serial2/0/0]quit
[R3]interface loopback 0
[R3-LoopBack0]ip address 4.4.4.4 24
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname S2
[S2]interface Vlanif 1
[S2-Vlanif1]ip address 10.0.2.2 24
After the configurations are complete, check routing tables and test
the network connectivity.
[R2]ping 10.0.1.2
PING 10.0.1.2: 56 data bytes, press CTRL_C to break
Reply from 10.0.1.2: bytes=56 Sequence=1 ttl=253 time=36 ms
Reply from 10.0.1.2: bytes=56 Sequence=2 ttl=253 time=31 ms
Reply from 10.0.1.2: bytes=56 Sequence=3 ttl=253 time=31 ms
Reply from 10.0.1.2: bytes=56 Sequence=4 ttl=253 time=31 ms
Reply from 10.0.1.2: bytes=56 Sequence=5 ttl=253 time=31 ms
[R2]ping 10.0.2.2
PING 10.0.2.2: 56 data bytes, press CTRL_C to break
Reply from 10.0.2.2: bytes=56 Sequence=1 ttl=253 time=38 ms
Reply from 10.0.2.2: bytes=56 Sequence=2 ttl=253 time=33 ms
Reply from 10.0.2.2: bytes=56 Sequence=3 ttl=253 time=33 ms
Reply from 10.0.2.2: bytes=56 Sequence=4 ttl=253 time=33 ms
Reply from 10.0.2.2: bytes=56 Sequence=5 ttl=253 time=33 ms
[R3-mpls]mpls ldp
After the configurations are complete, run the display mpls ldp
session command on R1, R2, and R3. The status of the local LDP session
between R1, R2 and R3 is Operational.
[R1]display mpls ldp session
LDP Session(s) in Public Network
Codes: LAM(Label Advertisement Mode), SsnAge Unit(DDDD:HH:MM)
A '*' before a session means the session is being deleted.
----------------------------------------------------------------------------
PeerID Status LAM SsnRole SsnAge KASent/Rcv
----------------------------------------------------------------------------
3.3.3.3:0 Operational DU Passive 0000:00:10 41/41
----------------------------------------------------------------------------
TOTAL: 1 session(s) Found.
All LSRs are triggered to establish LDP LSPs based on the host route,
which is the default trigger policy.
Run the display mpls ldp lsp command on LSRs. All host routes are
triggered to establish LDP LSPs.
[R1]display mpls ldp lsp
LDP LSP Information
----------------------------------------------------------------------------
DestAddress/Mask In/OutLabel UpstreamPeer NextHop OutInterface
----------------------------------------------------------------------------
2.2.2.2/32 3/NULL 3.3.3.3 127.0.0.1 InLoop0
*2.2.2.2/32 Liberal/1024 DS/3.3.3.3
3.3.3.3/32 NULL/3 - 10.0.12.2 S1/0/0
3.3.3.3/32 1024/3 3.3.3.3 10.0.12.2 S1/0/0
4.4.4.4/32 NULL/1025 - 10.0.12.2 S1/0/0
4.4.4.4/32 1025/1025 3.3.3.3 10.0.12.2 S1/0/0
----------------------------------------------------------------------------
TOTAL: 5 Normal LSP(s) Found.
TOTAL: 1 Liberal LSP(s) Found.
TOTAL: 0 Frr LSP(s) Found.
A '*' before an LSP means the LSP is not established
A '*' before a Label means the USCB or DSCB is stale
A '*' before a UpstreamPeer means the session is in GR state
A '*' before a DS means the session is in GR state
A '*' before a NextHop means the LSP is FRR LSP
[R2]mpls
[R2-mpls]lsp-trigger all
[R3]mpls
[R3-mpls]lsp-trigger all
Run the display mpls ldp lsp command. Information about the
established LDP LSPs is displayed.
[R1]display mpls ldp lsp
LDP LSP Information
----------------------------------------------------------------------------
DestAddress/Mask In/OutLabel UpstreamPeer NextHop OutInterface
----------------------------------------------------------------------------
2.2.2.0/24 3/NULL 3.3.3.3 2.2.2.2 Loop0
2.2.2.2/32 3/NULL 3.3.3.3 127.0.0.1 InLoop0
*2.2.2.2/32 Liberal/1024 DS/3.3.3.3
*3.3.3.0/24 Liberal/3 DS/3.3.3.3
3.3.3.3/32 NULL/3 - 10.0.12.2 S1/0/0
3.3.3.3/32 1024/3 3.3.3.3 10.0.12.2 S1/0/0
4.4.4.4/32 NULL/1025 - 10.0.12.2 S1/0/0
4.4.4.4/32 1025/1025 3.3.3.3 10.0.12.2 S1/0/0
10.0.1.0/24 3/NULL 3.3.3.3 10.0.1.1 GE0/0/1
*10.0.1.0/24 Liberal/1026 DS/3.3.3.3
10.0.2.0/24 NULL/1027 - 10.0.12.2 S1/0/0
10.0.2.0/24 1027/1027 3.3.3.3 10.0.12.2 S1/0/0
10.0.12.0/24 3/NULL 3.3.3.3 10.0.12.1 S1/0/0
*10.0.12.0/24 Liberal/3 DS/3.3.3.3
10.0.23.0/24 NULL/3 - 10.0.12.2 S1/0/0
In which way can only R1 receive label mapping messages from R3?
Final Configurations
<R1>display current-configuration
[V200R001C00SPC200]
#
sysname R1
#
mpls lsr-id 2.2.2.2
mpls
lsp-trigger all
#
mpls ldp
inbound peer 3.3.3.3 fec ip-prefix prefix1
#
interface Serial1/0/0
link-protocol ppp
ip address 10.0.12.1 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet0/0/1
ip address 10.0.1.1 255.255.255.0
#
interface LoopBack0
ip address 2.2.2.2 255.255.255.0
#
ospf 1 router-id 2.2.2.2
area 0.0.0.0
network 10.0.1.0 0.0.0.255
network 10.0.12.0 0.0.0.255
network 2.2.2.0 0.0.0.255
#
ip ip-prefix prefix1 index 10 permit 10.0.12.0 24
#
return
[R2]display current-configuration
[V200R001C00SPC200]
#
sysname R2
#
mpls lsr-id 3.3.3.3
mpls
lsp-trigger all
#
mpls ldp
#
interface Serial1/0/0
link-protocol ppp
ip address 10.0.12.2 255.255.255.0
mpls
mpls ldp
#
interface Serial2/0/0
link-protocol ppp
ip address 10.0.23.2 255.255.255.0
mpls
mpls ldp
#
interface LoopBack0
ip address 3.3.3.3 255.255.255.0
#
ospf 1 router-id 3.3.3.3
area 0.0.0.0
network 10.0.12.0 0.0.0.255
network 10.0.23.0 0.0.0.255
network 3.3.3.0 0.0.0.255
#
return
[R3]display current-configuration
[V200R001C00SPC200]
#
sysname R3
#
mpls lsr-id 4.4.4.4
mpls
lsp-trigger all
#
mpls ldp
#
interface Serial2/0/0
link-protocol ppp
ip address 10.0.23.3 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet0/0/2
ip address 10.0.2.1 255.255.255.0
#
interface LoopBack0
ip address 4.4.4.4 255.255.255.0
#
ospf 1 router-id 4.4.4.4
area 0.0.0.0
network 10.0.2.0 0.0.0.255
network 10.0.23.0 0.0.0.255
network 4.4.4.0 0.0.0.255
#
Return
The Huawei career certification training and product training covering all ICT technical domains like R&S,
UC&C, Security, Storage and so on, which are conducted by Huawei professional instructors
4、Learning Tool:s
eNSP :Simulate single Router&Switch device and large network
WLAN Planner :Network planning tools for WLAN AP products.
In addition, Huawei has built up Huawei Technical Forum which allows candidates to discuss technical issues with
Huawei experts , share exam experiences with others or be acquainted with Huawei Products.