2
1
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?
What are you trying to accomplish by
0.0.0.0/32
? This won’t ever match anything, except0.0.0.0
.0.0.0.0/8
is a reserved net. – Daniel B – 2014-07-22T12:31:54.277@Daniel: So the example in the link given does not make any sense? – Alex – 2014-07-23T05:29:26.177
1Exactly, it’s simply wrong. You can easily check this yourself: run
netsh interface ipv4 show route
and you’ll see the default gateway has0.0.0.0/0
as its target network. – Daniel B – 2014-07-23T05:54:08.700