交换机中access和trunk详解
Jun 07, 2016 pm 03:37 PM首先需要说明的是,vlan的标准802.1q中采用的是untagged,tagged这两个术语来制定vlan规范,并没有access,trunk。然而大多数实际的 交换机 设备在配置时,却都采用access,trunk。 pvid是标识一个物理端口的,一个物理端口只能有一个pvid; vid是数据包中携带
首先需要说明的是,vlan的标准802.1q中采用的是untagged,tagged这两个术语来制定vlan规范,并没有access,trunk。然而大多数实际的交换机设备在配置时,却都采用access,trunk。
pvid是标识一个物理端口的,一个物理端口只能有一个pvid;
vid是数据包中携带的vlan号。
典型的几个实例
交换机环境配置如下
端口1:trunk, 允许所有vlan通过;连接着个人PC
端口2:access,vlan35,连接着服务器Server
PC和Server处于同一IP段。
为什么,PC无法访问Server?
默认情况下设置端口为trunk时,pvid自动设为1,而设为access时,pvid自动设置为vlan号。
解决办法,把端口1的pvid设置为35。

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

How to disable background applications in Windows 11_Windows 11 tutorial to disable background applications

Can't allow access to camera and microphone in iPhone

How to read the Oracle stored procedure execution plan

How does the Java reflection mechanism modify the behavior of a class?
