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