• on all access ports that we want  BPDU Guard and Port fast we will do:

 

switch(config-if)#spanning-tree port fast

switch(config-if)#spanning-tree bpdu-guard