-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Erich Titl wrote: > Actually it might not be that difficult to mimic the alias in Bering > uClibc. We have the ip link command which allows us to assign whaever > name we want to a specific NIC > > [r...@tristan]# ip link set dev eth0 name inside > [r...@tristan]# ip link show dev inside > 2: inside: <BROADCAST,UP> mtu 1500 qdisc pfifo_fast qlen 100 > link/ether 00:80:c8:f8:4a:51 brd ff:ff:ff:ff:ff:ff > > All that is left now is to determine which NIC will get which name, > which is not that obvious when you take the above snippet into > consideration. > > What you can do is read the /etc/modules file for alias ethx lines, sort > them and then load the drivers in that order, preferrably after all > dependencies have been resolved :-)
The problem is most of the time if you have multiple NICs, they use the same chipset. That means the ethX order is determined by the device driver, not by the module load order, and the device drivers have no standardized way of indicating which physical interface is "first". So...either something has to talk to the kernel the way modprobe, udev, etc. manage to do, or a different approach is needed (perhaps using MAC addresses or logical names to identify the interfaces instead of ethX). - -- Charles Steinkuehler char...@steinkuehler.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFK1G2ZLywbqEHdNFwRAn+BAKDZa+bl8pxQ/ZkWgl7oe9UGSWyYIgCfZaS0 1FVfdiWZZRq2cnBS2+5h7VM= =rVbg -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ------------------------------------------------------------------------ leaf-user mailing list: leaf-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-user Support Request -- http://leaf-project.org/