Monitor 2nd WAN status on ER605 using SNMP
I set up 2nd WAN in a standalone ER605 with a mobile connection as fail over. I would like to monitor the state of this connection, making sure it is always ready for failover. It is a CG-NAT connection so incoming connection through this is not possible. I am hoping SNMP can provide such info. However, with snmpwalk I got these interfaces only:
iso.3.6.1.2.1.2.2.1.2.1 = STRING: "lo"
iso.3.6.1.2.1.2.2.1.2.2 = STRING: "ip6tnl0"
iso.3.6.1.2.1.2.2.1.2.3 = STRING: "sit0"
iso.3.6.1.2.1.2.2.1.2.4 = STRING: "gre0"
iso.3.6.1.2.1.2.2.1.2.5 = STRING: "gretap0"
iso.3.6.1.2.1.2.2.1.2.9 = STRING: "veth1"
iso.3.6.1.2.1.2.2.1.2.11 = STRING: "eth0.1"
I believe "veth1" is the LAN port and "eth0.1" is the first WAN. Not possible to get info for the 2nd WAN? Or am I missing something?
- Copy Link
- Subscribe
- Bookmark
- Report Inappropriate Content
Dear @tsestini,
tsestini wrote
I'm on the new firmware and it seems this wasn't changed. From what I gather interface 11 (eth0) is my LAN side and interface 9 (veth1) is WAN. But it seems like the WAN side is reported as a single virtual interface. This prevents us from collecting data of the actual WAN interfaces individually.
Sorry if I didn't make it clearly in the previous reply.
The next firmware update (ER605 FW 1.2.0) will support to obtain the WAN interfaces via SNMP, which will be probably released this month (just for your reference only). And I'll actively update this post once there is a new firmware released, welcome to subscribe~
- Copy Link
- Report Inappropriate Content
- Copy Link
- Report Inappropriate Content
I didn't not see the WAN2 OID. My OP lists all the interfaces I can find in the snmpwalk output. I have tested with two ER605's. One with OC200 and one standalone. Both shows the same list of interfaces. Only eth0.1 shows up. No eth0.2, eth0.10 or eth0.20.
- Copy Link
- Report Inappropriate Content
- Copy Link
- Report Inappropriate Content
Dear @NBAus,
NBAus wrote
I set up 2nd WAN in a standalone ER605 with a mobile connection as fail over. I would like to monitor the state of this connection, making sure it is always ready for failover. It is a CG-NAT connection so incoming connection through this is not possible. I am hoping SNMP can provide such info. However, with snmpwalk I got these interfaces only:
iso.3.6.1.2.1.2.2.1.2.1 = STRING: "lo"
iso.3.6.1.2.1.2.2.1.2.2 = STRING: "ip6tnl0"
iso.3.6.1.2.1.2.2.1.2.3 = STRING: "sit0"
iso.3.6.1.2.1.2.2.1.2.4 = STRING: "gre0"
iso.3.6.1.2.1.2.2.1.2.5 = STRING: "gretap0"
iso.3.6.1.2.1.2.2.1.2.9 = STRING: "veth1"
iso.3.6.1.2.1.2.2.1.2.11 = STRING: "eth0.1"
I believe "veth1" is the LAN port and "eth0.1" is the first WAN. Not possible to get info for the 2nd WAN? Or am I missing something?
You may refer to the FAQ below and see if it helps for your case.
How to check the link status and data traffic statistics of TP-Link Business Routers with SNMP
- Copy Link
- Report Inappropriate Content
WAN2 has been set up. The two devices I tested with snmpwalk on are in fact in production environment. One device for failover and another for load balancing and both are working fine. The controller shows fair amount of traffic for WAN2. However, no SNMP OID results for the WAN2 in both cases.
I have read this article. In fact I followed its instruction to get the list of interfaces in my OP. If I followed all the instruction, it consistently gives me only 1,2,3,4,5,9 and 11 child OIDs:
$ snmpwalk -v 1 -c xxxxx xxx.xxx.xxx.xxx .1.3.6.1.2.1.2.2.1.2
iso.3.6.1.2.1.2.2.1.2.1 = STRING: "lo"
iso.3.6.1.2.1.2.2.1.2.2 = STRING: "ip6tnl0"
iso.3.6.1.2.1.2.2.1.2.3 = STRING: "sit0"
iso.3.6.1.2.1.2.2.1.2.4 = STRING: "gre0"
iso.3.6.1.2.1.2.2.1.2.5 = STRING: "gretap0"
iso.3.6.1.2.1.2.2.1.2.9 = STRING: "veth1"
iso.3.6.1.2.1.2.2.1.2.11 = STRING: "eth0.1"
$ snmpwalk -v 1 -c xxxxx xxx.xxx.xxx.xxx .1.3.6.1.2.1.2.2.1.8
iso.3.6.1.2.1.2.2.1.8.1 = INTEGER: 1
iso.3.6.1.2.1.2.2.1.8.2 = INTEGER: 2
iso.3.6.1.2.1.2.2.1.8.3 = INTEGER: 2
iso.3.6.1.2.1.2.2.1.8.4 = INTEGER: 2
iso.3.6.1.2.1.2.2.1.8.5 = INTEGER: 2
iso.3.6.1.2.1.2.2.1.8.9 = INTEGER: 1
iso.3.6.1.2.1.2.2.1.8.11 = INTEGER: 1
$ snmpwalk -v 1 -c xxxxx xxx.xxx.xxx.xxx .1.3.6.1.2.1.2.2.1.10
iso.3.6.1.2.1.2.2.1.10.1 = Counter32: 0
iso.3.6.1.2.1.2.2.1.10.2 = Counter32: 0
iso.3.6.1.2.1.2.2.1.10.3 = Counter32: 0
iso.3.6.1.2.1.2.2.1.10.4 = Counter32: 0
iso.3.6.1.2.1.2.2.1.10.5 = Counter32: 0
iso.3.6.1.2.1.2.2.1.10.9 = Counter32: 916924924
iso.3.6.1.2.1.2.2.1.10.11 = Counter32: 2120493252
$ snmpwalk -v 1 -c xxxxx xxx.xxx.xxx.xxx .1.3.6.1.2.1.2.2.1.16
iso.3.6.1.2.1.2.2.1.16.1 = Counter32: 0
iso.3.6.1.2.1.2.2.1.16.2 = Counter32: 0
iso.3.6.1.2.1.2.2.1.16.3 = Counter32: 0
iso.3.6.1.2.1.2.2.1.16.4 = Counter32: 0
iso.3.6.1.2.1.2.2.1.16.5 = Counter32: 0
iso.3.6.1.2.1.2.2.1.16.9 = Counter32: 383052943
iso.3.6.1.2.1.2.2.1.16.11 = Counter32: 2773338499
- Copy Link
- Report Inappropriate Content
Dear @NBAus,
NBAus wrote
I have read this article. In fact I followed its instruction to get the list of interfaces in my OP. If I followed all the instruction, it consistently gives me only 1,2,3,4,5,9 and 11 child OIDs:
Thank you for your valued feedback. This has been confirmed to be fixed in the subsequent firmware update.
I'll update the post below when the new firmware is available.
[New Firmware] The firmware v1.1.1 has been released for both ER605 and ER7206 by August 9, 2021
- Copy Link
- Report Inappropriate Content
@Fae Hi, there.
I'm on the new firmware and it seems this wasn't changed. From what I gather interface 11 (eth0) is my LAN side and interface 9 (veth1) is WAN. But it seems like the WAN side is reported as a single virtual interface. This prevents us from collecting data of the actual WAN interfaces individually.
The reason I believe the interfaces are reporting as I described is that the traffic flow tells me data in from 9 is equal to data out from 11 and vice-versa.
Any way to get data for the actual WAN interfaces?
My firmware version:
- Copy Link
- Report Inappropriate Content
Dear @tsestini,
tsestini wrote
I'm on the new firmware and it seems this wasn't changed. From what I gather interface 11 (eth0) is my LAN side and interface 9 (veth1) is WAN. But it seems like the WAN side is reported as a single virtual interface. This prevents us from collecting data of the actual WAN interfaces individually.
Sorry if I didn't make it clearly in the previous reply.
The next firmware update (ER605 FW 1.2.0) will support to obtain the WAN interfaces via SNMP, which will be probably released this month (just for your reference only). And I'll actively update this post once there is a new firmware released, welcome to subscribe~
- Copy Link
- Report Inappropriate Content
I thought 1.3.6.1.2.1.2.2.1.8.11, the ifOperStatus id for the WAN interface, would give me the state of the WAN interface. However, it always return '1' no matter if I plug or unplug the network cable. Am I looking at the wrong oid for this purpose or I come across another bug?
$ snmpwalk -v 1 -c xxxxx xxx.xxx.xxx.xxx .1.3.6.1.2.1.2.2.1.8
iso.3.6.1.2.1.2.2.1.8.1 = INTEGER: 1
iso.3.6.1.2.1.2.2.1.8.2 = INTEGER: 2
iso.3.6.1.2.1.2.2.1.8.3 = INTEGER: 2
iso.3.6.1.2.1.2.2.1.8.4 = INTEGER: 2
iso.3.6.1.2.1.2.2.1.8.5 = INTEGER: 2
iso.3.6.1.2.1.2.2.1.8.9 = INTEGER: 1
iso.3.6.1.2.1.2.2.1.8.11 = INTEGER: 1
- Copy Link
- Report Inappropriate Content
Fae wrote
Dear @tsestini,
tsestini wrote
I'm on the new firmware and it seems this wasn't changed. From what I gather interface 11 (eth0) is my LAN side and interface 9 (veth1) is WAN. But it seems like the WAN side is reported as a single virtual interface. This prevents us from collecting data of the actual WAN interfaces individually.
Sorry if I didn't make it clearly in the previous reply.
The next firmware update (ER605 FW 1.2.0) will support to obtain the WAN interfaces via SNMP, which will be probably released this month (just for your reference only). And I'll actively update this post once there is a new firmware released, welcome to subscribe~
@Fae The FW 1.2 has been released but I am still unable to monitor the 2nd WAN port.
Can you, please, confirm this firmware has fixed this issue?
- Copy Link
- Report Inappropriate Content
Information
Helpful: 0
Views: 3427
Replies: 10
Voters 0
No one has voted for it yet.