Professional Documents
Culture Documents
Principle and
Configuration
www.huawei.com
Copyright © 2018 Huawei Technologies Co., Ltd. All rights reserved. Page1
Objectives
Upon completion of this course, you will be able to:
Know The Background of VLAN Generation
Copyright © 2018 Huawei Technologies Co., Ltd. All rights reserved. Page2
Contents
1. VLAN Overview
Copyright © 2018 Huawei Technologies Co., Ltd. All rights reserved. Page3
VLAN Generation
The Ethernet lacks in forwarding control methods .
B C
A
Copyright © 2018 Huawei Technologies Co., Ltd. All rights reserved. Page4
The Aim of VLAN
Group 2
Group 1
Copyright © 2018 Huawei Technologies Co., Ltd. All rights reserved. Page5
VLAN Tag
6B 6B 2B 64-1500B 4B
DA SA TYPE DATA FCS Untagged frame
6B 6B 4B 2B 64-1500B 4B
DA SA TAG TYPE DATA FCS Tagged frame
2B 2B
C
0x8100 PRI F VLAN ID(12b)
I
TPID TCI
Copyright © 2018 Huawei Technologies Co., Ltd. All rights reserved. Page6
Classification of VLANs
Classification methods of VLANs :
Classification of VLANs based on port numbers
Copyright © 2018 Huawei Technologies Co., Ltd. All rights reserved. Page7
How to Generate VLAN Tag
Port PVID
Port 1 Port 10 Port1 5
Port 2 Port 7
Port2 10
…… ……
Port7 5
…… ……
Port10 10
Host A Host C
Host B Host D
Copyright © 2018 Huawei Technologies Co., Ltd. All rights reserved. Page8
Advantages of VLAN
Copyright © 2018 Huawei Technologies Co., Ltd. All rights reserved. Page9
Contents
1. VLAN Overview
Copyright © 2018 Huawei Technologies Co., Ltd. All rights reserved. Page10
Link Types of VLAN
Trunk-Link
Switch-A Switch-B
Access-Link
Copyright © 2018 Huawei Technologies Co., Ltd. All rights reserved. Page11
Port Link Types of VLAN
Port types
Access Port
Trunk Port
Hybrid Port
Copyright © 2018 Huawei Technologies Co., Ltd. All rights reserved. Page12
Access Port
PVID:10 Access
Send
Access
Copyright © 2018 Huawei Technologies Co., Ltd. All rights reserved. Page13
Trunk Port
Trunk port receives
Untagged frame, Switch adds a VLAN tag with PVID to the frame if PVID is
permitted by the port.
Tagged frame, Switch accepts the frame if its VLAN ID is permitted by the
port. Else, it is denied.
If its VLAN ID ≠ PVID but the VLAN ID is permitted by the port, Switch
sends the frame directly without removing the VLAN tag.
Receive
PVID:10 Trunk
Send
PVID:20 Trunk
Copyright © 2018 Huawei Technologies Co., Ltd. All rights reserved. Page14
Hybrid Port
Hybrid port receives
Untagged frame, Switch adds a VLAN tag with PVID to the frame if PVID is permitted
by the port.
Tagged frame, Switch accepts the frame if its VLAN ID is permitted by the port. Else, it
is denied.
If the interface is added to the VLAN in tagged mode, Switch directly sends the frame .
PVID:20 Hybrid
untagged vlan 10 20 send
PVID:10 Hybrid
Copyright © 2018 Huawei Technologies Co., Ltd. All rights reserved. Page15
QinQ Port
QinQ interface receives
An untagged frame, Switch adds a VLAN tag with PVID to the frame if PVID is
permitted by the port
Switch removes the outer tag with the default VLAN ID and
sends the packets
Receive
PVID:10 Access
Send
PVID:20 Access
Copyright © 2018 Huawei Technologies Co., Ltd. All rights reserved. Page16
Principle of VLAN Communication
VLAN3
Switch-A Switch-B
GE1/0/4 GE1/0/2 GE1/0/1 GE1/0/3
2
VLAN2
Host A Host B
Copyright © 2018 Huawei Technologies Co., Ltd. All rights reserved. Page17
Basic Principle of VLAN Communication
•Port Type •Method of Processing •Method of Processing •Frame Sending
Untagged Frames Tagged Frames
•Access Accepts an untagged frame and •Accepts a tagged frame if the After the PVID tag is stripped, the frame
adds a tag with the default VLAN VLAN ID carried in the frame is
ID to the frame. the same as the default VLAN
ID.
•Discards a tagged frame if the
VLAN ID carried in the frame is
different from the default VLAN
ID.
•Trunk Adds a tag with the default Accepts a tagged frame if the Removes the tag and then sends a received frame if
VLAN ID to an untagged frame VLAN ID carried in the frame the VLAN ID carried in the frame is the same as the
and accepts the frame if the port is permitted by the port. default VLAN ID and the VLAN ID is permitted by the
permits the default VLAN ID. Discards a tagged frame if the port.
Adds a tag with the default VLAN ID carried in the frame Directly sends a received frame if the VLAN ID carried
VLAN ID to an untagged frame is denied by the port. in the frame is different from the default VLAN ID but
and discards the frame if the the VLAN ID is permitted by the port.
port denies the default VLAN ID.
Sends a received frame if the VLAN ID carried in the
•Hybrid frame is permitted by the port. The port can be
configured with a specified command to determine
whether or not it sends frames with tags.
•QinQ QinQ ports are enabled with the IEEE 802.1QinQ protocol. A QinQ port adds a tag to a single-tagged frame, and thus
supports a maximum of 4094 x 4094 VLAN tags, which meets the requirement of a Metropolitan Area Network (MAN) for the
number of VLANs.
Copyright © 2018 Huawei Technologies Co., Ltd. All rights reserved. Page18
Configure Access Port Attribute
\\create VLAN
[Switch]vlan 3
[Switch]vlan 5
Copyright © 2018 Huawei Technologies Co., Ltd. All rights reserved. Page19
Configure Trunk Port Attribute
SWA SWB
Port-0/3 Port-0/3
\\create VLAN
[Switch]vlan 3
Copyright © 2018 Huawei Technologies Co., Ltd. All rights reserved. Page20
Configure Hybrid Port
Port-1/0/24
Port-2/0/0
Port-1/0/1
Copyright © 2018 Huawei Technologies Co., Ltd. All rights reserved. Page21
Configure QinQ Port
Copyright © 2018 Huawei Technologies Co., Ltd. All rights reserved. Page22
Thank you
www.huawei.com