
Hello LUGgers. Here is an interesting mystery for anyone interesting. I'd love if anyone could explain it. The following is cut and paste directly from my bash session and not edited in anyway. What the $*#$^ is going on here? I have reset all the routers between these two machines in case somehow they were responding to ARP requests instead of the target machine. I've done everything except for resetting the target itself. Also I have a daemon on the target which is doing 'C' system calls with getifaddrs(&ifap) library calls and it reports back both 192.168.11.50 and 192.168.11.133 even though ifconfig does not. Anybody have a clue what is going on here? cheers, Darryl ---------------------------------- darryl@darryl-Aspire-V3-575:~$ darryl@darryl-Aspire-V3-575:~$ darryl@darryl-Aspire-V3-575:~$ darryl@darryl-Aspire-V3-575:~$ ssh root@192.168.11.133 Warning: Permanently added '192.168.11.133' (ECDSA) to the list of known hosts. Welcome to Ubuntu 16.04 LTS (GNU/Linux 4.4.0-64-generic i686) * Documentation: https://help.ubuntu.com/ 658 packages can be updated. 406 updates are security updates. New release '18.04.2 LTS' available. Run 'do-release-upgrade' to upgrade to it. You have new mail. Last login: Thu Feb 21 14:45:01 2019 from 192.168.11.127 root@elp123456:~# ifconfig eth0 Link encap:Ethernet HWaddr 00:f1:f3:8f:05:7d inet addr:192.168.11.50 Bcast:192.168.11.255 Mask:255.255.254.0 inet6 addr: fe80::2f1:f3ff:fe8f:57d/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1269911 errors:0 dropped:1065 overruns:0 frame:0 TX packets:682949 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:214230001 (214.2 MB) TX bytes:129622352 (129.6 MB) eth0:2 Link encap:Ethernet HWaddr 00:f1:f3:8f:05:7d inet addr:192.168.9.1 Bcast:192.168.9.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:2264301 errors:0 dropped:0 overruns:0 frame:0 TX packets:2264301 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1 RX bytes:1188627720 (1.1 GB) TX bytes:1188627720 (1.1 GB) tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:10.8.1.245 P-t-P:10.8.1.245 Mask:255.255.0.0 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:214252 errors:0 dropped:0 overruns:0 frame:0 TX packets:214990 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:12935258 (12.9 MB) TX bytes:69517662 (69.5 MB) root@elp123456:~#

try running "ip addr" There are some aliases that will not be reported back by ifconfig. On 2/21/19 2:55 PM, Darryl Moore via talk wrote:
Hello LUGgers.
Here is an interesting mystery for anyone interesting. I'd love if anyone could explain it. The following is cut and paste directly from my bash session and not edited in anyway. What the $*#$^ is going on here?
I have reset all the routers between these two machines in case somehow they were responding to ARP requests instead of the target machine. I've done everything except for resetting the target itself. Also I have a daemon on the target which is doing 'C' system calls with getifaddrs(&ifap) library calls and it reports back both 192.168.11.50 and 192.168.11.133 even though ifconfig does not.
Anybody have a clue what is going on here?
cheers, Darryl
----------------------------------
darryl@darryl-Aspire-V3-575:~$ darryl@darryl-Aspire-V3-575:~$ darryl@darryl-Aspire-V3-575:~$ darryl@darryl-Aspire-V3-575:~$ ssh root@192.168.11.133 Warning: Permanently added '192.168.11.133' (ECDSA) to the list of known hosts. Welcome to Ubuntu 16.04 LTS (GNU/Linux 4.4.0-64-generic i686)
* Documentation: https://help.ubuntu.com/
658 packages can be updated. 406 updates are security updates.
New release '18.04.2 LTS' available. Run 'do-release-upgrade' to upgrade to it.
You have new mail. Last login: Thu Feb 21 14:45:01 2019 from 192.168.11.127 root@elp123456:~# ifconfig eth0 Link encap:Ethernet HWaddr 00:f1:f3:8f:05:7d inet addr:192.168.11.50 Bcast:192.168.11.255 Mask:255.255.254.0 inet6 addr: fe80::2f1:f3ff:fe8f:57d/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1269911 errors:0 dropped:1065 overruns:0 frame:0 TX packets:682949 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:214230001 (214.2 MB) TX bytes:129622352 (129.6 MB)
eth0:2 Link encap:Ethernet HWaddr 00:f1:f3:8f:05:7d inet addr:192.168.9.1 Bcast:192.168.9.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:2264301 errors:0 dropped:0 overruns:0 frame:0 TX packets:2264301 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1 RX bytes:1188627720 (1.1 GB) TX bytes:1188627720 (1.1 GB)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:10.8.1.245 P-t-P:10.8.1.245 Mask:255.255.0.0 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:214252 errors:0 dropped:0 overruns:0 frame:0 TX packets:214990 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:12935258 (12.9 MB) TX bytes:69517662 (69.5 MB)
root@elp123456:~# --- Talk Mailing List talk@gtalug.org https://gtalug.org/mailman/listinfo/talk
-- Alvin Starr || land: (905)513-7688 Netvel Inc. || Cell: (416)806-0133 alvin@netvel.net ||

