2.8.HC110110022 VLAN Principles
2.8.HC110110022 VLAN Principles
age 2 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Objectives
Upon completion of this section, you will be able to:
Explain the application of VLAN tagging.
Describe the different port link types and characteristics.
Successfully establish port based VLANs.
age 3 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
LAN Limitations
age 4 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
VLAN Technology
Group 2
Group 1
age 5 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
VLAN Frame Format
6 bytes 6 bytes 2 bytes 46-1500 bytes 4 bytes
age 6 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Link Types
Trunk
Access
VLAN2 VLAN3
A trunk represents a backbone for the transmission of VLAN traffic between switches.
age 7 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Port VLAN ID
PVID1 PVID1
age 8 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Port Types – Access
10 Frame
PVID10 PVID10
PVID2 U
nt
d ag
g ge g ed
n ta
U
age 9 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Port Types – Trunk
U
ed
ed
nt
nt
gg
ag
ag
gg
g
ta
ta
ed
ed
Un
Un
age 10 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Port Types – Hybrid
Hybrid Untagged
SWA 10 Frame SWB
Hybrid Tagged
PVID10 PVID10
U
ed
ed
nt
nt
gg
ag
ag
gg
U
ta
g
ta
nt
ed
ed
Un
Un
ag
g
ed
Host A Host B Host C Host D
age 11 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
VLAN Assignment Methods
SWA
Assignment
VLAN 5 VLAN 10
Method
1
2
0/
G0/0
G0
Port based G0/0/1, G0/0/7 G0/0/2 G0/0/9
/
G0/0
/
G0
0//
/
9
00-01-02-03-04-AA 00-01-02-03-04-BB
7
MAC based
00-01-02-03-04-CC 00-01-02-03-04-DD
IP Subnet
10.0.1.* 10.0.2.*
based
Protocol
IP IPX
based
10.0.1.* + G0/0/1+ 10.0.2.* + G0/0/2 +
Policy based
00-01-02-03-04-AA 00-01-02-03-04-BB
Host A Host B Host C Host D
10.0.1.1 10.0.2.1 10.0.1.2 10.0.2.2
Five methods of VLAN assignment are possible.
Port based VLAN assignment is the default assignment method.
age 12 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Creating VLANs
SWA SWB
[SWA]vlan 10
[SWA-vlan10]quit
[SWA]vlan batch 2 to 3
Info: This operation may take a few seconds. Please wait for a
moment...done.
age 13 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved. Page 13
Creating VLANs
[SWA]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) ……
2 common
3 common
10 common
……
age 14 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Setting the Port Link Type
SWA SWB
G0/0/1
G0/0/5 G0/0/7
age 15 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Assigning Ports to VLANs
SWA SWB
G0/0/1
G0/0/5 G0/0/7
[SWA]vlan 2
[SWA-vlan2]port GigabitEthernet 0/0/7
[SWA-vlan2]quit
[SWA]interface GigabitEthernet 0/0/5
[SWA-GigabitEthernet0/0/5]port link-type access
[SWA-GigabitEthernet0/0/5]port default vlan 3
age 16 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Verifying VLAN Assignment
[SWA]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) ……
2 common UT:GE0/0/7(D)
3 common UT:GE0/0/5(U)
10 common
……
age 17 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Forwarding Over the Trunk
SWA SWB
G0/0/1 G0/0/1
age 18 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Forwarding Over the Trunk
[SWA]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) ……
2 common UT:GE0/0/7(D) TG:GE0/0/1(U)
3 common UT:GE0/0/5(U) TG:GE0/0/1(U)
10 common
……
age 19 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Configuring Hybrid Ports
SWA SWB
G0/0/1 G0/0/1
G0/0/5 G0/0/7
age 20 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Configuring Hybrid Ports
SWA SWB
G0/0/1 G0/0/1
G0/0/5 G0/0/7
Trunk links using the hybrid port link-type must enable tagging of VLAN
frames before forwarding.
age 21 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Configuration Validation
[SWA]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) ……
2 common UT:GE0/0/7(D)
TG:GE0/0/1(U)
3 common UT:GE0/0/5(U)
TG:GE0/0/1(U)
10 common
……
age 22 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Configuring Hybrid Ports
SWA SWB
G0/0/1 G0/0/1
Hybrid ports can be configured to receive VLAN traffic from multiple VLANs
by simply removing the tag at the port interface.
age 23 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Configuration Validation
[SWB]display vlan
The total number of vlans is : 3
------------------------------------------------------------
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) ……
2 common UT:GE0/0/4(U)
3 common UT:GE0/0/4(U)
4 ……
age 24 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Voice VLAN Application
SWA SWB
G0/0/1
Voice VLANs are used to distinguish, isolate and prioritize voice traffic over
service traffic as a means of quality assurance.
age 25 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Voice VLAN Configuration
SWA SWB
G0/0/1
[SWB]vlan 2
[SWB-vlan2]interface GigabitEthernet 0/0/1
[SWB-GigabitEthernet0/0/1]voice-vlan 2 enable
[SWB-GigabitEthernet0/0/1]voice-vlan mode auto
[SWB-GigabitEthernet0/0/1]quit
[SWB]voice-vlan mac-address 0011-2200-0000 mask ffff-ff00-0000
age 26 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Configuration Validation
age 27 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Voice VLAN Configuration (new)
SWA SWB
G0/0/1
age 28 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Summary
If a trunk link has a PVID of 5 and the command port trunk allow-pass vlan 2 3
is used, which VLAN traffic will be carried over the trunk?
What action will be taken by an access port with a PVID of 2 when receiving an
untagged frame?
age 29 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Thank You
www.huawei.com