I have a printer that keeps disappearing from the network.
Setup: Printer(static ip) ))) strong wireless link ((( OpenWrt router (hostname mapping) <--> wires to computers (connect to printer via hostname)
Device restarts didn't help. DNS lookups are always working. The IP address is assigned to the device's MAC address in DNSmasq static leases, with no IP address conflicts. It seems to be an ARP issue. Does the router forget the MAC address for it sometimes? LibreNMS has shown it responded well for the past two months, then something changed 2 days ago (but it did get a response 27 minutes ago). I guess the printer could be buggy? Maybe I need to restart harder? Is there a way to know why the ARP is failing? some sort of logging or probing?
root@TP-link-Archer-A6:~# arp
IP address HW type Flags HW address Mask Device
...
192.168.1.108 0x1 0x0 00:00:00:00:00:00 * br-lan
...
root@TP-link-Archer-A6:~# ip neigh show
...
192.168.1.108 dev br-lan used 0/0/0 probes 6 FAILED
...
2601:681:617f:6f5:7446:da57:49bc:f817 dev br-lan used 0/0/0 probes 6 FAILED
...
root@TP-link-Archer-A6:~# ip neigh show | grep 77
root@TP-link-Archer-A6:~# ip neighbor add 192.168.1.108 lladdr 74:29:AF:39:77:3D nud permanent dev br-lan
root@TP-link-Archer-A6:~# arp -s 192.168.1.108 74:29:AF:39:77:3D -i br-lan
root@TP-link-Archer-A6:~# arp
IP address HW type Flags HW address Mask Device
...
192.168.1.108 0x1 0x0 00:00:00:00:00:00 * br-lan
...
root@TP-link-Archer-A6:~# ip neigh show | grep 77
192.168.1.108 dev br-lan lladdr 74:29:af:39:77:3d used 0/0/0 probes 6 STALE
root@TP-link-Archer-A6:~# arp
IP address HW type Flags HW address Mask Device
...
192.168.1.108 0x1 0x2 74:29:af:39:77:3d * br-lan
...
root@TP-link-Archer-A6:~# ping printer.lan
PING printer.lan (192.168.1.108): 56 data bytes
64 bytes from 192.168.1.108: seq=0 ttl=255 time=117.447 ms
64 bytes from 192.168.1.108: seq=1 ttl=255 time=4.975 ms
64 bytes from 192.168.1.108: seq=2 ttl=255 time=3.110 ms
64 bytes from 192.168.1.108: seq=3 ttl=255 time=2.585 ms
^C
--- printer.lan ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 2.585/32.029/117.447 ms
root@TP-link-Archer-A6:~# ip neigh show | grep 77
192.168.1.108 dev br-lan lladdr 74:29:af:39:77:3d used 0/0/0 probes 1 STALE
root@TP-link-Archer-A6:~# ping printer.lan
PING printer.lan (192.168.1.108): 56 data bytes
^C
--- printer.lan ping statistics ---
8 packets transmitted, 0 packets received, 100% packet loss
root@TP-link-Archer-A6:~# ip neigh show | grep 77
root@TP-link-Archer-A6:~# ip neigh show | grep 77
root@TP-link-Archer-A6:~# ping printer.lan
PING printer.lan (192.168.1.108): 56 data bytes
^C
--- printer.lan ping statistics ---
9 packets transmitted, 0 packets received, 100% packet loss
root@TP-link-Archer-A6:~# ping printer.lan
PING printer.lan (192.168.1.108): 56 data bytes
64 bytes from 192.168.1.108: seq=5 ttl=255 time=225.002 ms
64 bytes from 192.168.1.108: seq=7 ttl=255 time=133.938 ms
^C
--- printer.lan ping statistics ---
10 packets transmitted, 2 packets received, 80% packet loss
round-trip min/avg/max = 133.938/179.470/225.002 ms
root@TP-link-Archer-A6:~# ping printer.lan
PING printer.lan (192.168.1.108): 56 data bytes
64 bytes from 192.168.1.108: seq=6 ttl=255 time=460.652 ms
64 bytes from 192.168.1.108: seq=8 ttl=255 time=659.703 ms
64 bytes from 192.168.1.108: seq=10 ttl=255 time=208.943 ms
64 bytes from 192.168.1.108: seq=12 ttl=255 time=958.312 ms
64 bytes from 192.168.1.108: seq=14 ttl=255 time=977.629 ms
64 bytes from 192.168.1.108: seq=16 ttl=255 time=546.929 ms
64 bytes from 192.168.1.108: seq=17 ttl=255 time=176.548 ms
64 bytes from 192.168.1.108: seq=27 ttl=255 time=183.175 ms
64 bytes from 192.168.1.108: seq=31 ttl=255 time=131.461 ms
^C
--- printer.lan ping statistics ---
32 packets transmitted, 9 packets received, 71% packet loss
round-trip min/avg/max = 131.461/478.150/977.629 ms