Thanks for that. I see it there. WTF? Any idea why I don't see it with ifconfig? On 2019-02-21 03:01 PM, Alvin Starr via talk wrote:
try running "ip addr"
There are some aliases that will not be reported back by ifconfig.
On 2/21/19 2:55 PM, Darryl Moore via talk wrote:
Hello LUGgers.
Here is an interesting mystery for anyone interesting. I'd love if anyone could explain it. The following is cut and paste directly from my bash session and not edited in anyway. What the $*#$^ is going on here?
I have reset all the routers between these two machines in case somehow they were responding to ARP requests instead of the target machine. I've done everything except for resetting the target itself. Also I have a daemon on the target which is doing 'C' system calls with getifaddrs(&ifap) library calls and it reports back both 192.168.11.50 and 192.168.11.133 even though ifconfig does not.
Anybody have a clue what is going on here?
cheers, Darryl
----------------------------------
darryl@darryl-Aspire-V3-575:~$ darryl@darryl-Aspire-V3-575:~$ darryl@darryl-Aspire-V3-575:~$ darryl@darryl-Aspire-V3-575:~$ ssh root@192.168.11.133 Warning: Permanently added '192.168.11.133' (ECDSA) to the list of known hosts. Welcome to Ubuntu 16.04 LTS (GNU/Linux 4.4.0-64-generic i686)
* Documentation: https://help.ubuntu.com/
658 packages can be updated. 406 updates are security updates.
New release '18.04.2 LTS' available. Run 'do-release-upgrade' to upgrade to it.
You have new mail. Last login: Thu Feb 21 14:45:01 2019 from 192.168.11.127 root@elp123456:~# ifconfig eth0 Link encap:Ethernet HWaddr 00:f1:f3:8f:05:7d inet addr:192.168.11.50 Bcast:192.168.11.255 Mask:255.255.254.0 inet6 addr: fe80::2f1:f3ff:fe8f:57d/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1269911 errors:0 dropped:1065 overruns:0 frame:0 TX packets:682949 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:214230001 (214.2 MB) TX bytes:129622352 (129.6 MB)
eth0:2 Link encap:Ethernet HWaddr 00:f1:f3:8f:05:7d inet addr:192.168.9.1 Bcast:192.168.9.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:2264301 errors:0 dropped:0 overruns:0 frame:0 TX packets:2264301 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1 RX bytes:1188627720 (1.1 GB) TX bytes:1188627720 (1.1 GB)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:10.8.1.245 P-t-P:10.8.1.245 Mask:255.255.0.0 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:214252 errors:0 dropped:0 overruns:0 frame:0 TX packets:214990 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:12935258 (12.9 MB) TX bytes:69517662 (69.5 MB)
root@elp123456:~# --- Talk Mailing List talk@gtalug.org https://gtalug.org/mailman/listinfo/talk

On Thu, 21 Feb 2019 at 15:06, Darryl Moore via talk <talk@gtalug.org> wrote:
Thanks for that. I see it there. WTF? Any idea why I don't see it with ifconfig?
Heh. Because ifconfig is really old, and apparently no longer maintained. http://inai.de/2008/02/19 Mind you, I see that after the 15-ish years of hiatus, some changes have gone in somewhat recently: net-tools (1.60+git20161116.90da8a0-1) unstable; urgency=medium After 15 years without upstream development, net-tools is being worked on again, fixing many long-standing issues. The bad news is that the output of many commands has changed, and it is sure to break scripts that relied on parsing it. If you have customs scripts that use any of these commands, please make sure they still work after this upgrade: netstat, ifconfig, ipmaddr, iptunnel, mii-tool, nameif, plipconfig, rarp, route, slattach, arp. Apologies in advance for the trouble that this may cause, but maintaining a separate version of net-tools just to keep the old format is something I am not able to do. -- Mart_n Ferrari <tincho@debian.org> Mon, 26 Dec 2016 05:29:25 +0000 [Note: My fingers know to use ifconfig, not ip ;-) ] -- When confronted by a difficult problem, solve it by reducing it to the question, "How would the Lone Ranger handle this?"
participants (3)
-
Alvin Starr
-
Christopher Browne
-
Darryl Moore