当前位置:网站首页>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
边栏推荐
- Tornado frame foundation
- Database SQL language 03 sorting and paging
- Digital signature——
- Codeforces C. Andrew and Stones
- OSPF - authentication and load balancing summary (including configuration commands)
- Answer sheet for online assignment of "motor and drive" of Xijiao 21 autumn (IV) [standard answer]
- 如何制作CSR(Certificate Signing Request)文件?
- [secretly kill little partner pytorch20 days] - [day4] - [example of time series data modeling process]
- Summary of redis learning notes (I)
- I have been working as a software testing engineer for 5 years, but I was replaced by an intern. How can I improve myself?
猜你喜欢

MySQL事物

C语言基础小操作

Terminal convenient SSH connection

What kind of answer has Inspur given in the big AI model landing test?

86. 分隔链表

English语法_形容词/副词3级-最高级

Codeforces C. Andrew and Stones

Huxiaochun came to fengshu electronics to sign a strategic cooperation agreement with Zoomlion

Do you know how to show the health code in only 2 steps

Tornado frame foundation
随机推荐
Database SQL language 04 subquery and grouping function
Force deduction exercise -- deleting repeated items in ordered sequence 1.0
Cisco vxlan configuration
【LeetCode】236. Nearest common ancestor of binary tree
旋转框目标检测mmrotate v0.3.1入门
Sound net, debout dans le "sol" de l'IOT
24、 I / O device model (serial port / keyboard / disk / printer / bus / interrupt controller /dma and GPU)
Why can transformer break into the CV world and kill CNN?
El table lazy load refresh
Shenzhou ares tx6 boot logo modification tutorial
Delete the repeating elements in the sorting list (simple questions)
雲服務器部署 Web 項目
Acwing winter vacation daily question 2022 punch in day 11
How to print pthread_ t - How to print pthread_ t
uboot通过终端发送‘r‘字符读取ddr内存大小
PC viewing WiFi password
English grammar_ Adjective / adverb Level 3 - superlative
STM32F103系列控制的OLED IIC 4针
Promise knowledge points
Xctf attack and defense world crypto advanced area