Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Mar 2006 10:56:13 +0200
From:      Thomas <freebsdlists@bsdunix.ch>
To:        freebsd-net@freebsd.org
Subject:   bsnmp with vlan, no speed values are set
Message-ID:  <1143795373.86901.18.camel@bert.mlan.solnet.ch>

next in thread | raw e-mail | index | archive | help
Hi

I use bsnmpd-1.11_3 with FreeBSD 5.4-RELEASE on my router. It works very
well. The only problem are my vlans on my em interfaces.

As you see below it doesn't set any speed values for vlans. Afaik this
means I can't use 64bit counter (ifHCInOctets). Is there a way set it
the speed value? 

snmpwalk -v 1 -c public localhost If
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifIndex.4 = INTEGER: 4
IF-MIB::ifIndex.5 = INTEGER: 5
IF-MIB::ifIndex.6 = INTEGER: 6
IF-MIB::ifIndex.7 = INTEGER: 7
IF-MIB::ifIndex.8 = INTEGER: 8
IF-MIB::ifDescr.1 = STRING: em0
IF-MIB::ifDescr.2 = STRING: em1
IF-MIB::ifDescr.3 = STRING: lo0
IF-MIB::ifDescr.4 = STRING: lo1
IF-MIB::ifDescr.5 = STRING: lo2
IF-MIB::ifDescr.6 = STRING: vlan8
IF-MIB::ifDescr.7 = STRING: vlan507
IF-MIB::ifDescr.8 = STRING: vlan200
IF-MIB::ifType.1 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.3 = INTEGER: softwareLoopback(24)
IF-MIB::ifType.4 = INTEGER: softwareLoopback(24)
IF-MIB::ifType.5 = INTEGER: softwareLoopback(24)
IF-MIB::ifType.6 = INTEGER: l2vlan(135)
IF-MIB::ifType.7 = INTEGER: l2vlan(135)
IF-MIB::ifType.8 = INTEGER: l2vlan(135)
IF-MIB::ifMtu.1 = INTEGER: 1546
IF-MIB::ifMtu.2 = INTEGER: 1546
IF-MIB::ifMtu.3 = INTEGER: 16384
IF-MIB::ifMtu.4 = INTEGER: 16384
IF-MIB::ifMtu.5 = INTEGER: 16384
IF-MIB::ifMtu.6 = INTEGER: 1546
IF-MIB::ifMtu.7 = INTEGER: 1546
IF-MIB::ifMtu.8 = INTEGER: 1546
IF-MIB::ifSpeed.1 = Gauge32: 1000000000
IF-MIB::ifSpeed.2 = Gauge32: 1000000000
IF-MIB::ifSpeed.3 = Gauge32: 0
IF-MIB::ifSpeed.4 = Gauge32: 0
IF-MIB::ifSpeed.5 = Gauge32: 0
IF-MIB::ifSpeed.6 = Gauge32: 0
IF-MIB::ifSpeed.7 = Gauge32: 0
IF-MIB::ifSpeed.8 = Gauge32: 0


