--- Gleb Smirnoff <[EMAIL PROTECTED]> wrote:

>   Oleg, Anders,
> 
>   can you please remove all your changes to if_bge.c and test the
> attached patch. Awaiting for feedback and thanks.

It works fine -
bge0 connected to GIGE switch, bge1 is not connected

# snmpget -c pub -v 1 localhost ifSpeed.1
IF-MIB::ifSpeed.1 = Gauge32: 1000000000
# snmpget -c pub -v 1 localhost ifHighSpeed.1
IF-MIB::ifHighSpeed.1 = Gauge32: 1000

# ifconfig bge1 up
# ifconfig bge1 media auto
# snmpget -c pub -v 1 localhost ifSpeed.2
IF-MIB::ifSpeed.2 = Gauge32: 0
# snmpget -c pub -v 1 localhost ifHighSpeed.2
IF-MIB::ifHighSpeed.2 = Gauge32: 0

# ifconfig bge1 media 10baseT/UTP
# snmpget -c pub -v 1 localhost ifSpeed.2
IF-MIB::ifSpeed.2 = Gauge32: 10000000
# snmpget -c pub -v 1 localhost ifHighSpeed.2
IF-MIB::ifHighSpeed.2 = Gauge32: 10

# ifconfig bge1 media 100baseTX
# snmpget -c pub -v 1 localhost ifSpeed.2
IF-MIB::ifSpeed.2 = Gauge32: 100000000
# snmpget -c pub -v 1 localhost ifHighSpeed.2
IF-MIB::ifHighSpeed.2 = Gauge32: 100

It might be not important, but if adapter is in DOWN state
snmp may show different media:

1. Adapter is Down. ifconfig shows - media: Ethernet autoselect (none)
Snmp shows ifSpeed 0.
2. # ifconfig bge1 media 100baseTX.
ifconfig shows - media: Ethernet 100baseTX (none)
Snmp still shows ifSpeed 0.
3. # ifconfig bge1 up 
ifconfig shows - media: Ethernet 100baseTX (none)
snmp shows ifSpeed 100000000
4. # ifconfig bge1 down
snmp still shows ifSpeed 100000000
after running "ifconfig bge1" snmp shows ifSpeed 0

So sometimes ifconfig helps to change baudrate
if adapter in DOWN state.

Thanks,
Oleg

> -- 
> Totus tuus, Glebius.
> GLEBIUS-RIPN GLEB-RIPE


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to