集線器 不安全、衝突域、帶寬共享
交換機 基於目標MAC地址轉發、學習MAC地址、端口獨享帶寬、沒有衝突、廣播會出問題
>enable
#show mac-address-table 顯示MAC地址表
#config terminal
(config)#interrface fastEthernet 0/4
(config-if)#switchport mode access 接機算機的接口
(config-if)#switchport port-security 啓用安全
(config-if)#switchport port-security violation shutdown 違反安全規則down掉
(config-if)#switchport port-security maxium 2 限制連接數量
(config)#interrface range fastEthernet 0/1 - 24 選中1-24個口
(config-if-range)#switchport port-security mac-adddress sticky MAC地址終止學習
生成樹協議
爲了高可用局域網交換機連接有了環路
爲了阻斷網絡中的廣播有了生成樹協議
#show spanning-tree 查看交換機端口以及生成樹狀態
(config)#spanning-tree vlan 1 priority 4096更改路由器優先級爲4096,值越小優先級越高
(config)#no spanning-tree vlan 1 關閉生成樹協議
交換機 基於目標MAC地址轉發、學習MAC地址、端口獨享帶寬、沒有衝突、廣播會出問題
>enable
#show mac-address-table 顯示MAC地址表
#config terminal
(config)#interrface fastEthernet 0/4
(config-if)#switchport mode access 接機算機的接口
(config-if)#switchport port-security 啓用安全
(config-if)#switchport port-security violation shutdown 違反安全規則down掉
(config-if)#switchport port-security maxium 2 限制連接數量
(config)#interrface range fastEthernet 0/1 - 24 選中1-24個口
(config-if-range)#switchport port-security mac-adddress sticky MAC地址終止學習
生成樹協議
爲了高可用局域網交換機連接有了環路
爲了阻斷網絡中的廣播有了生成樹協議
#show spanning-tree 查看交換機端口以及生成樹狀態
(config)#spanning-tree vlan 1 priority 4096更改路由器優先級爲4096,值越小優先級越高
(config)#no spanning-tree vlan 1 關閉生成樹協議