0

I have a problem with broadcasting data when I'm using class B of netmask. For example I have 3 PC's with these configs:

PC1: IP Address: 192.168.1.10 Netmask: 255.255.0.0

PC2: IP Address: 192.168.1.11 Netmask: 255.255.0.0

PC3: IP Address: 192.168.2.5 Netmask: 255.255.0.0

I want to send a broadcast packet from PC1 to PC's in range 1 only (PC2 in this example). But as I found I should use 192.168.255.255 as broadcast address that sends the packet to PC2 and PC3 together. I can't use something like 192.168.1.255 to send the packet to PC2 only. Is there any way to send packet to range 1 only?

Thanks in advance

4

1 回答 1

0

网络方面,所有机器都在同一个子网(范围)中。因此,广播将始终针对该子网上的所有节点。根据你在做什么,我建议:

  • 使用多播
  • 教您的接收节点忽略不适合它们的数据包
于 2012-06-08T13:37:24.083 回答