I’m having problems finding IP routes; some routes I can find, when I specify the address range and gateway, others I cant. For example there should be routes in the database to match both of these queries…
#1) This works:
[admin@MikroTik] /ip route> :put [/ip route get [/ip route find where dst-address=0.0.0.0/0 and gateway=184.21.208.1]]
.id=*65;dst-address=0.0.0.0/0;gateway=184.21.208.1;gateway-status=184.21.208.1 reachable ether5-exede;distance=2;scope=10;target-scope=10;routing-mark=DSL;active=false;static=true;disabled=false;comment=failover
#2) This doesn’t:
[admin@MikroTik] /ip route> :put [/ip route get [/ip route find where dst-address=0.0.0.0/0 and gateway=184.63.128.68]]
no such item
But, for heaven’s sake:
[admin@MikroTik] /ip route> :put [/ip route get [/ip route find where gateway=184.63.128.68]]
.id=*66;dst-address=0.0.0.0/0;gateway=184.63.128.68;gateway-status=184.63.128.68 recursive via 184.21.208.1 ether5-exede;check-gateway=ping;distance=1;scope=10;target-scope=10;routing-mark=VSAT;active=true;static=true;disabled=false;comment=failover
So as a work around, I’m searching by gateway and then trolling through the results to get the ones with the right dst-address. But shouldn’t I have been able to find what I want by filtering on both dst-address and gateway ? What am I doing wrong here please ?
Here’s my routing table…
[admin@MikroTik] /ip route> print detail
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit
0 A S ;;; failover
dst-address=0.0.0.0/0 gateway=8.8.8.8 gateway-status=8.8.8.8 recursive via 192.168.0.1 ether2-DSL check-gateway=ping distance=1 scope=10 target-scope=10
routing-mark=DSL
1 S ;;; failover
dst-address=0.0.0.0/0 gateway=184.21.208.1 gateway-status=184.21.208.1 reachable ether5-exede distance=2 scope=10 target-scope=10 routing-mark=DSL
2 A S ;;; failover
dst-address=0.0.0.0/0 gateway=184.63.128.68 gateway-status=184.63.128.68 recursive via 184.21.208.1 ether5-exede check-gateway=ping distance=1 scope=10
target-scope=10 routing-mark=VSAT
3 S ;;; failover
dst-address=0.0.0.0/0 gateway=192.168.0.1 gateway-status=192.168.0.1 reachable ether2-DSL distance=2 scope=10 target-scope=10 routing-mark=VSAT
4 A S ;;; failover
dst-address=8.8.8.8/32 gateway=192.168.0.1 gateway-status=192.168.0.1 reachable ether2-DSL distance=1 scope=10 target-scope=10
5 ADC dst-address=184.21.208.0/22 pref-src=184.21.208.100 gateway=ether5-exede gateway-status=ether5-exede reachable distance=0 scope=10
6 A S ;;; failover
dst-address=184.63.128.68/32 gateway=184.21.208.1 gateway-status=184.21.208.1 reachable ether5-exede distance=1 scope=10 target-scope=10
7 ADC dst-address=192.168.0.0/24 pref-src=192.168.0.203 gateway=ether2-DSL gateway-status=ether2-DSL reachable distance=0 scope=10
And here are my routeros versions…
[admin@MikroTik] /ip route> /system package print
Flags: X - disabled
# NAME VERSION SCHEDULED
0 routeros-mipsbe 5.9
1 system 5.9
2 X ipv6 5.9
3 dhcp 5.9
4 ppp 5.9
5 hotspot 5.9
6 X wireless 5.9
7 routing 5.9
8 routerboard 5.9
9 mpls 5.9
10 advanced-tools 5.9
11 security 5.9