jagdip wrote:
> How to know which Physical ethernet port is assigned what device name
> such as eth0, eth1 internally ?
> is there a command for that ?
When you're using udev (almost all newer distro's/releases):
cat /etc/udev/rules.d/70-persistent-net.rules
It'll give you lines like this:
# PCI device 0x14e4:0x167b (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:24:81:11:af:46", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
so with the driver/chipset (in the comment, tg3 is tigon3),
MAC-address and device NAME of all found adaptors.
The file is persistent, so the adaptor with _that_ address will
always be given the same NAME.
--
******************************************************************
** Eef Hartman, Delft University of Technology, dept. SSC/ICT **
** e-mail: E.J.M.Hartman.DeleteThis@tudelft.nl - phone: +31-15-27 82525 **
******************************************************************