ARP cache question

From: Angel Lopez (angel@futur3.com)
Date: Sun Apr 14 2002 - 16:15:34 EDT


Hi,

Why the differences between these commands?

# arp -a
Net to Media Table
Device IP Address Mask Flags Phys Addr
------ -------------------- --------------- ----- ---------------
hme0 obelix 255.255.255.255 08:00:20:f4:bd:9d
hme0 192.168.215.254 255.255.255.255 08:00:20:f4:bd:9d
hme0 profesor-zuloaga 255.255.255.255 SP 08:00:20:a0:70:04
hme0 192.168.215.12 255.255.255.255 08:00:20:9e:97:35
hme0 192.168.215.8 255.255.255.255 08:00:20:a7:e3:9c
hme0 192.168.215.108 255.255.255.255 00:02:b3:2d:13:f1
hme0 BASE-ADDRESS.MCAST.NET 240.0.0.0 SM 01:00:5e:00:00:00
# netstat -p
Net to Media Table
Device IP Address Mask Flags Phys Addr
------ -------------------- --------------- ----- ---------------
hme0 obelix 255.255.255.255 08:00:20:f4:bd:9d
hme0 192.168.215.254 255.255.255.255 08:00:20:f4:bd:9d
hme0 profesor-zuloaga 255.255.255.255 SP 08:00:20:a0:70:04
hme0 192.168.215.12 255.255.255.255 08:00:20:9e:97:35
hme0 192.168.215.8 255.255.255.255 08:00:20:a7:e3:9c
hme0 192.168.215.108 255.255.255.255 00:02:b3:2d:13:f1
hme0 BASE-ADDRESS.MCAST.NET 240.0.0.0 SM 01:00:5e:00:00:00
# ndd -get /dev/arp arp_cache_report
ifname proto addr proto mask hardware addr flags
hme0 192.168.215.254 255.255.255.255 08:00:20:f4:bd:9d
hme0 192.168.213.020 255.255.255.255 08:00:20:a0:70:04 PERM PUBLISH
MYADDR
hme0 192.168.215.012 255.255.255.255 08:00:20:9e:97:35
hme0 192.168.215.008 255.255.255.255 08:00:20:a7:e3:9c
hme0 192.168.215.108 255.255.255.255 00:02:b3:2d:13:f1
hme0 224.000.000.000 240.000.000.000 01:00:5e:00:00:00 PERM MAPPING
# ping zuloaga1
zuloaga1 is alive
# arp -a
Net to Media Table
Device IP Address Mask Flags Phys Addr
------ -------------------- --------------- ----- ---------------
hme0 obelix 255.255.255.255 08:00:20:f4:bd:9d
hme0 zuloaga1 255.255.255.255 08:00:20:c0:9f:cd
hme0 192.168.215.254 255.255.255.255 08:00:20:f4:bd:9d
hme0 profesor-zuloaga 255.255.255.255 SP 08:00:20:a0:70:04
hme0 192.168.215.12 255.255.255.255 08:00:20:9e:97:35
hme0 192.168.215.8 255.255.255.255 08:00:20:a7:e3:9c
hme0 192.168.215.108 255.255.255.255 00:02:b3:2d:13:f1
hme0 192.168.215.102 255.255.255.255 00:02:b3:1e:f0:dd
hme0 BASE-ADDRESS.MCAST.NET 240.0.0.0 SM 01:00:5e:00:00:00
# netstat -p
Net to Media Table
Device IP Address Mask Flags Phys Addr
------ -------------------- --------------- ----- ---------------
hme0 obelix 255.255.255.255 08:00:20:f4:bd:9d
hme0 zuloaga1 255.255.255.255 08:00:20:c0:9f:cd
hme0 192.168.215.254 255.255.255.255 08:00:20:f4:bd:9d
hme0 profesor-zuloaga 255.255.255.255 SP 08:00:20:a0:70:04
hme0 192.168.215.12 255.255.255.255 08:00:20:9e:97:35
hme0 192.168.215.8 255.255.255.255 08:00:20:a7:e3:9c
hme0 192.168.215.108 255.255.255.255 00:02:b3:2d:13:f1
hme0 192.168.215.102 255.255.255.255 00:02:b3:1e:f0:dd
hme0 BASE-ADDRESS.MCAST.NET 240.0.0.0 SM 01:00:5e:00:00:00
# ndd -get /dev/arp arp_cache_report
ifname proto addr proto mask hardware addr flags
hme0 192.168.215.254 255.255.255.255 08:00:20:f4:bd:9d
hme0 192.168.213.020 255.255.255.255 08:00:20:a0:70:04 PERM PUBLISH
MYADDR
hme0 192.168.215.012 255.255.255.255 08:00:20:9e:97:35
hme0 192.168.215.008 255.255.255.255 08:00:20:a7:e3:9c
hme0 192.168.215.108 255.255.255.255 00:02:b3:2d:13:f1
hme0 192.168.215.102 255.255.255.255 00:02:b3:1e:f0:dd
hme0 224.000.000.000 240.000.000.000 01:00:5e:00:00:00 PERM MAPPING
#

I don't understand why the variable arp_cache_report of /dev/arp isn't
updated when I ping a machine and it's mac/ip is added to the arp cache.
Which is the difference between the information of a ndd and a arp or
netstat command? The data source is different?

Thanks! :)
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:12 EDT