Deterministic ethernet naming scheme?

Hi:
On FreeBSD 8.2 I was wondering is the naming of ethernet interfaces consistent in the event of reboot.
ie)The right most interface will be suffixed with 0, then the one next to it will be suffixed with 1, etc, and will stay the same regardless of rebooting.

As I recall with FreeBSD 4, it was the first interface that responded was suffixed with 0, and so on.

The reason is that I have a script that depends on the interfaces' name staying consistent.

With FreeBSD 8.2, what happens if say I have 3 physical interfaces, named em0, em1, and em2, ordered from left, middle, right, what if the middle interface physically gets damaged, would em0, and em1 show up, or would em0 and em2 show up?

Thanks
Bill
 
lol, about network card placement :)

Number shouldn't change.... At least for me, they are always in same order :D (Unless you add new card, then numbers might change)
 
billli said:
With FreeBSD 8.2, what happens if say I have 3 physical interfaces, named em0, em1, and em2, ordered from left, middle, right, what if the middle interface physically gets damaged, would em0, and em1 show up, or would em0 and em2 show up?
It depends on how damaged the card is. If it's not detected on PCI (or PCIe) then you'd end up with em0 (left card) and em1 (right card). If, more commonly, only the network side is broken but it's still detected there would be no change.
 
Back
Top