switchport protected 

3560设备环境

当端口的 switchport mode dynamic 进行 

         sw ho 操作

         不会中断

         sw mo tr  会中断,如果你是acc业务,就不会影响,原理就不一样了,

         

switchport trunk encapsulation dot1q
         switchport mode access

         上面这两句同时存在时,同交换机两台电脑互PING会出现问题,


no spanning-tree portfast

        sw protected 会立即生效

        no sw protected 在10-15个Timeout包之后即可恢复


 当接入 spanning-tree bpduguard enable 时,如果终端上有虚拟机等,虚拟多个网卡或是IP地址,也会产生bpdu包,最后被err-dis




防止DHCP