接觸了一些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.
到此對交換機端口的模式(或屬性)作了簡單介紹.希望對你有些幫助.