1. 程式人生 > >思科交換機

思科交換機

思科交換機命令

思科交換機命令

一.交換機的特點

1.集成器 不安全 沖突域 寬帶共享;

2.交換機 基於目標mac地址轉發 學習mac地址;

3.端口獨享寬帶 沒有沖突 廣播FF。

二.交換機端口安全-控制計算機數量:

config t

switch(config)interface fastEthernet 0/4

switch(config)switchport mode access 進入端口

switch(config)switchport port-security 違反安全接口關掉

switch(config)switchport port-security violation shut down

switch(config)switchport port-security maximum 2 最多接2個計算機

switch(config)show mac-address-table 查看交換機MAC地址

技術分享



三.交換機端口安全-綁定MAC地址:

config t

switch(config)interface range fastEthernet 0/1 - 24 接口範圍

switch(config)switchport port-security mac-address sricky

綁定現有的MAC地址

switch(config)switchport mode access

switch(config)switchport port-security

switch(config)switchport port-swcurity shut down


變成靜態



技術分享



四.生成樹協議:

1.為了高可用 局域網 交換機連接 有了環路

2.為了阻斷網絡中的廣播 有了生成樹的協議


生成樹:

1.選擇根交換機

2.選擇根端口

3.每個網線段選擇一個指定端口


五.更改成為根交換機的優先級:

config t

switch#show spanning-tree 查看交換機端口

技術分享

switch(config)spanning-tree vlan 1 priority 4096

更改成為根交換機的優先級 值越小 優先級越高

技術分享

switch(config)no spanning-tree vlan 1

關閉生成樹協議




本文出自 “若★影” 博客,請務必保留此出處http://denglu.blog.51cto.com/10144045/1925719

思科交換機