You can't have multiple default gateways in your routing table because your PC will not always know the same path for your default route to the internet (0.0.0.0 /0).
The VM decides to use ZeroTier gateway as the default route, but ZT doesn't have a path to the internet. In order to verify this, do the following:
Go to cmd.exe
type: route print
You will see this. You are interested in 0.0.0.0 /0.
Here you see two entries to GATEWAY. Your PC will not always choose the correct path. If it chose ZeroTier gateway, you can't ping yahoo.com. You want it to choose 192.168.1.1 GATEWAY.
In order to fix this, Control Panel -> Network and Sharing Center -> Change Adapter Settings
Right Click the ZeroTier Adapter and click Properties
Click Internet Protocol version 4 and click Properties
Delete the default gateway. Who told you to type this in the first place?
Type route print at CMD box. You should see just entry now. You are set.
To delete a route in command line:
- Run as administrator or sudo -i
- route delete 0.0.0.0 and press Enter to delete the routing table entry for the default gateway.
- Type route print and press Enter.
- Type ping 8.8.8.8 to test Internet connectivity. The ping should fail.
To add a route:
- Type route add 0.0.0.0 mask 0.0.0.0 192.168.1.1 metric 1 Then press Enter.
- Type ping 8.8.8.8 to test Internet connectivity. The ping should be successful.
- use ipconfig /renew to update your DHCP-assigned IP address and default gateway.
route -p add 0.0.0.0 mask 0.0.0.0 192.168.1.1 metric 1
What it should look like. Just one row of 0.0.0.0 / 192.168.1.1



