今天看关CCNA学习指南,对switchportPort-security在3560上面跑遇到了一些问题

SW3560(config-if)#switchportport-securitymac-addresssticky

SW3560(config-if)#switchportport-securitymaximum1
SW3560(config-if)#switchportport-securityviolationshut
SW3560(config-if)#switchportport-security(书上没有这一句做为端口安装启动)

若提示动态端口不能使switchportport-security

那把这端口改为ACCESSMODE

SW3560(config-if)#switchportmodeaccess

结果交换机的灯会变为橙色并没有灭掉

SW3560#shintg0/1

GigabitEthernet0/1isdown,lineprotocolisdown(err-disabled)

日志:

*Mar101:36:01.069:%PM-4-ERR_DISABLE:psecure-violationerrordetectedonGi0/1,puttingGi0/1inerr-disablestate

*Mar101:36:01.077:%PORT_SECURITY-2-PSECURE_VIOLATION:Securityviolationoccurred,causedbyMACaddress0c85.2599.e299onportGigabitEthernet0/1.