Huawei 7
Huawei 7
Huawei 7
www.huawei.com
VLANs isolate not only layer-2 broadcasts, but also VLAN traffic. As
a result users belonging to different VLANs are unable communicate
with each other.
Port 1 Port 2
Port 5 Ethernet0
192.168.200.200 VLAN200 192.168.200.1
VLAN 200 Port 2
Port 1
Port 3 Ethernet1
VLAN100 192.168.100.1
192.168.100.100
VLAN 100
VLAN 300
VLAN 100
VLAN 300
Ethernet0.300
Ethernet0.200
VLAN 200 Trunk Ethernet0.100
VLAN 100
VLAN 300
L3 switch
VLAN 300
L2 switch
Functional integration of layer 2 switches and routers forms the basis for the
layer 3 switch. The layer 3 switch functionally enables VLAN classification,
VLAN based layer 2 switching and inter-VLAN routing.
IP:192.168.20.20
VLAN 200 GW:192.168.20.1
SWA RTA
Port 24
Port 2 Trunk Ethernet0/1
Port 1
VLAN 100
IP:192.168.10.10
GW:192.168.10.1
SWA RTA
Port 24
Trunk Ethernet0/1
[SWA]vlan 100
[SWA-vlan100]port ethernet 0/1
[SWA]vlan 200
[SWA-vlan200]port ethernet 0/2
[SWA]interface ethernet 0/24
[SWA-Ethernet0/24]port link-type trunk
[SWA-Ethernet0/24]port trunk allow-pass vlan all
SWA RTA
Port 24
Trunk Ethernet0/1
IP:192.168.20.20
VLAN 200 GW:192.168.20.1
SWA
Port 2
Port 1
VLAN 100
IP:192.168.10.10
GW:192.168.10.1
C:\>ping 192.168.20.20
www.huawei.com
E0/5
33
Destination MAC Destination
port
E0/6
00-0D-56-BF-88-10 E0/5
SWB
PCB 00-0D-56-BF-88-20 E0/6
..... .....
00-0D-56-BF-88-20 ..... .....
4 2 3
SWB
PCA 1
SWA Destination MAC Destination
port
00-0D-56-BF-88-10 00-0D-56-BF-88-10 E0/2
E0/2 ..... .....
E0/3 ..... .....
22
E0/5
33 Destination MAC Destination
port
E0/6 00-0D-56-BF-88-10 E0/5
PCB SWB ..... .....
..... .....
00-0D-56-BF-88-20
PCA
SWA Destination
Destination MAC
port
00-0D-56-BF-88-10 00-0D-56-BF-88-10 E0/2
E0/2
00-0D-56-BF-88-10 E0/4
E0/3 E0/4
E0/5 E0/6
SWB
E0/10 E0/20
LANA LANB
E0/10 E0/20
SWB E0/20 E0/10
LANC SWC
LAND LANE
E0/10 E0/20
LANA LANB
E0/10 E0/20
SWB E0/20 E0/10
LANC SWC
LAND LANE
E0/10 E0/20
LANA LANB
E0/10 E0/20
SWB E0/20 E0/10
LANC SWC
Resume the port
LAND LANE
BPDU
LANA LANB
SWB SWC
32768. 32768.
00e0-fc41-4259 LANC 00e0-fc41-43b9
LAND LANE
LANA LANB
Root Port Root Port
LAND LANE
SWA
Root
32768.00e0-fc16-ee43
Designated port Designated port for
for LANA LANB
LANA LANB
SWB SWC
32768. 32768.
00e0-fc41-4259 LANC 00e0-fc41-43b9
Root Port Root port is the nearest port from the root switch,
it maintains a forwarding state.
Disabled
Listening
1
Port disables 2 3 Port disables
2
Blocking Learning
3
2
Forwarding
Port disables
E0/10 E0/20
LANA LANB
E0/10 E0/20
SWB E0/20 E0/10
LANC SWC
Designated
port for LANC
LAND LANE
STP
A port needs to wait for a period equal to two times the
Forward Delay before transitioning from a blocked status
into a forwarding status
E0/10 E0/20
Permit VLAN10, 20
Permit VLAN10, 20
Blocked Port
E0/10 E0/20
SWB E0/20 E0/10
SWC
Permit VLAN10
VLAN10 E0/24 VLAN20
VLAN20 VLAN10
Host in VLAN20
can’t communicate
LAND LANE
www.huawei.com
expect to:
10.1.1.254/24
Ethernet
RTA
Virtual RTB
Router
10.1.1.251/24 E0/0 10.1.1.254 E0/0 10.1.1.252/24
Ethernet
on RTA,
Virtual Router ID is 1,
Virtual IP address:
10.1.1.254
Indicating the
reachability of Virtual
IP Address
Backup Master
Virtual
RTA RTB
Router
10.1.1.251/24 E0/0 10.1.1.254 E0/0 10.1.1.252/24
Priority = 100 Priority = 200
Ethernet
Internet
IP Address Owner
RTA
Virtual
RTB
Router
10.1.1.254/24 E0/0 10.1.1.254 E0/0 10.1.1.252/24
Ethernet
Backup Master
Virtual
RTA RTB
Router
10.1.1.251/24 E0/0 10.1.1.254 E0/0 10.1.1.252/24
Priority = 100 Priority = 200
Ethernet
<Quidway>system-view
[Quidway]sysname RTA
Configuring the interface’s
[RTA] physical IP address
[RTA-Ethernet0/0]
[RTA-Ethernet0/0]quit
[RTA]
[Quidway]sysname RTB
The same VRID and
[RTB] Virtual IP Address as
[RTB]interface Ethernet 0/0 RTA
[RTB-Ethernet0/0]ip address 10.1.1.252 24
[RTB-Ethernet0/0]
[RTB-Ethernet0/0]
[RTB-Ethernet0/0]quit
[RTB]
Configuring the Priority of
Virtual Router 1 as 200
Internet
The Master The Master
of VR1 of VR2
RTA VR 1 VR 2 RTB
Ethernet
Backup Master
E1/0 E1/0
RTA VR 1 RTB
10.1.1.251/24 E0/0 10.1.1.254 E0/0 10.1.1.252/24
Priority = 100 Priority = 200
Ethernet
[Quidway]sysname RTA
[RTA]
[RTA-Ethernet0/0]quit
[RTA]
Tracking Ethernet1/0