Monitor 2nd WAN status on ER605 using SNMP

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.

Monitor 2nd WAN status on ER605 using SNMP

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
Monitor 2nd WAN status on ER605 using SNMP
Monitor 2nd WAN status on ER605 using SNMP
2021-11-30 02:08:24 - last edited 2022-02-11 12:35:34
Model: ER605 (TL-R605)  
Hardware Version: V1
Firmware Version: 1.1.1 Build 20210723 Rel.64608

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? 

 

 

  0      
  0      
#1
Options
1 Accepted Solution
Re:Monitor 2nd WAN status on ER605 using SNMP-Solution
2022-02-08 07:54:28 - last edited 2022-02-11 12:35:35

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~

>> Omada EAP Firmware Trial Available Here << *Try filtering posts on each forum by Label of [Early Access]*
Recommended Solution
  0  
  0  
#9
Options
10 Reply
Re:Monitor 2nd WAN status on ER605 using SNMP
2021-11-30 05:06:57 - last edited 2022-02-11 12:35:34

@NBAus 

That should be: eth0.1(WAN1) eth0.20(WAN2)

 

  0  
  0  
#2
Options
Re:Monitor 2nd WAN status on ER605 using SNMP
2021-12-01 02:38:05 - last edited 2022-02-11 12:35:35

@John1234 

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.

  0  
  0  
#3
Options
Re:Monitor 2nd WAN status on ER605 using SNMP
2021-12-01 04:58:15 - last edited 2022-02-11 12:35:35

@NBAus 

 

Hmm. If you set WAN2 on your router and save the config, try again, can you find that?

  0  
  0  
#4
Options
Re:Monitor 2nd WAN status on ER605 using SNMP
2021-12-01 06:07:08 - last edited 2022-02-11 12:35:35

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

>> Omada EAP Firmware Trial Available Here << *Try filtering posts on each forum by Label of [Early Access]*
  0  
  0  
#5
Options
Re:Monitor 2nd WAN status on ER605 using SNMP
2021-12-03 00:02:58 - last edited 2022-02-11 12:35:35

@John1234 

 

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.

 

@Fae 

 

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

 

  0  
  0  
#6
Options
Re:Monitor 2nd WAN status on ER605 using SNMP
2021-12-03 07:54:55 - last edited 2022-02-11 12:35:35

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

>> Omada EAP Firmware Trial Available Here << *Try filtering posts on each forum by Label of [Early Access]*
  0  
  0  
#7
Options
Re:Monitor 2nd WAN status on ER605 using SNMP
2022-02-04 01:02:26 - last edited 2022-02-11 12:35:35

@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:

  0  
  0  
#8
Options
Re:Monitor 2nd WAN status on ER605 using SNMP-Solution
2022-02-08 07:54:28 - last edited 2022-02-11 12:35:35

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~

>> Omada EAP Firmware Trial Available Here << *Try filtering posts on each forum by Label of [Early Access]*
Recommended Solution
  0  
  0  
#9
Options
Re:Monitor 2nd WAN status on ER605 using SNMP
2022-02-21 04:59:14

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

  0  
  0  
#10
Options
Re:Monitor 2nd WAN status on ER605 using SNMP
2022-03-29 22:12:05

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?

  0  
  0  
#11
Options