Windows Server 2003 中的静态 ARP 条目在重新启动时消失
我使用命令行“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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不需要位于域中。 可以做本地组策略,或者启动脚本。 但是,我发现即使注销,静态条目也会消失
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
我不认为已经支持 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.
我有一个不在域中的 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