snmpwalk -v 1 -c public localhost IfX
IF-MIB::ifName.1 = STRING: em0
IF-MIB::ifName.2 = STRING: em1
IF-MIB::ifName.3 = STRING: lo0
IF-MIB::ifName.4 = STRING: lo1
IF-MIB::ifName.5 = STRING: lo2
IF-MIB::ifName.6 = STRING: vlan8
IF-MIB::ifName.7 = STRING: vlan507
IF-MIB::ifName.8 = STRING: vlan200
IF-MIB::ifInMulticastPkts.1 = Counter32: 27763749
IF-MIB::ifInMulticastPkts.2 = Counter32: 39112192
IF-MIB::ifInMulticastPkts.3 = Counter32: 0
IF-MIB::ifInMulticastPkts.4 = Counter32: 0
IF-MIB::ifInMulticastPkts.5 = Counter32: 0
IF-MIB::ifInMulticastPkts.6 = Counter32: 66425
IF-MIB::ifInMulticastPkts.7 = Counter32: 597199434
IF-MIB::ifInMulticastPkts.8 = Counter32: 2886152
IF-MIB::ifOutBroadcastPkts.8 = Counter32: 0
IF-MIB::ifHCInOctets.1 = Counter64: 1905469523
IF-MIB::ifHCInOctets.2 = Counter64: 4004579218
IF-MIB::ifHCInUcastPkts.1 = Counter64: 3374758879
IF-MIB::ifHCInUcastPkts.2 = Counter64: 2260898668
IF-MIB::ifHCInMulticastPkts.1 = Counter64: 27763749
IF-MIB::ifHCInMulticastPkts.2 = Counter64: 39112192
IF-MIB::ifHCInBroadcastPkts.1 = Counter64: 0
IF-MIB::ifHCInBroadcastPkts.2 = Counter64: 0
IF-MIB::ifHCOutOctets.1 = Counter64: 1859205456
IF-MIB::ifHCOutOctets.2 = Counter64: 2149535104
IF-MIB::ifHCOutUcastPkts.1 = Counter64: 1060004524
IF-MIB::ifHCOutUcastPkts.2 = Counter64: 1136546470
IF-MIB::ifHCOutMulticastPkts.1 = Counter64: 1580694
IF-MIB::ifHCOutMulticastPkts.2 = Counter64: 4601834
IF-MIB::ifHCOutBroadcastPkts.1 = Counter64: 0
IF-MIB::ifHCOutBroadcastPkts.2 = Counter64: 0
IF-MIB::ifLinkUpDownTrapEnable.1 = INTEGER: enabled(1)
IF-MIB::ifLinkUpDownTrapEnable.2 = INTEGER: enabled(1)
IF-MIB::ifLinkUpDownTrapEnable.3 = INTEGER: disabled(2)
IF-MIB::ifLinkUpDownTrapEnable.4 = INTEGER: disabled(2)
IF-MIB::ifLinkUpDownTrapEnable.5 = INTEGER: disabled(2)
IF-MIB::ifLinkUpDownTrapEnable.6 = INTEGER: disabled(2)
IF-MIB::ifLinkUpDownTrapEnable.7 = INTEGER: disabled(2)
IF-MIB::ifLinkUpDownTrapEnable.8 = INTEGER: disabled(2)
IF-MIB::ifHighSpeed.1 = Gauge32: 1000
IF-MIB::ifHighSpeed.2 = Gauge32: 1000
IF-MIB::ifHighSpeed.3 = Gauge32: 0
IF-MIB::ifHighSpeed.4 = Gauge32: 0
IF-MIB::ifHighSpeed.5 = Gauge32: 0
IF-MIB::ifHighSpeed.6 = Gauge32: 0
IF-MIB::ifHighSpeed.7 = Gauge32: 0
IF-MIB::ifHighSpeed.8 = Gauge32: 0

em0: flags=18843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,POLLING> mtu
1546
        options=4b<RXCSUM,TXCSUM,VLAN_MTU,POLLING>
        inet xxxxxxxxx netmask 0xffffffe0 broadcast xxxxxxxxx
        ether 00:30:48:2c:6e:9a
        media: Ethernet autoselect (1000baseTX <full-duplex>)
        status: active
em1: flags=18843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,POLLING> mtu
1546
        options=4b<RXCSUM,TXCSUM,VLAN_MTU,POLLING>
        inet xxxxxxxx netmask 0xffffffe0 broadcast xxxxxxxx
        ether 00:30:48:2c:6e:9b
        media: Ethernet autoselect (1000baseTX <full-duplex>)
        status: active
vlan8: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1546
        inet xxxxxx netmask 0xfffffff0 broadcast xxxxxxxxxx
        ether 00:30:48:2c:6e:9a
        media: Ethernet autoselect (1000baseTX <full-duplex>)
        status: active
        vlan: 8 parent interface: em0
vlan507: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1546
        inet xxxxxxx netmask 0xfffffff0 broadcast xxxxxxxxx
        ether 00:30:48:2c:6e:9b
        media: Ethernet autoselect (1000baseTX <full-duplex>)
        status: active
        vlan: 507 parent interface: em1
vlan200: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1546
        inet xxxxxxxx netmask 0xfffffff8 broadcast 82.220.0.223
        inet6 fe80::230:48ff:fe2c:6e9a%vlan200 prefixlen 64 scopeid 0x8
        ether 00:30:48:2c:6e:9b
        media: Ethernet autoselect (1000baseTX <full-duplex>)
        status: active
        vlan: 200 parent interface: em1


Regards,
Thomas





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1143795373.86901.18.camel>