日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

计算机的mac被交换机绑定,交换机MAC地址绑定

發布時間:2024/1/1 编程问答 23 豆豆
生活随笔 收集整理的這篇文章主要介紹了 计算机的mac被交换机绑定,交换机MAC地址绑定 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

需求:

1.要求交換機實現mac地址綁定,一個端口對應一個MAC地址,非法pc機連接不上,但是此端口并不斷開,只能此MAC——pc機能連上

2.一個端口綁定多MAC地址

需求1

>en

#config terminal

(config)#errdisable recovery cause psecure-violation

(config)#errdisable recovery interval 60

(config)#interface GigabitEthernet0/6

(config-if)#switchport mode access

(config-if)#switchport port-secruity

(config-if)#switchport port-secruity maximum 1

(config-if)#switchport port-security mac-address xxxx.xxxx.xxxx

(config-if)#switchport port-security violation shutdown

cisco交換機默認都是動態安全端口secureDynamic,所以開啟粘滯安全端口實現mac綁定,省去了靜態端口配置

switchport port-security mac-address sticky

出現違例時間時的懲罰措施

switchport port-security violation 模式

模式分為三種 :

protect:僅丟棄非法的數據幀

restrict:丟棄非法的數據幀,同時產生一個syslog消息

shutdown:將端口設置成err-disable,接口不可用,同時產生一個syslog消息

switchport port-security violation shutdown 這種情況下,由于被懲罰進入了err-disable,需要手動開啟端口,有兩種方法開啟:

1.使用全局配置命令:err-disable recovery psecure-violation

2.手工將特定的端口shutdown再noshutdown

需求2

#config terminal

(config)#interface GigabitEthernet0/6

(config-if)#switchport mode access

(config-if)#switchport port-secruity

(config-if)#switchport port-secruity maximum 1

(config-if)#switchport port-security mac-address xxxx.xxxx.xxxx

(config-if)#switchport port-security mac-address xxxx.xxxx.xxxx

(config-if)#switchport port-security violation restrict

總結

以上是生活随笔為你收集整理的计算机的mac被交换机绑定,交换机MAC地址绑定的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。