我可以通过Windows命令的专用NIC发送多播数据包吗?

发布于 2025-01-30 09:46:07 字数 221 浏览 3 评论 0原文

我的基于Windows的计算机中有2个NIC,NIC的一个IP地址为192.168.1.x/24,另一个是192.168.2.x/24。基于Windows的计算机运行了一个应用程序,需要将多播数据包229.255.10.1通过NIC发送。但是,只能从NIC 192.168.1.x/24发送多播数据包229.255.10.1。我可以使用路由添加-P Windows命令来从NIC 192.168.2.x/24中发送多播数据包吗?

There are 2 NICs in my Windows-based machine, the IP address of one of NICs is 192.168.1.x/24 and the other one is 192.168.2.x/24. The Windows-based machine run an application that need to send out the multicast packet 229.255.10.1 through two of the NIC. However, the multicast packet 229.255.10.1 can be sent out from the NIC 192.168.1.x/24 only. Can I use route add -p Windows Command to send out the multicast packet from the NIC 192.168.2.x/24?

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

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

发布评论

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

评论(1

秋叶绚丽 2025-02-06 09:46:07

认为您可以使用:

route -p add 229.255.10.1 mask 255.255.255.255 192.168.2.x metric 1

其中192.168.2.x是您在NIC上的IP

我 。如果第二个NIC是一个VPN客户端,则这是一个问题,并且它在应用程序之后开始

I think you can use:

route -p add 229.255.10.1 mask 255.255.255.255 192.168.2.x metric 1

where 192.168.2.x is your IP on nic 2

It remains only a problem that I haven't found a solution yet: if your application send a packet before you add the root, you need to reboot PC. This is a problem if the second NIC is, for example, a VPN client and it starts after the application

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