/proc/net/arpthis holds an ASCII readable dump of the kernel ARP table used for address resolutions.It'll show both dynamically learned andpreprogrammed ARP Entries.The Format Is:ip address HWtypeFlags HW Address Mask Device192.168. 0. the 0x1 0x2 xx: -: BF: -: the: F3*Eth0192.168. 0.. 0x1 0xc xx:xx:xx:xx:xx:xx *Eth0here"IP Address"is the IPV4 address of the andThe"HW type"is the hardwaretypeOf the address from RFC826.The flags are the internal flags of the ARP structure (as definedinch/usr/include/linux/if_arp.H andThe"HW Address"is theData LinkLayer mapping for that IP addressifIt is known./ * ARP Protocol HARDWARE identifiers. * /#defineArphrd_netrom0 / * from Ka9q:net/rom pseudo * /#defineArphrd_ether1 / * Ethernet 10Mbps * /#defineArphrd_eether2 / * Experimental Ethernet * /#definearphrd_ax253 / * ax.25 Level 2 * /#defineArphrd_pronet4 / * Pronet Token Ring * /#defineArphrd_chaos5 / * Chaosnet * /#definearphrd_ieee8026 / * IEEE 802.2 ETHERNET/TR/TB * /#defineArphrd_arcnet7 / * ARCnet * /#defineArphrd_appletlk8 / * APPLEtalk * /#defineArphrd_dlci the / * Frame Relay DLCI * /#defineArphrd_atm + / * ATM * /#defineArphrd_metricom at /* metricom STRIP (new IANA ID) */#definearphrd_ieee1394 - / * IEEE 1394 IPV4-RFC 2734 * /#definearphrd_eui64 - / * EUI-64 * /#defineArphrd_infiniband + / * InfiniBand * // * ARP Flag values. * /#defineAtf_com0x02 /* Completed entry (HA valid) */#defineAtf_perm0x04 / * Permanent entry * /#defineAtf_publ0x08 / * Publish entry * /#defineAtf_usetrailers0x10 / * has requested trailers * /#defineAtf_netmask0x20 /* Want to use a netmask (only for proxy entries) */#defineAtf_dontpub0x40 / * don ' t answer this addresses * /
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Linux/proc/net/arp file