If I have a educational lab that's commonly used for multiple computers for teaching networking. I'm worried that if they remove the computer to put it in the classroom networking gear and come back but plug it in the wrong port that it would restrict their traffic. My basic port config for the student labs is as follows. If they were to unplug a PC from 5/0/7 and into 5/0/8 would that be restricted still?
interface FastEthernet5/0/7
switchport access vlan 214
switchport mode access
switchport port-security
switchport port-security violation restrict
spanning-tree portfast
exit
interface FastEthernet5/0/8
switchport access vlan 214
switchport mode access
switchport port-security
switchport port-security violation restrict
spanning-tree portfast
exit