On Wed, 23 Feb 2005 01:33:51 +0100 (CET) Henrik Nordstrom <hno@xxxxxxxxxxxxxxx> wrote: > On Tue, 22 Feb 2005, Subbu wrote: > > > > > Hi > > > > I have a network driver which can have driver name as ethX. everytime i > > used to enter eth1 or eth2 manually as driver name to enable/start my n/w > > driver. > > > > Is there any way that i could get the driver name at user lever other than > > polling for it..?? > > You could look for the known MAC address of your interface and deduce the > ethX name from there... Is this is what you want? man nameif DESCRIPTION nameif renames network interfaces based on mac addresses. When no arguments are given /etc/mactab is read. Each line of it contains an interface name and a Ethernet MAC address. Comments are allowed start- ing with #. Otherwise the interfaces specified on the command line are processed. nameif looks for the interface with the given MAC address and renames it to the name given. - : send the line "unsubscribe linux-net" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html