接触了一些cisco和3com的交换机,我想说说我对交换机端口模式的理解
思科cisco的multivlan和trunk是可以令一个端口同时属于多个vlan,但multivlan只是在很少交换机(3750)或早期交换机有得配.新版本ios交换机几乎都没有此模式配端口了.
配了trunk就只能是用于交换机之间或者交换机与路由器之间相连.用于交换机与路由器相连时,一般是作Vlan间路由用.而用于交换机之间相连是作交换机间共享VLAN信息用.
华为3com有些交换机就有端口的hybrid属性和trunk属性.也可以令一个端口同时属于多个vlan,但hybrid属性灵活,可以连主机.甚至在实现VLAN间访问控制时挺特别.有关知识请参考华为3com的资料.
multi
Set the port to multi-VLAN port mode. The port operates as a nontrunking VLAN interface that transmits and receives nonencapsulated frames. A multi-VLAN port can be assigned to one or more VLANs.
(multivlan是不加tag的
仅部分交换机支持switchport multi vlan {add vlan-list | remove vlan-list} 也就是表明CISCO不怎么推荐用此模式)
trunk
Set the port to a trunking VLAN Layer-2 interface. The port transmits and receives encapsulated (tagged) frames that identify the VLAN of origination. A trunk is a point-to-point link between two switches or between a switch and a router.
到此对交换机端口的模式(或属性)作了简单介绍.希望对你有些帮助.