
The IPv4 prefix 169.254/16 is registered with the IANA for this When a host wishes to configure an IPv4 Link-Local address, it selectsĪn address using a pseudo-random number generator with a uniformĭistribution in the range from 169.254.1.0 to 169.254.254.255 See RFC 3927, Dynamic Configuration of IPv4 Link-Local Addresses: IPv4 link-local addresses are randomly chosen by a device, then a check is performed to see if another device on the LAN has the same address (Duplicate Address Detection). There are also some other, proprietary protocols around but LLDP and CDP are more common. You could try to listen to LLDP (Link-Layer Discovery Protocol) or CDP (Cisco Discovery Protocol) frames, advertising the switch and its IP address on its ports (when activated). Historically, there's Reverse ARP but nobody's using that. How to find the switch IP address based on MAC address? DNS translates (human-readable) host names to IP addresses, but without the changes above there's no IP connectivity. Trying some ARP workaround (configure a static ARP entry on the PC like 192.168.2.2 for the switch's MAC) won't help because you'd get the switch to receive the frame and extract the IP packet, but since the destination IP isn't local it'd be ignored (a layer-3 switch would even try to forward the packet).ĭNS doesn't help here.

Alternatively, the switch could have another routable IP address and there's a router willing to forward in between. Either the PC needs to have an (additional) IP address within 169.254.0.0/16 or the switch needs to have an IP address within (assuming) 192.168.2.0/24. How would I be able to open an SSH connection with the device knowing only it's MAC adress? If you've configured the switch as a DHCP server then you will need to configure a static address.

If you've configured the switch as a DHCP client then your DHCP server isn't working. This means that these two cannot talk to each other - they're both part of different IP networks and there's no router in betweeen (which isn't possible because of the unroutable .y address).

On PC, the extra network adapter is configured as static 192.168.2.1.Ī switch with DHCP enabled is connected to 192.168.2.1 and if I login using the console (RS232) I see that it has .x source: link-local, MAC: xx:xx.
