Windows Server 2003 中的静态 ARP 条目在重新启动时消失

发布于 2024-07-07 12:22:59 字数 141 浏览 12 评论 0原文

我使用命令行“arp -s IP MAC”命令在 Windows Server 2003 上设置静态 ARP 条目。当我运行“arp -a”时,它作为“静态”条目存在。 当我重新启动时,它就消失了。 有没有像 lmhosts 这样的文件可以让我永久保存? 谢谢!

I used the command line "arp -s IP MAC" command to set a static ARP entry on Windows Server 2003. When I ran "arp -a" it was there as a "static" entry. When I restart, it is gone. Is there some file somewhere like lmhosts where I can make this absolutely permanent?
Thanks!

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

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

发布评论

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

评论(3

遮了一弯 2024-07-14 12:22:59

不需要位于域中。 可以做本地组策略,或者启动脚本。 但是,我发现即使注销,静态条目也会消失

don't need to be in a domain. local group policy can do, or startup script. however, I found even if log off, the static entry will be gone

情深已缘浅 2024-07-14 12:22:59

我不认为已经支持 ARP 条目的持久配置。 但是,您应该能够创建一个每次都执行此操作的引导脚本。

在组策略中,转到计算机配置\Windows 设置\脚本,添加启动脚本。

I don't think there is already support for persistent configuration of ARP entries. However, you should be able to create a boot script that does that every time.

In Group Policy, go to Computer Configuration\Windows Settings\Scripts, add a startup script.

乄_柒ぐ汐 2024-07-14 12:22:59

我有一个不在域中的 Windows Server 2003,因此上面的答案不适用于我,尽管它确实适用于 AD 中的盒子。 下面的 Autoexecnt.bat 脚本对我有用(也适用于 XP):

http://support.微软.com/kb/243486

I had a Windows Server 2003 which wasn't in a domain, so the above answer didn't apply to me, although it does work for a box in an AD. The below Autoexecnt.bat script worked for me (and works in XP, too):

http://support.microsoft.com/kb/243486

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