双 LAN 工作站上的默认 Internet 连接 [英] Default Internet connection on Dual LAN Workstation

查看:57
本文介绍了双 LAN 工作站上的默认 Internet 连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

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

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

问题是我不想将 10.16.xx 网络上的带宽用于互联网流量等(该网络基本上仅用于内部数据,尽管它确实可以访问互联网)所以我想系统将 10.17.xx 连接用于 LAN 外部的任何内容(当然也适用于 10.17.xx 上的任何内容,并且仅将 10.16.xx 连接用于那个特定局域网.

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.

我已经尝试查看 Windows 的路由"命令,但它相当令人困惑,并且似乎不会让我删除我认为会干扰我想要它执行的操作的路由.有没有更好的方法来做到这一点?有什么好的软件可以分割你的局域网访问吗?

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?

推荐答案

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

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>

将通过 10.17.x.x 网关路由所有默认流量,如果您发现它仍然通过另一个接口路由,则应确保新规则的度量标准低于现有路由.例如,通过在上一行的末尾添加 METRIC 1 来实现这一点.

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.

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

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.

这篇关于双 LAN 工作站上的默认 Internet 连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