[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with media/mediaopt Called from /etc/netstart
I think that media-opt should be mediaopt , without the "-" sign (called
dash?)
On Sun, 2 May 2004 14:49:48 -0500, <vxla@nxio.us> wrote:
> I have recently been trying to set all my hosts to their maximum
> speed. We have a few machines with a fxp0/sis0/bge0 connected to a
> Cisco 3570 switch. All switch ports for these interfaces are set to
> 100, full-duplex (1000/full-duplex for the interfaces connected to
> the bge cards).
>
> Using a hostname.if as listed here, things work fine...
>
> $ cat hostname.fxp0
> inet 10.10.10.10 netmask 255.255.128.0 NONE
>
> However, if I try and force interfaces in the hostname.if files to
> the following, I get errors...
>
> $ cat hostname.sis0
> inet 172.16.0.8 netmask 255.255.255.128 media 100baseTX media-opt
> full-duplex
>
> Added 'set -x' to the /etc/netstart yields the following:
>
> [snip]
>
> + route -q add -inet6 ::0.0.0.0 -prefixlen 96 ::1 -reject
> + > /dev/null
> + rtsolif=
> + if=fxp0
> + test fxp0 = *
> + ifstart fxp0
> ifconfig: media: bad value
>
> [snip]
>
> I've looked around and the suggestion was to ensure that the remote
> side of the connection was set to 100/full-duplex. It is, in this
> case.
>
> Note: I can also set fxp0/sis0/bge0 all to use the media/mediaopt
> after the system has booted w/o problems; it just doesn't work at
> startup being called from /etc/netstart.
>
> I'm just curious to know if this is supposed to behave in this
> manner :) If so, I'll run some little script to set the interfaces
> appropriately after the interfaces are up.
>
> Here's a dmesg....thanks for any assistance.
>
> OpenBSD 3.5 (GENERIC) #34: Mon Mar 29 12:24:55 MST 2004
> deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
> cpu0: Intel Pentium III ("GenuineIntel" 686-class) 599 MHz
> cpu0:
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,SER,MMX,FXSR,SSE
> real mem = 133791744 (130656K)
> avail mem = 117886976 (115124K)
> using 1658 buffers containing 6791168 bytes (6632K) of memory
> mainbus0 (root)
> bios0 at mainbus0: AT/286+(8f) BIOS, date 09/27/99, BIOS32 rev. 0 @
> 0xfd7a0
> pcibios0 at bios0: rev. 2.1 @ 0xfd7a0/0x860
> pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xfdf30/176 (9 entries)
> pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371FB ISA" rev 0x00)
> pcibios0: PCI bus #1 is the last bus
> bios0: ROM list: 0xc0000/0x8000 0xc8000/0x1800 0xe0000/0x4000!
> 0xe4000/0xc000
> pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
> pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x03
> ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
> pci1 at ppb0 bus 1
> pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
> pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA,
> channel 0 wired to compatibility, channel 1 wired to compatibility
> wd0 at pciide0 channel 0 drive 0: <WDC WD84AA>
> wd0: 16-sector PIO, LBA, 8063MB, 16514064 sectors
> wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
> wd1 at pciide0 channel 1 drive 0: <WDC WD84AA>
> wd1: 16-sector PIO, LBA, 8063MB, 16514064 sectors
> wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
> uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 9
> usb0 at uhci0: USB revision 1.0
> uhub0 at usb0
> uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub0: 2 ports with 2 removable, self powered
> "Intel 82371AB Power Mgmt" rev 0x02 at pci0 dev 7 function 3 not
> configured
> sis0 at pci0 dev 14 function 0 "NS DP83815 10/100" rev 0x00: DP83815D,
> irq 11, address 00:09:5b:07:YY:YY
> nsphyter0 at sis0 phy 0: DP83815 10/100 integrated, rev. 1
> fxp0 at pci0 dev 16 function 0 "Intel 82557" rev 0x0c: irq 9, address
> 00:02:b3:eb:XX:XX
> inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
> isa0 at pcib0
> isadma0 at isa0
> pckbc0 at isa0 port 0x60/5
> pckbd0 at pckbc0 (kbd slot)
> pckbc0: using irq 1 for kbd slot
> wskbd0 at pckbd0: console keyboard
> vga0 at isa0 port 0x3b0/48 iomem 0xa0000/131072
> wsdisplay0 at vga0: console (80x25, vt100 emulation), using wskbd0
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> pcppi0 at isa0 port 0x61
> midi0 at pcppi0: <PC speaker>
> sysbeep0 at pcppi0
> lpt0 at isa0 port 0x378/4 irq 7
> npx0 at isa0 port 0xf0/16: using exception 16
> pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> pccom0: console
> pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
> fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
> fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
> biomask c240 netmask ca40 ttymask cac2
> pctr: 686-class user-level performance counters enabled
> mtrr: Pentium Pro MTRR support
> dkcsum: wd0 matched BIOS disk 80
> dkcsum: wd1 matched BIOS disk 81
> root on wd0a
> rootdev=0x0 rrootdev=0x300 rawdev=0x302
>
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/