基于端口的静态VLAN
直接指示哪些端口是一个VLAN组,比如一个交换机上有8个端口,我们指示1,3,5,7为VLAN1分组,2,4,6,8为VLAN2分组,
不同的交换机之间也可以进行VLAN组别划分。
特点:简单,有效。缺点,当用户更改连线端口时(把一个相连的计算机端口线拔出来插入另一个端口时),需要重新对组别进行划分。
基于IP的动态VLAN
基于IP地址的VLAN,则是通过相连计算机的IP地址进行划分的,当用户改变端口时,只要IP地址不变,组别不用重新划分,但是IP地址是OSI参照第三层信息,
一般路由器和三层交换机都是基于IP地址方法划分VLAN。