用127.0.0.1做网关参数的问题,把这个改成你的本机ip就可以了。另外不要用mask 255.255.255.0
(dest&mask) != dest也会出错。
这是route的帮助信息,不带任何参数直接运行就会显示,不知道你怎么没有看到
MASK Specifies that the next parameter is the 'netmask' value.
netmask Specifies a subnet mask value for this route entry.
If not specified, it defaults to 255.255.255.255.
Invalid MASK generates an error, that is when (DEST & MASK) != DEST.
Example> route ADD 157.0.0.0 MASK 155.0.0.0 157.55.80.1 IF 1
The route addition failed: The specified mask parameter is invalid.
(Destination & Mask) != Destination.