频道直达 - 专题 - 新闻 - 技巧 - 组网 - 开发 - 安全 - web编程 - 图像 - 操作系统 - 数据库 - 教育 - 旅游 - 健康 - 时尚 - 驱动 - 软件 - 游戏 - 多媒体 - ERP - 讨论组

Cisco3550实现MAC和交换机端口绑定

来源: 作者:佚名 出处:巧巧读书 2007-09-11 进入讨论组

  利用交换机的Port-Security功能实现

  以下是一个配置实例:

  switch#config t

  switch(config)#int f0/1

  switch(config-if)#switchport mode access

  //设置交换机的端口模式为access模式,注意缺省是dynamic

  //dynamic模式下是不能使用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

正文:http://www.qqread.com/exchange/p330216.html 更多文章 更多内容请看三层交换技术专题交换机与路由器密码恢复交换机的选购专题,或进入讨论组讨论。
收藏此文】【 】【打印】【关闭
相关图文阅读
频道图文推荐
健 康 咨 询
时 尚 咨 询
巧巧读书宗旨
相关专题
讨论组问题推荐
站内各频道最新更新文档
站内最新制作专题
热门关键字导读
Photoshop教 程照片处理 照片制作 PS快捷键 抠图
计 算 机 故 障XP系统修复
艺 术 与 设 计设计 流媒体 设计欣赏 边框
计 算 机 安 全ARP
站内频道文章精选
巧巧电脑频道编辑信箱  告诉我们您想看的专题或文章