On a windows7 machine I was trying to set the standard gateway following this example:
netsh.exe interface ipv4 set route 0.0.0.0/32 "Internet" 172.16.5.1
which returned the following error:
The filename, directory name, or volume label syntax is incorrect
Why is that the case, and how can I fix set the standard gateway for my connections?
0.0.0.0/32
? This won’t ever match anything, except0.0.0.0
.0.0.0.0/8
is a reserved net.netsh interface ipv4 show route
and you’ll see the default gateway has0.0.0.0/0
as its target network.