Initially I had a raspberry pi/pi2 on my network beating my router dhcp server and serving up IPs and because of some default options Windows clients started receiving the IP address of the pi2 dhcp server as its gateway. I fixed that by adding specific gateway router option to my dhcpd config on the raspberry pi.
But apparently on my Windows 10pc .200 I keep getting this seeming manual route (regardless if over wifi or lan) to one of my PCs lets call it 192.168.1.100 with netmask 255.255.255.255 and gateway 192.168.1.50 (pi2 address)
So when I do route print it gives:
192.168.1.100 255.255.255.255 192.168.1.50 192.168.1.200 26
So because of this I can't connect/ping from my Windows 10pc to the .100 ip
It will work after I route delete -p 192.168.1.100 but later it re-adds itself
netsh interface ipv4 show route:
No Manual 1 192.168.1.100/32 10 192.168.1.50
I looked in registry and I didn't see any persistent routes in there (Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\PersistentRoutes )
How can I tell from where/how this phantom network route keeps coming back?
UPDATE: I just came back to use PC and again I found that route was re-added:
192.168.1.100 255.255.255.255 192.168.1.50 192.168.1.200 26
and when I do arp -a I no longer see an entry at all for 192.168.1.100 and I can't ping or connect to .1.100 until I again route delete it.