I'm trying to disable internet use while allowing the LAN (via a Wi-Fi router) to keep working, as is described here and here.
When I use route delete /p 0.0.0.0 mask 0.0.0.0 to remove the default gateway and then create another default gateway entry that points to a nonexistent address instead of the actual gateway, this successfully removes the correct default route for a short while but something then restores it.
Using the /p switch for persistence doesn't make any difference.
If I use route add /p 0.0.0.0 mask 128.0.0.0 and route add /p 128.0.0.0 mask 128.0.0.0 to add dummy routes with a higher precedence, this also makes no difference — for a while it works, then something restores the default route and internet access works when it shouldn't.
How do I make the change to the route table truly persistent, and/or identify what is restoring the unwanted default route and stop it?