当前位置:网站首页>VLAN access mode
VLAN access mode
2022-06-30 05:52:00 【Pie Daxing's good friend Dingdang cat】
List of articles
VLAN Introduce
vlan: virtual local area network, Virtual LAN
vlan It's a physical LAN A technique that is logically divided into multiple broadcast domains .
Every vlan It's a broadcast domain ,vlan The communication between hosts in the network is just like that in a lan It's the same inside , and vlan But we can't communicate with each other directly . such , Broadcast messages are limited to one vlan Inside .
vlan The essence : Broadcast area
vlan Practical use of : The interface of the switch exists in a vlan, For data forwarding
Mark
Ethernet frame has 2 Kind of : nothing vlan Marked standard Ethernet frames and have vlan Marked Ethernet frame 
Huawei switch vlan To configure
#vlan establish
<Huawei>sys
[Huawei]sysname SW7
[SW7]vlan batch 8
# Add ports to vlan, Set the port to access mode
[SW7]int GigabitEthernet 0/0/1
[SW7-GigabitEthernet0/0/1]port link-type access
[SW7-GigabitEthernet0/0/1]port default vlan 8
# Check the switch port vlan
[SW7]dis port vlan
Port Link Type PVID Trunk VLAN List
-------------------------------------------------------------------------------
GigabitEthernet0/0/1 access 8 -
GigabitEthernet0/0/2 hybrid 1 -
GigabitEthernet0/0/3 hybrid 1 -
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 1 -
GigabitEthernet0/0/10 hybrid 1 -
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 -
How the access mode works
Application scenario of access mode : A large number of access end users
Check the port's vlan state
[SW7]dis port vlan active
T=TAG U=UNTAG
-------------------------------------------------------------------------------
Port Link Type PVID VLAN List
-------------------------------------------------------------------------------
GE0/0/1 access 8 U: 8
GE0/0/2 hybrid 1 U: 1
GE0/0/3 hybrid 1 U: 1
GE0/0/4 hybrid 1 U: 1
GE0/0/5 hybrid 1 U: 1
GE0/0/6 hybrid 1 U: 1
GE0/0/7 hybrid 1 U: 1
GE0/0/8 hybrid 1 U: 1
GE0/0/9 hybrid 1 U: 1
GE0/0/10 hybrid 1 U: 1
GE0/0/11 hybrid 1 U: 1
GE0/0/12 hybrid 1 U: 1
GE0/0/13 hybrid 1 U: 1
GE0/0/14 hybrid 1 U: 1
GE0/0/15 hybrid 1 U: 1
GE0/0/16 hybrid 1 U: 1
GE0/0/17 hybrid 1 U: 1
GE0/0/18 hybrid 1 U: 1
GE0/0/19 hybrid 1 U: 1
GE0/0/20 hybrid 1 U: 1
GE0/0/21 hybrid 1 U: 1
GE0/0/22 hybrid 1 U: 1
GE0/0/23 hybrid 1 U: 1
GE0/0/24 hybrid 1 U: 1
PVID: port vlan id
PVID Default equal to 1
vlan list Indicate what is allowed vlan id Frames can pass through this port
For conventional terminal equipment , They don't know vlan Mark , Therefore, the frame will be marked when it goes out of the switch to the terminal device tag Remove .
Frames need to be added before entering the switch id
On the same switch , Only the access is the same vlan The terminal can communicate !
Port type -Access
- Only unique vlan id( frame ) Through this port , Exclusive interface
- In the direction of flow , received untagged( No VLAN label ), The switch will force the port to be added PVID( port VLAN Mark )
- When a data frame is sent from another interface , It must be forwarded from the allowed interface , Remove the frame at the same time TAG,Access The Ethernet frame sent by the port to the opposite device is always a frame without label
边栏推荐
- Database SQL language 06 single line function
- AI大模型落地大考,浪潮交出了怎样的答卷?
- [GPU] basic operation of GPU (I)
- 领导:谁再用 Redis 过期监听实现关闭订单,立马滚蛋!
- 2022年,谁在推动音视频产业的新拐点?
- luoguP2756 飞行员配对方案问题(最大流)
- Implementation of property management system with ssm+ wechat applet
- Promise知识点拾遗
- Sword finger offer 18 Delete the node of the linked list
- Solitidy - fallback 回退函数 - 2种触发执行方式
猜你喜欢

Finally someone can make the server so straightforward

14x1.5cm vertical label is a little difficult, VFP calls bartender to print

旋转框目标检测mmrotate v0.3.1 训练DOTA数据集(二)

MySQL日志管理、数据备份、恢复

强烈推荐十几款IDEA开发必备的插件

Basic operations of C language

English grammar_ Adjective / adverb Level 3 - superlative

What indicators should safety service engineers pay attention to in emergency response?

Leetcode search insert location

Rotating frame target detection mmrotate v0.3.1 training dota data set (II)
随机推荐
Did you know that WPS can turn on eye protection mode?
inno setup 最简单的自定义界面效果
如何制作CSR(Certificate Signing Request)文件?
At the age of 32, I fell into a middle-aged crisis and finally quit naked...
Basic operations of C language
09- [istio] istio service entry
Rotating frame target detection mmrotate v0.3.1 training dota data set (II)
10-【istio】istio Sidecar
Sound net, debout dans le "sol" de l'IOT
What do you think of the deleted chat records? How to restore the deleted chat records on wechat?
Promise知识点拾遗
Transfer the token on the matic-erc20 network to the matic polygon
Rotating box target detection mmrotate v0.3.1 getting started
Implementation of property management system with ssm+ wechat applet
Shopping list--
Here comes the nearest chance to Ali
Xctf attack and defense world crypto advanced area
Sword finger offer 29 Print matrix clockwise
About modifying dual system default startup item settings
Learning automation ppt