Hi, I want to get the routing table from a router but with no luck, everything else like IP and interfaces have no problem.
Is there a way to do that on routerOS? I’ve tried v 4.9 5.0 and 5.2 and nothing… ![]()
Thanks
Jorge Frater
Hi, I want to get the routing table from a router but with no luck, everything else like IP and interfaces have no problem.
Is there a way to do that on routerOS? I’ve tried v 4.9 5.0 and 5.2 and nothing… ![]()
Thanks
Jorge Frater
Well to answer my own question, if I force the SNMP program to use SNMP v1 it works, it does detect the router to be v2 compatible and thats why I only tried v2, but at least on RouterOS 4.9 it works with v1
Jorge
Hi, I have the same problem:
If a fetch the routing table via SNMP a get an empty result.
Problem appeared from RouterOS version 5.0 (tested on 5.0rc till 5.4). In RouterOS 4.x, everything works. Tested on multiple routers.
In 5.x version, when I perform snmpwalk, it seems both IP address table (1.3.6.1.2.1.4.20) and ARP table (1.3.6.1.2.1.4.22) are OK. Only routing table is not accessible via SNMP. Tried both version 1 and 2c.
Thanks for any advice.
Petr
I’m having the same problem. I’m trying to monitor my OSPF status by checking the default route.
In v4.17:
snmpwalk -v2c -c public 172.20.0.1 iso.org.dod.internet.mgmt.mib-2.ip.ipRouteTable.ipRouteEntry.ipRouteNextHop.0.0.0.0
RFC1213-MIB::ipRouteNextHop.0.0.0.0 = IpAddress: 202.168.24.69
v5.4:
snmpwalk -v2c -c public 172.20.0.2 iso.org.dod.internet.mgmt.mib-2.ip.ipRouteTable.ipRouteEntry.ipRouteNextHop.0.0.0.0
RFC1213-MIB::ipRouteNextHop.0.0.0.0 = No Such Instance currently exists at this OID
I know this is an old post, but was there ever a working solution to this bug?
From a 5.25 router, I can only read about 320 routes from snmp.
From a 4.17 router, connected by ethernet to the same router, I can get all 632 routes from snmp.
Both show the same routes in winbox under /ip route…
Thanks,
Richard
And what is interesting is that it looks like the results from the 5.25 router are
skipping every other route entry that should be in the snmpwalk.
It prints one, then skips one, prints one, skips one..
If I try to query the oid directly ( that should be there, and is on the other router ), I get
“No Such Instance currently exists at this OID”
Richard
I recieved the typical “Upgrade to the latest 6.x version, and test it” from support…
Great..
Richard
You are using an old version which is very unlikely getting any updates. All issues are fixed only in v6 now, so if there was a bug, it is very likely v6 has it fixed. “Please upgrade” is a very reasonable response.
5.25 is not that old.
I have IPSEC tunnels on this router, also..
So, when I upgrade to 6.1, and it kills my IPSEC tunnels, that is a fix?
Thanks,
Richard
If you have a SNMP problem in v5.25, and an IPsec problem in v6.1, you are really out of luck. Both these issues are very rare, and happen only in specific circumstances. v6.2 has the IPsec issue fixed.
v6.2 is here: http://www.mikrotik.com/download/share/routeros-mipsbe-6.2.npk (MIPS-BE). Change the name to get other build files.
Normis, what about changelog for 6.2?
have you tried commenting the
line in
in case of a linux machine from which you do the query.
had the same problem and that solved it.
Semakka
I have the same (can’t get default route via snmp) problem on 5.11, 5.16, 5.24, 5.25, 6.1, 6.2 versions of RouterOS.
There is no effect after this.
can you give more info about how you do the query and what for?
Yes, I execute follow command and get:
root@ocs:~# snmpget -v 2c -c %my_read_comm% 10.10.0.10 .1.3.6.1.2.1.4.21.1.7.0.0.0.0
iso.3.6.1.2.1.4.21.1.7.0.0.0.0 = No Such Instance currently exists at this OID
Well, i have the same problem to all RB.
I can get with snmp only one route not all routing table.
Checked to v6.4 and 6.9 with snmpwalk snmpget whatsup,dude..only one route returns.
Tried everything.
The only tool i can get all routing table is Ipreasoning Mib Browser with getbulk. (not working either here with simple get).
any help will be appreciated..
G.
Checked with v5.26 works!
Problem exists in v6.xx
G.
Hello,
Any update from mikrotik?
thanks in advance,
George