* Harald Dunkel <[EMAIL PROTECTED]> [2008-08-22 16:33]:
> Question: How can I make sure that "em2" doesn't become "em0"
> if my dual-port NIC dies?

<[EMAIL PROTECTED]>  $ dmesg | grep '^em0'
em0 at pci5 dev 0 function 0 "Intel PRO/1000 PT (80003ES2)" rev 0x01:
apic 2 int 18 (irq 11), address 00:18:f3:70:b1:74

then you are a bit doomed, as config(8) is not enough to change your
kernel acording, thus you need to build your own.

<[EMAIL PROTECTED]> $ cd /usr/src/sys/arch/`arch -s`/conf/
<[EMAIL PROTECTED]> conf $ cat > TEST <<EOF
> include "arch/i386/conf/GENERIC"
> em0 at pci5 dev0 function 0
> EOF
<[EMAIL PROTECTED]> conf $ config TEST 
TEST:2: em0 at pci5 is orphaned
 (no pci5 declared)
*** Stop.

too bad. now you need to declare pci5 statically (get from your
dmesg), and everything that leads to it (ppbX, maybe a pciX that ppbX
sits on, I leave that to you).

worth it? dunno. a script at boot that checks mac addresses and makes
creative use of interface groups might be easier.

-- 
Henning Brauer, [EMAIL PROTECTED], [EMAIL PROTECTED]
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting - Hamburg & Amsterdam

Reply via email to