Question

Is it possible to determine programmatically what jack on a network switch a computer is connected to?

Was it helpful?

Solution

It's either possible or not possible, depending on the switch.

If it's a managed switch, you could query its management interface to determine the MAC addresses behind each port. Then you could match that up with the hardware address on the computer you're interested in.

Some switches have discovery protocols (such as CDP or LLDP) which will broadcast the port's identity to whichever devices are attached. You could sniff the network for these packets to determine the port your computer is connected to.

OTHER TIPS

You can try disonnecting them one by one and each time testing if the network connection goes down.

To identify switch port connected to your pc ; you need to manually access the switch and remove ur rj-45 cable so you can visualize any port having state of disconnection.. dm gui can be used if switch is managable

cdp and lldp wont work for pc as it doesnt support it

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top