Home > Database > Mysql Tutorial > body text

交换机中access和trunk详解

WBOY
Release: 2016-06-07 15:37:16
Original
2799 people have browsed it

首先需要说明的是,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号。

 

交换机中access和trunk详解

典型的几个实例

交换机环境配置如下

端口1:trunk, 允许所有vlan通过;连接着个人PC

端口2:access,vlan35,连接着服务器Server

PC和Server处于同一IP段。

 

为什么,PC无法访问Server?

默认情况下设置端口为trunk时,pvid自动设为1,而设为access时,pvid自动设置为vlan号。

解决办法,把端口1的pvid设置为35。

 

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!