On 2015-08-16 10:06, tsu2 wrote:
>
> Recommend execute an unsolicited arp on resume.
I don’t see how to do that, but it will not work. (Ok, found the way, but does not work. See below).
minas-tirith:~ # arp -s oldrouter f8:1a:67:91:f4:22
minas-tirith:~ # ping -c 2 oldrouter
PING oldrouter (192.168.1.5) 56(84) bytes of data.
--- oldrouter ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 999ms
minas-tirith:~ #
The entry for the oldrouter (ak AP-2) is there, yet pings fail.
But:
minas-tirith:~ # iwconfig
eth0 no wireless extensions.
lo no wireless extensions.
wlan0 IEEE 802.11bgn ESSID:"En...."
Mode:Managed Frequency:2.472 GHz Access Point: F8:8E:85:64:78:F3
Bit Rate=65 Mb/s Tx-Power=14 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=68/70 Signal level=-42 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:35 Missed beacon:0
minas-tirith:~ #
Notice the MAC of the wlan0 access point, it is not that in the ARP table. Ah, of course, I was using the ethernet MAC, which is different.
minas-tirith:~ # arp -s oldrouter F8:8E:85:64:78:F3
minas-tirith:~ # ping -c 2 oldrouter
PING oldrouter (192.168.1.5) 56(84) bytes of data.
From router.valinor (192.168.1.1): icmp_seq=2 Redirect Host(New nexthop: oldrouter (192.168.1.5))
From router.valinor (192.168.1.1) icmp_seq=2 Redirect Host
--- oldrouter ping statistics ---
2 packets transmitted, 0 received, +1 errors, 100% packet loss, time 999ms
minas-tirith:~ #
So no, that’s wrong.
I’m starting to think it is a WiFi association issue.
Description of “everything arp” including command to execute an
unsolicited arp (ie broadcast your machine’s IP on your own and not in
response to an arp query)
2.1. Address Resolution Protocol (ARP)
No go:
minas-tirith:~ # ping -c 2 oldrouter
PING oldrouter (192.168.1.5) 56(84) bytes of data.
From minas-tirith.valinor (192.168.1.129) icmp_seq=1 Destination Host Unreachable
From minas-tirith.valinor (192.168.1.129) icmp_seq=2 Destination Host Unreachable
--- oldrouter ping statistics ---
2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 999ms
pipe 2
minas-tirith:~ # arping -q -c 3 -U -I wlan0 192.168.1.129
minas-tirith:~ # ping -c 2 oldrouter
PING oldrouter (192.168.1.5) 56(84) bytes of data.
--- oldrouter ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1000ms
minas-tirith:~ #
minas-tirith:~ # arp
Address HWtype HWaddress Flags Mask Iface
oldrouter ether f8:1a:67:91:f4:22 C wlan0
router.valinor ether f8:8e:85:64:78:f2 C wlan0
minas-tirith:~ # ping -c 2 oldrouter
PING oldrouter (192.168.1.5) 56(84) bytes of data.
--- oldrouter ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1000ms
minas-tirith:~ #
See? the command populates the ARP table, but the found MAC is that of the ethernet cable, whereas I’m connected to the AP of the same device.
To reach that MAC, the packet has to go to the AP-2, then traverse the cable to the main router (GW), and then back on the same cable to the aux router (AP-2)… Ugh. Ugly.
–
Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 “Bottle” (Minas Tirith))