Automatically discover devices on an IPv6 / IPv4 network

We have Win CE IPv6 / IPv4 devices installed in the room and connected to the network. From time to time, a person came with a laptop, connected it to the network and ran a diagnostic program.
This program should be able to somehow automatically find or detect all of these devices. The catch is that the device’s IP addresses are unknown to diag.

I was looking for local IPv6 link detection, but I'm not quite sure how to check this.

On our LAN, if I ping a known IPv6 address of another computer, it works fine, but if I do it ping -6 fe80 :: 1 I get "Destination host unreachable" and for ping -6 FF02 :: 1 I get Request Timeout

so I'm not sure how to even check for local link detection in windows.

So how can this be done?

+3
source share
4 answers

If the devices support zeroconf , you should be able to use net view "to get a list of local servers. Then you can use the Windows dns implementation to resolve the IP address from the host name. The Ping.exe command would be a shortcut if you want to do all this from the script, as it will take the host name and display the IP address that it pings.

There is probably a more elegant way to use the zeroconf protocol directly, but the above should also work fine.

+1

nmap IP-, os .

Windows: http://nmap.org/download.html

.

+1

IPv4 169.254.254.255 , DHCP , , 255.255.255.255.

IPv6 , IPv6 , ICMP-.

, IP- , ​​ ZeroConf.

+1

LLDP may be useful in this context.

I think that Windows CE does not support it directly, but perhaps you can get the necessary information through a mediation switch - if you are connected to the same switch as the devices, or you have SNMP access to this switch.

+1
source

Source: https://habr.com/ru/post/1733362/


All Articles