标记

isl

proprietary(私有)

encapsulated(30字节)protocol independent

encapsulates the old frame in a new frame

802.1q

nonproprietary(公有)

tagged(4字节)效率更高

protocol dependent支持高级qos

adds a field to the frame header

isl封装26字节isl头部和4个字节的crc

802.1q打标记,在原有插入tag标记4个字节。

802.1q natve vlan(本征vlan)默认本征vlan是vlan1

不用打标记

本征vlan只能有一个

本征vlan需要一样不然trunk可能起不来

没有配的vlan可以使用本征vlan

动态trunk

两台交换机发送dtp帧

switchport mode dynamic desirable(设置动态协商模式)

强制trunk后优化

switchport nonegotiate(关闭dtp协商发送帧优化)

switchport trunk native vlan 99(本征vlan99)

switchport trunk allowed vlan 3,5,6(trunk只允许通过的vlan)两边封装类型和本征vlan不一样trunk不会通