Discussion:
IF-MIB::ifSpeed shows wrong value for bonded interface
Dheeraj Gautam
2011-07-23 16:00:53 UTC
Permalink
Hi,

On our system we added bonded interface with link-agg-layer3+4 mode and bonded two 1G Ethernet interfaces to the bond. But IF-MIB::ifSpeed is showing as 10Mbps only.

IF-MIB::ifSpeed.10 = Gauge32: 10000000

We expected this to be shown as 2Gbps.

* Did anybody else also faced this issue ?
* Any possible reason of this issue ?

We are using Net-SNMP version 5.3.1 and linux Centos EL5 with kernel 2.6.18-164.15.1.el5


-Dheeraj
Dave Shield
2011-08-01 19:52:06 UTC
Permalink
Post by Dheeraj Gautam
On our system we added bonded interface with link-agg-layer3+4 mode and bonded
two 1G Ethernet interfaces to the bond. But IF-MIB::ifSpeed is showing as 10Mbps only.
We are using Net-SNMP version 5.3.1
That's a very old version of the agent.
Could you possibly try with something a little more recent,
and see if the problem still appears.

Dave
Garrett Cooper
2011-08-01 20:01:48 UTC
Permalink
Post by Dheeraj Gautam
Hi,
On our system we added bonded interface with link-agg-layer3+4 mode and bonded two 1G Ethernet interfaces to the bond. But IF-MIB::ifSpeed is showing as 10Mbps only.
IF-MIB::ifSpeed.10 = Gauge32: 10000000
We expected this to be shown as 2Gbps.
* Did anybody else also faced this issue ?
* Any possible reason of this issue ?
We are using Net-SNMP version 5.3.1 and linux Centos EL5 with kernel 2.6.18-164.15.1.el5
What does ifconfig for your interface say?
Thanks,
-Garrett
Dheeraj Gautam
2011-08-05 18:32:35 UTC
Permalink
Post by Garrett Cooper
What does ifconfig for your interface say?
Following the output of ifconfig on my system.
0=> bonded interface
eth0 => physical interface
eth1 => slave interface

[***@qa04 ~]# ifconfig 0
0 Link encap:Ethernet HWaddr 00:13:CC:01:91:3B
inet addr:10.9.1.1 Bcast:10.9.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:699 errors:0 dropped:0 overruns:0 frame:0
TX packets:14636 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:4096
RX bytes:85716 (83.7 KiB) TX bytes:1814876 (1.7 MiB)

[***@qa04 ~]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:21:5A:F6:CD:C4
inet addr:10.157.42.157 Bcast:10.157.63.255 Mask:255.255.224.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:644117 errors:0 dropped:0 overruns:0 frame:0
TX packets:5534 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:4096
RX bytes:80500670 (76.7 MiB) TX bytes:839843 (820.1 KiB)
Interrupt:201 Memory:fd1f0000-fd200000

[***@qa04 ~]# ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:13:CC:01:91:3B
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:4096
RX bytes:0 (0.0 b) TX bytes:640 (640.0 b)
Interrupt:209 Memory:fd2f0000-fd300000


-Dheeraj
Garrett Cooper
2011-08-05 18:43:54 UTC
Permalink
Post by Dheeraj Gautam
   What does ifconfig for your interface say?
Following the output of ifconfig on my system.
0=> bonded interface
eth0 => physical interface
eth1 => slave interface
0         Link encap:Ethernet  HWaddr 00:13:CC:01:91:3B
         inet addr:10.9.1.1  Bcast:10.9.1.255  Mask:255.255.255.0
         UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
         RX packets:699 errors:0 dropped:0 overruns:0 frame:0
         TX packets:14636 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:4096
         RX bytes:85716 (83.7 KiB)  TX bytes:1814876 (1.7 MiB)
eth0      Link encap:Ethernet  HWaddr 00:21:5A:F6:CD:C4
         inet addr:10.157.42.157  Bcast:10.157.63.255  Mask:255.255.224.0
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:644117 errors:0 dropped:0 overruns:0 frame:0
         TX packets:5534 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:4096
         RX bytes:80500670 (76.7 MiB)  TX bytes:839843 (820.1 KiB)
         Interrupt:201 Memory:fd1f0000-fd200000
eth1      Link encap:Ethernet  HWaddr 00:13:CC:01:91:3B
         UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:4096
         RX bytes:0 (0.0 b)  TX bytes:640 (640.0 b)
         Interrupt:209 Memory:fd2f0000-fd300000
Ah, that's right... linux doesn't mention the media speed in ifconfig like *BSD:

$ ifconfig re0
re0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric
0 mtu 1500
options=3899<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC>
ether e0:cb:4e:01:49:32
inet6 fe80::e2cb:4eff:fe01:4932%re0 prefixlen 64 scopeid 0x5
inet 192.168.20.2 netmask 0xffffff00 broadcast 192.168.20.255
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active

A quick google search says that you need to use ethtool (
http://www.cyberciti.biz/faq/howto-determine-ethernet-connection-speed/
), but there are other ways to determine the necessary details by
blasting ioctls, etc.

Cheers,
-Garrett
Dheeraj Gautam
2011-08-06 10:11:10 UTC
Permalink
Post by Garrett Cooper
A quick google search says that you need to use ethtool (
http://www.cyberciti.biz/faq/howto-determine-ethernet-connection-speed/
), but there are other ways to determine the necessary details by
blasting ioctls, etc.
Ethtool didn't provided much data. mii-tool provide some more data. it also says only 10Mbps.

[***@qa04 ~]# ethtool 0
Settings for 0:
Link detected: yes
[***@qa04 ~]# ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: g
Wake-on: g
Current message level: 0x000000ff (255)
Link detected: yes
[***@qa04 ~]#

[***@qa04 ~]# mii-tool -v eth0
eth0: negotiated 100baseTx-FD flow-control, link ok
product info: vendor 00:50:ef, model 45 rev 0
basic mode: autonegotiation enabled
basic status: autonegotiation complete, link ok
capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
link partner: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
[***@qa04 ~]# mii-tool -v 0
0: 10 Mbit, half duplex, link ok
product info: vendor 00:01:00, model 0 rev 4
basic mode: 10 Mbit, half duplex
basic status: link ok
capabilities:
advertising:
[***@qa04 ~]#

-Dheeraj
Garrett Cooper
2011-08-06 10:38:18 UTC
Permalink
Post by Dheeraj Gautam
Post by Garrett Cooper
A quick google search says that you need to use ethtool (
http://www.cyberciti.biz/faq/howto-determine-ethernet-connection-speed/
), but there are other ways to determine the necessary details by
blasting ioctls, etc.
Ethtool didn't provided much data. mii-tool provide some more data. it also says only 10Mbps.
This suggests it's an OS issue and not necessarily net-snmp. If
net-snmp is using the same ioctls as *BSD, it should be getting the
data directly from the driver, which I know occurs on some versions of
FreeBSD with some drivers (case and point: bce(4) on 7.x).
HTH,
-Garrett

Loading...