From owner-freebsd-net@FreeBSD.ORG Fri Mar 31 08:55:59 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A5B7316A423 for ; Fri, 31 Mar 2006 08:55:59 +0000 (UTC) (envelope-from freebsdlists@bsdunix.ch) Received: from conversation.bsdunix.ch (ns1.bsdunix.ch [82.220.17.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id B218C43D53 for ; Fri, 31 Mar 2006 08:55:58 +0000 (GMT) (envelope-from freebsdlists@bsdunix.ch) Received: from localhost (localhost.bsdunix.ch [127.0.0.1]) by conversation.bsdunix.ch (Postfix) with ESMTP id 716D55F3D for ; Fri, 31 Mar 2006 10:55:11 +0200 (CEST) Received: from conversation.bsdunix.ch ([127.0.0.1]) by localhost (conversation.bsdunix.ch [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00989-01-3 for ; Fri, 31 Mar 2006 10:55:09 +0200 (CEST) Received: from bert.mlan.solnet.ch (bert.mlan.solnet.ch [212.101.1.83]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by conversation.bsdunix.ch (Postfix) with ESMTP id 139D35F3C for ; Fri, 31 Mar 2006 10:55:09 +0200 (CEST) From: Thomas To: freebsd-net@freebsd.org Content-Type: text/plain Date: Fri, 31 Mar 2006 10:56:13 +0200 Message-Id: <1143795373.86901.18.camel@bert.mlan.solnet.ch> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 SolNet.ch ISP Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at mail.bsdunix.ch Subject: bsnmp with vlan, no speed values are set X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Mar 2006 08:55:59 -0000 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 mtu 1546 options=4b inet xxxxxxxxx netmask 0xffffffe0 broadcast xxxxxxxxx ether 00:30:48:2c:6e:9a media: Ethernet autoselect (1000baseTX ) status: active em1: flags=18843 mtu 1546 options=4b inet xxxxxxxx netmask 0xffffffe0 broadcast xxxxxxxx ether 00:30:48:2c:6e:9b media: Ethernet autoselect (1000baseTX ) status: active vlan8: flags=8843 mtu 1546 inet xxxxxx netmask 0xfffffff0 broadcast xxxxxxxxxx ether 00:30:48:2c:6e:9a media: Ethernet autoselect (1000baseTX ) status: active vlan: 8 parent interface: em0 vlan507: flags=8843 mtu 1546 inet xxxxxxx netmask 0xfffffff0 broadcast xxxxxxxxx ether 00:30:48:2c:6e:9b media: Ethernet autoselect (1000baseTX ) status: active vlan: 507 parent interface: em1 vlan200: flags=8843 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 ) status: active vlan: 200 parent interface: em1 Regards, Thomas