On 3/26/07, Aaron Martinez <[EMAIL PROTECTED]> wrote:
My question is. I have OBSD 4.0 running on an Asus p3b-F with 6 pci slots that i'm wanting to use as a router/firewall. I have 5 fxp interfaces in the machine inserted starting from the bottom pci slot up.
A second related question, in the above example, how exactly does OBSD choose the interface number? I was under the impression it used the slot to assign the interface number which is why i was so surprised to see that fxp0 the third slot, fxp2 was in the top (occupied) slot and fxp4 was in the bottom. I have all of the pci slots set to auto in the bios if that makes any difference.
They are enumerated in the order they are located on the bus. The Asus P3B-F motherboard has (IIRC) 4 master and 2 "slave" PCI slots, where the slave slots are actually wired the same as a corresponding master. I believe the last 2 (furthest from the CPU) are the slaves, but you'd have to check the motherboard manual. Forcing the PCI slots in the BIOS, instead of leaving them set at auto, should at least get them up in the same order every time. Otherwise, the BIOS could randomly shuffle the actual interrupt routed to the A,B,C,D pins on every boot. At least, that's my experience, based on messing with nearly the same setup a few years ago. (Read: I'm not a PCI expert, but it worked for me) -- Jon

