I received some very useful advice from this list a short while ago
when I was having problems with throughput on a Soekris firewall.
The issue turned out to be a problem with Ethernet autoselect and
I thought I had worked around it effectively. The problem has now
reappeared, however, and I would appreciate some further advice.
 
Background:

My OS version is:

OpenBSD 3.9 (GENERIC) #617: Thu Mar  2 02:26:48 MST 2006
    [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
 
My original problem showed up when sis0 was configured like this:
 
sis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        media: Ethernet autoselect (100baseTX full-duplex)

I changed /etc/hostname.sis0 from "dhcp NONE NONE NONE"
to "dhcp media 10baseT". This resulted in ifconfig showing this:
 
sis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        media: Ethernet 10baseT
 
With these settings things were working great. Yesterday we had to
reboot a few things and users later reported throughput problems
again. I checked ifconfig and found the following:
 
sis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        media: Ethernet 10baseT (100baseTX full-duplex)

I thought that my hostname.sis0 would prevent "100baseTX full-duplex"
but apparently not. The man page says to use ifconfig -m to see
the available options:

# ifconfig -m sis0
sis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:00:24:c6:df:34
        groups: egress
        media: Ethernet 10baseT (100baseTX full-duplex)
        status: active
        supported media:
                media none
                media 10baseT
                media 10baseT mediaopt full-duplex
                media 100baseTX
                media 100baseTX mediaopt full-duplex
                media autoselect

There is no option for "media 10baseT mediaopt half-duplex" so
tried to correct the settings by doing "ifconfig sis0 media 10baseT".

The settings didn't change, however:

sis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        media: Ethernet 10baseT (100baseTX full-duplex)

Then I did "ifconfig sis0 media 100baseTX" followed by "ifconfig
sis0 10baseT" and things went back to normal:

sis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        media: Ethernet 10baseT

What I don't understand is how I ended up getting "100baseTX full-
duplex" to begin with having "DHCP media 10baseT" in hostname.sis0.

Is there something else I can do to ensure that the correct setting
is always applied?

Thanks,
RPK.

Reply via email to