设为首页收藏本站language 语言切换
查看: 3168|回复: 6
收起左侧

[分享] Cisco 3550交换机实现MAC和交换机端口绑定

[复制链接]
发表于 2010-6-18 09:19:31 | 显示全部楼层 |阅读模式

Cisco 3550交换机实现MAC和交换机端口绑定



Cisco 3550交换机实现MAC和交换机端口绑定Cisco 3550交换机 利用Port-Security功能实现MAC和交换机端口绑定
  以下是一个配置实例:
  switch#config t
  switch(config)#int f0/1
  switch(config-if)#switchport mode access
  //设置交换机的端口模式为access模式,注意缺省是dynamic
  //dynam ic模式下是不能使用Port-security功能
  switch(config-if)#switchport port-security
  //打开port-security功能
  switch(config-if)#switchport port-security mac-address xxxx.xxxx.xxxx
  //xxxx.xxxx.xxxx就是你要关联的mac地址
  switch(config-if)#switchport port-security maximum 1
  //其实缺省就是1
  switch(config-if)#switchport port-security violation shutdown
  //如果违反规则,就shutdown端口
  //这个时候你show int f0/1的时候就会看到接口是err-disable的
  附:
  switchport port-security命令语法
  Switch(config-if)#switchport port-security ?
  aging        Port-security aging commands
  mac-address  Secure mac address
  //设置安全MAC地址
  maximum      Max secure addresses
  //设置最大的安全MAC地址的数量,缺省是1
  violation    Security violation mode
  //设置违反端口安全规则后的工作,缺省是shutdown



TOP

发表于 2010-6-18 09:21:38 | 显示全部楼层
    楼主辛苦辛苦。
沙发 2010-6-18 09:21:38 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2010-6-19 15:40:28 | 显示全部楼层
楼主有心了。
板凳 2010-6-19 15:40:28 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2010-6-22 19:37:03 | 显示全部楼层
开始多来着地方
地板 2010-6-22 19:37:03 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2011-1-30 19:02:15 | 显示全部楼层
这个已经学过了```路过也支持
5# 2011-1-30 19:02:15 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2020-7-27 20:24:46 | 显示全部楼层
感谢楼主的分享
7# 2020-7-27 20:24:46 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-4-26 12:41 , Processed in 0.084842 second(s), 24 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表