https://redmine.pfsense.org/https://redmine.pfsense.org/favicon.ico?16780521162020-07-28T10:54:19ZpfSense bugtrackerpfSense - Bug #10793: SNMP: Netgate SG-3100 shows wrong speedhttps://redmine.pfsense.org/issues/10793?journal_id=473292020-07-28T10:54:19ZJim Pingle
<ul><li><strong>Target version</strong> set to <i>2.5.0</i></li></ul><p>I was able to reproduce this in both bsnmpd and net-snmp, looks like neither one likes the 2.5G uplink speed.</p>
<pre>
NET-SNMP:
$ snmpwalk -c public -v 1 198.51.100.8 iso.3.6.1.2.1.2.2.1.5
iso.3.6.1.2.1.2.2.1.2.1 = STRING: "mvneta0"
iso.3.6.1.2.1.2.2.1.2.2 = STRING: "mvneta1"
iso.3.6.1.2.1.2.2.1.2.8 = STRING: "mvneta2"
iso.3.6.1.2.1.2.2.1.5.1 = Gauge32: 1000000000
iso.3.6.1.2.1.2.2.1.5.2 = Gauge32: 10000000
iso.3.6.1.2.1.2.2.1.5.8 = Gauge32: 1000000000
$ snmpwalk -c public -v 1 198.51.100.8 iso.3.6.1.2.1.31.1.1.1
iso.3.6.1.2.1.31.1.1.1.1.1 = STRING: "mvneta0"
iso.3.6.1.2.1.31.1.1.1.1.2 = STRING: "mvneta1"
iso.3.6.1.2.1.31.1.1.1.1.8 = STRING: "mvneta2"
iso.3.6.1.2.1.31.1.1.1.15.1 = Gauge32: 1000
iso.3.6.1.2.1.31.1.1.1.15.2 = Gauge32: 10
iso.3.6.1.2.1.31.1.1.1.15.8 = Gauge32: 1000
bsnmpd:
$ snmpwalk -c public -v 1 198.51.100.8 iso.3.6.1.2.1.2.2.1
iso.3.6.1.2.1.2.2.1.2.1 = STRING: "mvneta0"
iso.3.6.1.2.1.2.2.1.2.2 = STRING: "mvneta1"
iso.3.6.1.2.1.2.2.1.2.8 = STRING: "mvneta2"
iso.3.6.1.2.1.2.2.1.5.1 = Gauge32: 0
iso.3.6.1.2.1.2.2.1.5.2 = Gauge32: 10000000
iso.3.6.1.2.1.2.2.1.5.8 = Gauge32: 1000000000
$ snmpwalk -c public -v 1 198.51.100.8 iso.3.6.1.2.1.31.1.1.1
iso.3.6.1.2.1.31.1.1.1.1.1 = STRING: "mvneta0"
iso.3.6.1.2.1.31.1.1.1.1.2 = STRING: "mvneta1"
iso.3.6.1.2.1.31.1.1.1.1.8 = STRING: "mvneta2"
iso.3.6.1.2.1.31.1.1.1.15.1 = Gauge32: 0
iso.3.6.1.2.1.31.1.1.1.15.2 = Gauge32: 10
iso.3.6.1.2.1.31.1.1.1.15.8 = Gauge32: 1000
mvneta0: flags=8a43<UP,BROADCAST,RUNNING,ALLMULTI,SIMPLEX,MULTICAST> metric 0 mtu 1500
media: Ethernet autoselect (none)
status: no carrier
mvneta1: flags=8a43<UP,BROADCAST,RUNNING,ALLMULTI,SIMPLEX,MULTICAST> metric 0 mtu 1500
media: Ethernet 2500Base-KX <full-duplex>
status: active
mvneta2: flags=8a43<UP,BROADCAST,RUNNING,ALLMULTI,SIMPLEX,MULTICAST> metric 0 mtu 1500
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
</pre>
<p>Though it's not clear yet what, if anything, we can do about this as it may be an upstream problem in the OS and/or one or both SNMP daemons.</p> pfSense - Bug #10793: SNMP: Netgate SG-3100 shows wrong speedhttps://redmine.pfsense.org/issues/10793?journal_id=473342020-07-28T16:04:16ZGrischa Zengel
<ul></ul><p>Is this relevant?<br />mvneta1 supports only 2500MBit but connects with 100MBit.</p>
<pre>
mvneta0: flags=8a02<BROADCAST,ALLMULTI,SIMPLEX,MULTICAST> metric 0 mtu 1500
supported media:
media autoselect
media 1000baseSX mediaopt full-duplex
media 1000baseSX
media 1000baseT mediaopt full-duplex,master
media 1000baseT mediaopt full-duplex
media 1000baseT mediaopt master
media 1000baseT
media 100baseTX mediaopt full-duplex
media 100baseTX
media 10baseT/UTP mediaopt full-duplex
media 10baseT/UTP
media none
mvneta1: flags=8a43<UP,BROADCAST,RUNNING,ALLMULTI,SIMPLEX,MULTICAST> metric 0 mtu 1500
supported media:
media 2500Base-KX mediaopt full-duplex
mvneta2: flags=8a43<UP,BROADCAST,RUNNING,ALLMULTI,SIMPLEX,MULTICAST> metric 0 mtu 1500
supported media:
media autoselect
media 1000baseSX mediaopt full-duplex
media 1000baseSX
media 1000baseT mediaopt full-duplex,master
media 1000baseT mediaopt full-duplex
media 1000baseT mediaopt master
media 1000baseT
media 100baseTX mediaopt full-duplex
media 100baseTX
media 10baseT/UTP mediaopt full-duplex
media 10baseT/UTP
media none
</pre> pfSense - Bug #10793: SNMP: Netgate SG-3100 shows wrong speedhttps://redmine.pfsense.org/issues/10793?journal_id=473512020-07-29T12:02:09ZLuiz Souzaluiz@netgate.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Feedback</i></li><li><strong>Assignee</strong> set to <i>Luiz Souza</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Fixed.</p>
<p>Please test with the next snapshot.</p> pfSense - Bug #10793: SNMP: Netgate SG-3100 shows wrong speedhttps://redmine.pfsense.org/issues/10793?journal_id=473572020-07-30T13:39:28ZJim Pingle
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Resolved</i></li></ul><p>Looks good now.</p>
<pre>
iso.3.6.1.2.1.31.1.1.1.1.1 = STRING: "mvneta0"
iso.3.6.1.2.1.31.1.1.1.1.2 = STRING: "mvneta1"
iso.3.6.1.2.1.31.1.1.1.1.8 = STRING: "mvneta2"
iso.3.6.1.2.1.31.1.1.1.15.1 = Gauge32: 0
iso.3.6.1.2.1.31.1.1.1.15.2 = Gauge32: 2500
iso.3.6.1.2.1.31.1.1.1.15.8 = Gauge32: 1000
iso.3.6.1.2.1.2.2.1.2.1 = STRING: "mvneta0"
iso.3.6.1.2.1.2.2.1.2.2 = STRING: "mvneta1"
iso.3.6.1.2.1.2.2.1.2.8 = STRING: "mvneta2"
iso.3.6.1.2.1.2.2.1.5.1 = Gauge32: 0
iso.3.6.1.2.1.2.2.1.5.2 = Gauge32: 2500000000
iso.3.6.1.2.1.2.2.1.5.8 = Gauge32: 1000000000
</pre> pfSense - Bug #10793: SNMP: Netgate SG-3100 shows wrong speedhttps://redmine.pfsense.org/issues/10793?journal_id=473582020-07-30T13:43:31ZJim Pingle
<ul></ul><p>Grischa Zengel wrote:</p>
<blockquote>
<p>Is this relevant?<br />mvneta1 supports only 2500MBit but connects with 100MBit.</p>
</blockquote>
<p>I do not see anything on 2.4.5-p1 or 2.5.0 which reports 100Mbit/s for mvneta1. For me, both report <code>2500Base-KX <full-duplex></code> in the widget and Status > Interfaces, which agrees with ifconfig. I don't see anything in SNMP which reports that value either.</p> pfSense - Bug #10793: SNMP: Netgate SG-3100 shows wrong speedhttps://redmine.pfsense.org/issues/10793?journal_id=473612020-07-30T14:29:54ZGrischa Zengel
<ul><li><strong>File</strong> <a href="/attachments/3121">2020-07-30 21-24-58.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3121/2020-07-30%2021-24-58.png">2020-07-30 21-24-58.png</a> added</li><li><strong>File</strong> <a href="/attachments/3120">2020-07-30 21-24-04.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3120/2020-07-30%2021-24-04.png">2020-07-30 21-24-04.png</a> added</li><li><strong>File</strong> <a href="/attachments/3122">2020-07-30 21-23-29.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3122/2020-07-30%2021-23-29.png">2020-07-30 21-23-29.png</a> added</li><li><strong>File</strong> <a href="/attachments/3123">2020-07-30 21-22-54.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3123/2020-07-30%2021-22-54.png">2020-07-30 21-22-54.png</a> added</li></ul><p>It looks like it reflects speed from 1st switch port or max link speed on switch.</p>
<p>!2020-07-30 21-24-58.png!<br />!2020-07-30 21-24-04.png!<br />!2020-07-30 21-23-29.png!<br />!2020-07-30 21-22-54.png!</p> pfSense - Bug #10793: SNMP: Netgate SG-3100 shows wrong speedhttps://redmine.pfsense.org/issues/10793?journal_id=473622020-07-30T14:55:21ZJim Pingle
<ul></ul><p>"LAN Uplink" is mvneta1. The others are the individual switch ports, not mvneta* interfaces.</p>
<p>With the built-in bsnmpd it has that interface under <code>iso.3.6.1.2.1.2.2.1.2.3</code> ("e6000sw0port1") but bsnmpd apparently can't read the speed of the switch ports, which wouldn't be related to this issue. net-snmpd doesn't list them at all. If that's something else you'd like to see, open a new feature request. We can't guarantee it's something we'd be able to address, but we can look into it.</p> pfSense - Bug #10793: SNMP: Netgate SG-3100 shows wrong speedhttps://redmine.pfsense.org/issues/10793?journal_id=473632020-07-30T15:06:21ZGrischa Zengel
<ul></ul><p>No, no problem.</p>
<p>But you said mvneta1 is always at 2500MBit but pfsense shows 100MBit like picture 2020-07-30 21-24-04.png shows.</p>
<p>Where is this code? Is this closed source for SG-3100?</p> pfSense - Bug #10793: SNMP: Netgate SG-3100 shows wrong speedhttps://redmine.pfsense.org/issues/10793?journal_id=473642020-07-30T15:13:05ZJim Pingle
<ul></ul><p>That doesn't happen by default. You probably selected "Port 1" as the switch port to monitor under Interfaces > LAN_1 which is probably also not something you want to do. That's intended for setups where you map a switch port to a single VLAN and want the up/down link status of the switch port to be reflected by the assigned interface.</p>
<p>It's not a bug in that case, it's expected since you directed the system to associate the status of switch port 1 with LAN.</p> pfSense - Bug #10793: SNMP: Netgate SG-3100 shows wrong speedhttps://redmine.pfsense.org/issues/10793?journal_id=473692020-07-31T08:26:13ZGrischa Zengel
<ul></ul><p>I agree, it's not a bug.<br />I forgot that this switch config for tracking ports exists because I only used it once at first setup.<br />I never use internal switch ports on routers if there is a backbone switch. I like to see if the backbone switch is connected and use only LAN1.</p>
<p>I will open a feature request to show the fact that's there a mirror port on mvneta1 in status->interface. I think this will make it more transparent if somebody forget it like me.</p>