安全設置交換機端口 提高網絡安全
作者:佚名 來源:本站 時間:2018-10-07 點擊:92次
基本配置命令:
switch(config)#int f0/0
switch(config-if)#switchport mode access /配置此接口為接入接口,不能是中繼接口/
switch(config-if)#switchport port-security /啟用端口安全/
switch(config-if)#switchport port-security mac-address mac /指定允許向這個接口內發送幀的mac地址。多次使用此命令,可定義多個mac地址/
其它命令:
switch(config-if)#switchport port-security macaddress sticky /與上面命令功能一樣。利用粘帶學習,動態的獲悉和配置當前已連接主機的mac地址/ switch(config-if)#switchport port-security maxinum /指定當前接口最多允許多少個mac地址,默認為一個/ switch(config-if)#switchport port-security violation {protect restrict shutdown} /規定在接收到來自規定地址之外某個mac地址幀時應該采取的動作,默認是關閉該端口/
switch#show port-security int f0/0 /查看接口安全的狀態/
- 上一篇: 網銀安全令人憂 四招確保網銀運用安全
- 下一篇: 有關路由器安全設置詳細介紹