添加“链接”路由条目


18

在Windows 7上,我一直在使用命令route add添加带有网关的路由条目。我现在想添加一个没有网关的路由条目,该路由可直接到达。

Windows 7将此类路由称为“联机”。我尝试使用route add命令创建链接上的路由并省略gateway条目,但这没有用。

如何在Windows 7中创建链接路由?

Answers:


35

你需要把0.0.0.0在gateway进入创建一个“链接上”的路线。

例如,在cmd.exe或bash中输入以下命令:

route add 10.10.10.100 mask 255.255.255.0 0.0.0.0


请描述执行此操作所需的步骤。
— gronostaj

如何指定接口?
— Jroonk

IPV6的在线链接是什么?
— Shayan
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.