Yes, run the command: ip addr See http://defiant.coinet.com/iproute2/ and http://defiant.coinet.com/iproute2/ip-cref/ for more info. Regards, Daniel -----Original Message----- From: linux-net-owner@vger.kernel.org [mailto:linux-net-owner@vger.kernel.org]On Behalf Of Amit Kucheria Sent: Tuesday, December 11, 2001 8:18 PM To: Networking Subject: getting mac addr of unknown interface Hi all, I know how to get the MAC addr of a network interface whose IP address is known. But what if the network interface has not been configured yet and doesnt have an IP address? Is there a way (thru system calls) to know the mac addresses of all network interfaces in the machine? Worst case i could grep the log files but that is so crude! Regards, Amit -- The statement below is true. The statement above is false. ^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^ Amit Kucheria EECS Grad. Research Assistant University of Kansas @ Lawrence (R)+1-(785)-830 8521 ||| (O)+1-(785)-864 7774 ____________________________________________________ - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html