免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2378 | 回复: 4
打印 上一主题 下一主题

port security怎么没效果 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-10-21 11:52 |只看该作者 |倒序浏览
Current configuration : 14892 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname jiaoxuelou-2
!
enable secret 5 ···!
errdisable recovery cause psecure-violation
errdisable recovery interval 30
ip subnet-zero
!
ip dhcp snooping vlan 8
ip dhcp snooping
!
spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
!
!
!
!
interface FastEthernet0/1
switchport access vlan 6
switchport mode access
switchport port-security
switchport port-security maximum 5
switchport port-security aging time 2
switchport port-security aging type inactivity
switchport port-security mac-address sticky
!
interface FastEthernet0/2
switchport access vlan 8
switchport mode access
switchport port-security
switchport port-security maximum 5
switchport port-security aging time 2
switchport port-security aging type inactivity
switchport port-security mac-address sticky
switchport port-security mac-address sticky 0011.5b18.a56f
!
interface FastEthernet0/3
switchport access vlan 6
switchport mode access
switchport port-security
switchport port-security maximum 5
switchport port-security aging time 2
switchport port-security aging type inactivity
switchport port-security mac-address sticky
!
interface FastEthernet0/4
switchport access vlan 6
switchport mode access
switchport port-security
switchport port-security maximum 5
switchport port-security aging time 2
switchport port-security aging type inactivity
switchport port-security mac-address sticky
switchport port-security mac-address sticky 0040.63db.1aab
!
interface FastEthernet0/5
switchport access vlan 6
switchport mode access




这是我的配置,我在其中一台计算机上用网络执法官,按理说我的端口应该shutdown掉,怎么没反应呢?mac地址数超过5的话就应该down了呀。求各味大虾帮忙分析一下!!!!不胜感激!!!!

论坛徽章:
0
2 [报告]
发表于 2006-10-25 13:04 |只看该作者
switchport port-security violation shutdown
这个命令执行了吗?

论坛徽章:
0
3 [报告]
发表于 2006-10-27 23:13 |只看该作者
楼上说得对

论坛徽章:
0
4 [报告]
发表于 2006-11-01 20:42 |只看该作者
Switch(config)#Mac access-list extended MAC20
Switch(config)#permit host 0011.5b18.a56f
Switch(config)#permit any host 0011.5b18.a56f
Switch(config-if )#interface Fa0/2
Switch(config-if )#mac access-group MAC20 in


再加上这个试试

[ 本帖最后由 jk0wg 于 2006-11-3 09:35 编辑 ]

论坛徽章:
0
5 [报告]
发表于 2006-11-07 11:28 |只看该作者
在使用网络执法官后你可以执行sh mac-add | include fastx/y端口看下当前该端口实际上有多少个MAC地址,对CISCO 12.1的IOS,我做过很多都是可以的
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP