i think you could do that through config (8).
if you config -e your kernel and use
change bge0 (or 1)
you can define the port of the bus that the device will attach to.
if i'm wrong have a look at files.conf (5) and recompile your kernel
although i'm pretty sure that's not necessary.

cheers.
DsP
On Thu, Mar 08, 2012 at 03:49:45PM +0100, Luca Corti wrote:
> Hello,
>
> I ave this 5.0 box I just setup. It works nicely but on boot network
> interfaces order seems to randomly change. The box has two bye nics, bge0
and
> bge1.
> Basically on reboot the box may pick a different device for the physical
> interfaces than the time before. Swapping cables restores operation, but is
> painful.
>
> Everything is fine otherwise. dmesg and ifconfig output below.
>
> thanks
>
> dmesg:
>
> OpenBSD 5.0 (GENERIC.MP) #59: Wed Aug 17 10:19:44 MDT 2011
>     [email protected]:/usr/src/sys/arch/i386/compile/GENERIC.MP
> cpu0: Intel(R) Pentium(R) D CPU 3.00GHz ("GenuineIntel" 686-class) 3 GHz
> cpu0:
>
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
>
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,CNXT-ID,CX16,
> xTPR
> real mem  = 3219234816 (3070MB)
> avail mem = 3156508672 (3010MB)
> mainbus0 at root
> bios0 at mainbus0: AT/286+ BIOS, date 01/08/07, BIOS32 rev. 0 @ 0xffe90,
> SMBIOS rev. 2.3 @ 0xf0450 (72 entries)
> bios0: vendor Dell Inc. version "A09" date 01/08/2007
> bios0: Dell Inc. Precision WorkStation 380
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S1 S3 S4 S5
> acpi0: tables DSDT FACP SSDT APIC BOOT ASF! MCFG HPET
> acpi0: wakeup devices VBTN(S4) PCI0(S5) PCI4(S5) PCI2(S5) PCI3(S5) PCI1(S5)
> PCI5(S5) PCI6(S5) MOU_(S3) USB0(S3) USB1(S3) USB2(S3) USB3(S3)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: apic clock running at 199MHz
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: Intel(R) Pentium(R) D CPU 3.00GHz ("GenuineIntel" 686-class) 3 GHz
> cpu1:
>
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
>
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,CNXT-ID,CX16,
> xTPR
> ioapic0 at mainbus0: apid 8 pa 0xfec00000, version 20, 24 pins
> ioapic0: misconfigured as apic 0, remapped to apid 8
> acpimcfg0 at acpi0 addr 0xf0000000, bus 0-63
> acpihpet0 at acpi0: 14318179 Hz
> acpiprt0 at acpi0: bus 5 (PCI4)
> acpiprt1 at acpi0: bus 2 (PCI2)
> acpiprt2 at acpi0: bus -1 (PCI3)
> acpiprt3 at acpi0: bus 1 (PCI1)
> acpiprt4 at acpi0: bus 3 (PCI5)
> acpiprt5 at acpi0: bus 4 (PCI6)
> acpiprt6 at acpi0: bus 0 (PCI0)
> acpicpu0 at acpi0
> acpicpu1 at acpi0
> acpibtn0 at acpi0: VBTN
> bios0: ROM list: 0xc0000/0xf000! 0xcf000/0x2000! 0xd1000/0x2000
> 0xd3000/0x1000
> cpu0: Enhanced SpeedStep disabled by BIOS
> pci0 at mainbus0 bus 0: configuration mode 1 (bios)
> pchb0 at pci0 dev 0 function 0 "Intel 82955X Host" rev 0x00
> ppb0 at pci0 dev 1 function 0 "Intel 82955X PCIE" rev 0x00: apic 8 int 16
> pci1 at ppb0 bus 1
> vga1 at pci1 dev 0 function 0 vendor "NVIDIA", unknown product 0x014e rev
> 0xa2
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x01: msi
> azalia0: codecs: Sigmatel STAC9200
> audio0 at azalia0
> ppb1 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x01: apic 8 int 16
> pci2 at ppb1 bus 2
> ppb2 at pci0 dev 28 function 4 "Intel 82801G PCIE" rev 0x01: apic 8 int 16
> pci3 at ppb2 bus 3
> bge0 at pci3 dev 0 function 0 "Broadcom BCM5721" rev 0x11, BCM5750 B1
> (0x4101): apic 8 int 16, address 00:10:18:18:00:27
> brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
> ppb3 at pci0 dev 28 function 5 "Intel 82801G PCIE" rev 0x01: apic 8 int 17
> pci4 at ppb3 bus 4
> bge1 at pci4 dev 0 function 0 "Broadcom BCM5751" rev 0x01, BCM5750 A1
> (0x4001): apic 8 int 17, address 00:12:3f:7c:c1:e6
> brgphy1 at bge1 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
> uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x01: apic 8 int 21
> uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x01: apic 8 int 22
> uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x01: apic 8 int 18
> uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x01: apic 8 int 23
> ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x01: apic 8 int 21
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> ppb4 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xe1
> pci5 at ppb4 bus 5
> ichpcib0 at pci0 dev 31 function 0 "Intel 82801GB LPC" rev 0x01: PM
disabled
> pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x01: DMA, channel
0
> configured to compatibility, channel 1 configured to compatibility
> atapiscsi0 at pciide0 channel 0 drive 0
> scsibus0 at atapiscsi0: 2 targets
> cd0 at scsibus0 targ 0 lun 0: <HL-DT-ST, CDRW/DVD GCC4482, E107> ATAPI
5/cdrom
> removable
> cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
> pciide0: channel 1 ignored (disabled)
> ahci0 at pci0 dev 31 function 2 "Intel 82801GR AHCI" rev 0x01: msi, AHCI
1.1
> ahci0: PHY offline on port 1
> ahci0: PHY offline on port 2
> ahci0: PHY offline on port 3
> scsibus1 at ahci0: 32 targets
> sd0 at scsibus1 targ 0 lun 0: <ATA, WDC WD1600JS-75N, 10.0> SCSI3 0/direct
> fixed t10.ATA_WDC_WD1600JS-75NCB1_WD-WCANM1767909
> sd0: 152587MB, 512 bytes/sector, 312500000 sectors
> ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x01: SMI
> iic0 at ichiic0
> spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM ECC PC2-5300CL5
> spdmem1 at iic0 addr 0x51: 512MB DDR2 SDRAM ECC PC2-4200CL3
> spdmem2 at iic0 addr 0x52: 1GB DDR2 SDRAM ECC PC2-5300CL5
> spdmem3 at iic0 addr 0x53: 512MB DDR2 SDRAM ECC PC2-4200CL3
> usb1 at uhci0: USB revision 1.0
> uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb2 at uhci1: USB revision 1.0
> uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb3 at uhci2: USB revision 1.0
> uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb4 at uhci3: USB revision 1.0
> uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> isa0 at ichpcib0
> isadma0 at isa0
> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> pckbc0 at isa0 port 0x60/5
> pckbd0 at pckbc0 (kbd slot)
> pckbc0: using irq 1 for kbd slot
> wskbd0 at pckbd0: console keyboard, using wsdisplay0
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> lpt0 at isa0 port 0x378/4 irq 7
> npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
> fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
> fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
> mtrr: Pentium Pro MTRR support
> uhidev0 at uhub4 port 2 configuration 1 interface 0 "Dell Dell USB
Keyboard"
> rev 1.10/3.06 addr 2
> uhidev0: iclass 3/1
> ukbd0 at uhidev0: 8 modifier keys, 6 key codes
> wskbd1 at ukbd0 mux 1
> wskbd1: connecting to wsdisplay0
> vscsi0 at root
> scsibus2 at vscsi0: 256 targets
> softraid0 at root
> scsibus3 at softraid0: 256 targets
> root on sd0a (732d42d879f94fb3.a) swap on sd0b dump on sd0b
> wskbd1: disconnecting from wsdisplay0
> wskbd1 detached
> ukbd0 detached
> uhidev0 detached
>
> ifconfig:
>
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33196
>         priority: 0
>         groups: lo
>         inet6 ::1 prefixlen 128
>         inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
>         inet 127.0.0.1 netmask 0xff000000
> bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         lladdr 00:10:18:18:00:27
>         priority: 0
>         groups: egress
>         media: Ethernet autoselect (1000baseT full-duplex,rxpause,txpause)
>         status: active
>         inet 1.2.3.4 netmask 0xffffff00 broadcast 1.2.3.255
>         inet6 fe80::210:18ff:fe18:27%bge0 prefixlen 64 scopeid 0x1
> bge1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         lladdr 00:12:3f:7c:c1:e6
>         priority: 0
>         media: Ethernet autoselect (100baseTX full-duplex,rxpause,txpause)
>         status: active
>         inet 5.6.7.8 netmask 0xffffff00 broadcast 5.6.7.255
>         inet6 fe80::212:3fff:fe7c:c1e6%bge1 prefixlen 64 scopeid 0x2
> enc0: flags=41<UP,RUNNING>
>         priority: 0
>         groups: enc
>         status: active
> pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33196
>         priority: 0
>         groups: pflog

[demime 1.01d removed an attachment of type application/pgp-signature]

Reply via email to