设置Switchport port-security violation shutdown 后用不合法的MAC地址链接该端口,端口会shutdown并置为err_disable状态.此时仅仅shutdown 和 no shutdown该端口仍是不能启用,须要先清除err_disable状态.ide
检查端口状态it
show interfaces status err_disableio
查看该端口是否为err_disableclass
恢复:端口
全局模式:errdisable recovery cause psecure-violationdi
而后在shutdown和no shutdown 该端口. view