Using any network interface whatsoever

Dima Dorfman dd at freebsd.org
Sun Apr 9 00:57:15 UTC 2006


Mike Meyer <mwm-keyword-freebsdhackers.102a7e at mired.org> wrote:
> What do I want for that? I identify ethernet boards by which slot on
> the back of the system I plug the cable into. Currently, I have to map
> that to board types to and which board is plugged into which slot to
> know which name to use. I want a name that tells me which slot I plug
> a cable in to plug it into that interface.

Is information about the slot even available on a PC? For something like this:

: em0 at pci6:7:0:   class=0x020000 card=0x016d1028 chip=0x10768086 rev=0x05 hdr=0x00
:     vendor   = 'Intel Corporation'
:     device   = '82547EI Gigabit Ethernet Controller'
:     class    = network
:     subclass = ethernet

would you consider eth-6-7-0 to be an improvement over em0? It has the
advantage of not changing if another card is added to the system, but
it's not very informative. For a system that has only its two on-board
NICs, "em0" and "em1" are very obvious--at least it's clear which one
corresponds to the label "eth 0" on the chassis.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 155 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20060409/ce205030/attachment.pgp


More information about the freebsd-hackers mailing list