일반적으로 엑세스 포트(사용자 단말 연결 포트)에는 BPDU가 오면 안 됨
오면 문제가 생겼다고 판단
즉, 2계층 보호를 위해 BPDu 차단

Switch0(config)#spanning-tree vlan 1 priority 4096
Switch1(config)#spanning-tree vlan 1 priority 0


spaninng-tree portfast

Switch0(config-if)#spanning-tree portfast
%Warning: portfast should only be enabled on ports connected to a single
host. Connecting hubs, concentrators, switches, bridges, etc... to this
interface when portfast is enabled, can cause temporary bridging loops.
Use with CAUTION
%Portfast has been configured on FastEthernet0/3 but will only
have effect when the interface is in a non-trunking mode.
Switch0(config-if)#spanning-tree bpduguard enable
shutdownno shutdownSwitch(config)# errdisable recovery cause bpduguard
Switch(config)# errdisable recovery interval 30
위와 같이 자동 설정해줄 수도 있음
BPDU Guard: 엑세스 포트에서 BPDU가 들어오면 허용하지 않은 스위치 연결로 판단, 포트 다운
BPDU Filter: BPDU를 보내지도 않고 받아도 무시하는 기능, STP가 아예 작동하지 않아서 루프가 생길 위험이 큼