双 LAN 工作站上的默认互联网连接

发布于 2024-07-04 22:20:01 字数 363 浏览 5 评论 0原文

我知道这不是直接编程,而是关于我正在设置的开发工作站。

我有一台 Windows Server 2003 计算机,需要同时位于两个 LAN 网段上。 其中一个是 10.17.xx LAN,另一个是 10.16.xx

问题是我不想将 10.16.xx 网络上的带宽用于互联网流量等(该网络基本上仅用于内部)的东西,尽管它确实可以访问互联网),所以我希望系统使用 10.17.xx 连接来处理 LAN 外部的任何内容(当然,对于 10.17.xx 上的任何内容,并且只使用 10.16.xx 连接)对于特定 LAN 上的事物,

我尝试查看 Windows“路由”命令,但它相当混乱,并且似乎不允许我删除我认为干扰我的路由。有没有更好的方法来分段 LAN 访问?

I know this is not programming directly, but it's regarding a development workstation I'm setting up.

I've got a Windows Server 2003 machine that needs to be on two LAN segments at the same time. One of them is a 10.17.x.x LAN and the other is 10.16.x.x

The problem is that I don't want to be using up the bandwidth on the 10.16.x.x network for internet traffic, etc (this network is basically only for internal stuff, though it does have internet access) so I would like the system to use the 10.17.x.x connection for anything that is external to the LAN (and for anything on 10.17.x.x of course, and to only use the 10.16.x.x connection for things that are on that specific LAN.

I've tried looking into the windows "route" command but it's fairly confusing and won't seem to let me delete routes tha tI believe are interfering with what I want it to do. Is there a better way of doing this? Any good software for segmenting your LAN access?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

听风吹 2024-07-11 22:20:01

如果您不移动网络电缆并且可以在 10.16.xx 网络上为自己分配静态 IP 地址,则可以避免在该网络上分配网关地址。 如果没有网关,互联网数据包将不会在该接口上路由。

如果您使用 DHCP,静态记录会识别您的 MAC 地址,而不提供网关 IP 地址。

至于使用高级Windows路由,您要查找的路由是0.0.0.0路由(默认路由)。 重要的数字是度量值,它是路由的成本,其中较低的度量往往首先被使用。 您可以直接在 GUI 中设置界面级别的指标。

https://web.archive.org/web/1/http://articles.techrepublic%2ecom%2ecom/i/tr/cms/contentPics/tcpip-F.gif

我相信如果你设置如果 10.16.xx 接口上的接口度量值设置为较高值,则该接口将不会用作网关。

我个人使用的方法是不定义网关 IP。

If you don't move your network cables around and can assign yourself a static IP address on the 10.16.x.x network, you can refrain from assigning a gateway address on that network. If there is no gateway, internet packets will not be routed on that interface.

If you use DHCP, static record to recognize your MAC address and not provide a gateway IP address.

As for using advanced windows routing, the route you are looking for is the 0.0.0.0 route (default route). The important number is the metric value, which is the cost for the route, where the lower metric tends to be used first. You can set the metric at the interface level directly in the GUI.

https://web.archive.org/web/1/http://articles.techrepublic%2ecom%2ecom/i/tr/cms/contentPics/tcpip-F.gif

I believe if you set the interface metric to a high value on the 10.16.x.x interface, it will not be used as a gateway.

Personally I use the method where I refrain from defining a gateway IP.

一花一树开 2024-07-11 22:20:01

我不是网络专家,但我已经多次摆弄路由命令...

route add 0.0.0.0 MASK 0.0.0.0 <address of gateway on 10.17.x.x net>

将通过 10.17.xx 网关路由所有默认流量,如果您发现它仍然通过其他接口路由,您应该确保新规则的度量值低于现有路由。 例如,通过将 METRIC 1 添加到上面行的末尾来执行此操作。

您还可以在 10.17.xx 接口的“高级 TCP/IP 设置”窗口中调整指标,取消选中“自动指标”复选框并将值设置为较低值,例如 1 或 2。

I'm no network expert but I have fiddled with the route command a number of times...

route add 0.0.0.0 MASK 0.0.0.0 <address of gateway on 10.17.x.x net>

Will route all default traffic through the 10.17.x.x gateway, if you find that it still routes through the other interface, you should make sure that the new rule has a lower metric than the existing routes. Do this by adding METRIC 1 for example to the end of the line above.

You could also adjust the metric in the Advanced TCP/IP Settings window of the 10.17.x.x interface, unticking the Automatic Metric checkbox and setting the value to something low, like 1 or 2.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文