I have 5 PCs with public IPs connected to internet, through a switch and a router. One of them is used only by me, but today I needed to connect to the internet another PC, so I disconnected my Ethernet cable, put my IP in the new PC, connected the new PC on the switch (in other port), but this PC did not connected to internet. I had to restart it, and it worked, but I don't know if there is another solution which doesn't imply restarting. (I wonder if there is any association between IP and MAC at the switch...)
Clear ARP cache
Switch expected the IP you used to be mapped to MAC of other machine you originally had IP tied to.
Clear arp and/or routing table.
Rebooting PC after changing IP basically did that.
PC reboots and the arp binding process kicked off when connected back to switch and the learned the new IP to Mac binding (arp cache)
It's a normal behaviour, The switches has something named MAC tables which indicates where the traffic has to be forwarded. When you move the PC to another port the table keeps forwarding the traffic to the previous port, that is the reason your PC is unreachable a few seconds some times minutes. A easy way to solve the problem is flushing the MAC Table or refresh it. Try to run a ping from the PC with the problem to another PC o Device in your network to force MAC table to be refresh it.
port 1 -> PC1 (0:92:1c:5b:9d:eb) port 2 -> Nothing connected here
if you move the PC1 to port 2 of the switch. The switch keeps forwarding the traffic to port 1 because it hasn't refresh the MAC table
port 1 -> Nothing connected here, but the switch believe than PC1 is here port 2 -> PC1 (0:92:1c:5b:9d:eb)