当前位置:网站首页>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
边栏推荐
- Ultra simple STM32 RTC alarm clock configuration
- InputStream to inputstreamsource
- PC viewing WiFi password
- STM32F103 series controlled OLED IIC 4-pin
- [deep learning] data segmentation
- Codeforces B. MEX and Array
- OSPF - authentication and load balancing summary (including configuration commands)
- 剑指 Offer 22. 链表中倒数第k个节点
- [GPU] basic operation
- Tornado frame foundation
猜你喜欢
电脑查看WiFi使用密码
Rotating box target detection mmrotate v0.3.1 getting started
ECS deployment web project
AI大模型落地大考,浪潮交出了怎样的答卷?
聲網,站在物聯網的“土壤”裏
强烈推荐十几款IDEA开发必备的插件
How to create a CSR (certificate signing request) file?
09- [istio] istio service entry
Switch to software testing and report to the training class for 3 months. It's a high paying job. Is it reliable?
Implementation of property management system with ssm+ wechat applet
随机推荐
Dao -- a beautiful new world?
旋转框目标检测mmrotate v0.3.1 学习配置
Do you know how to show the health code in only 2 steps
2022年,谁在推动音视频产业的新拐点?
OpenCL线程代数库ViennaCL的使用
hashlips_ art_ Engine-1.0.6 usage
How to judge the quality of network transformer? What symptom is network filter transformer broken?
8 ways to earn passive income
剑指 Offer 22. 链表中倒数第k个节点
Sound network, standing in the "soil" of the Internet of things
Redistemplate common method summary
Solidity - Security - reentrancy attack
OSPF - authentication and load balancing summary (including configuration commands)
抓取手机端变体组合思路设想
What indicators should safety service engineers pay attention to in emergency response?
STM32F103 series controlled OLED IIC 4-pin
Qt之QListView的简单使用(含源码+注释)
UE4_ Editor UMG close window cannot destroy UMG immediately
D. Big Brush
Delete the repeating elements in the sorting list (simple questions)