I am running most of my computer stuff via an APC UPS that I got from eBay. Having an unscheduled power outage is not a good thing - especially when hard drives are involved - so having some leeway in powering things down is always a good thing.
I had been using a USB cable to control the UPS via a server I have running but I figured I would try to get it on the network so that multiple machines can be informed about the power condition.
To that end, I bought a used AP9619 network management card from eBay (all sorts of stuff there!) which was reset by the seller. However, for the life of me, I could not get it to appear on the network. Some spelunking with Wireshark showed it to be making DHCP requests but for whatever reason, my router wasn't responding.
After a minor struggle I managed to get the thing working. First, you need to have the
arp command available. On Debian, that is in the
net-tools package. Running
sudo arp -s 184.108.40.206 00:11:22:33:44:55 then
sudo ping 220.127.116.11 -s 113, swapping the MAC address of the card and IP address you want the card to have gets your computer and the card talking. The gist of it is you are "stuffing" the ARP table of your computer with the IP address you want the MAC to resolve to and then using the oversized ping packet length, the device in question acknowledges the IP on a temporary basis. With APC network cards, the default credentials are apc:apc, a quick login and you can set the IP permanently. Clean up the ARP table with
sudo arp -d 18.104.22.168.