incorrec output of print command?

Hi everybody, please can somebody tell me why i fi have this route lists


[admin@router-plaza] > /ip route print
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

DST-ADDRESS PREF-SRC GATEWAY DISTANCE

0 A S 0.0.0.0/0 ether1 1
1 A S 0.0.0.0/0 ether2 1
2 A S 0.0.0.0/0 vlan1-claudio1 1
3 X S ;;; claudio 1
0.0.0.0/0 192.168.201.1 1
4 A S 0.0.0.0/0 vlan2-claudio2 1
5 X S ;;; claudio 2
0.0.0.0/0 192.168.203.1 1
6 A S ;;; berloni
0.0.0.0/0 192.168.202.1 1
7 A S ;;; dubby
0.0.0.0/0 192.168.204.1 1
8 A S ;;; gelo 1
0.0.0.0/0 192.168.208.1 1
9 A S ;;; gelo 2
0.0.0.0/0 192.168.209.1 1
10 A S 0.0.0.0/0 192.168.207.1 1
11 A S 0.0.0.0/0 192.168.205.1 1
12 ADS 0.0.0.0/0 190.77.0.1 0
13 DS 0.0.0.0/0 190.205.128.1 1
14 S 0.0.0.0/0 192.168.209.1 2
15 DS 0.0.0.0/0 190.204.224.1 2
16 DS 0.0.0.0/0 200.84.128.1 3
17 ADC 190.77.0.0/19 190.77.18.216 ether1 0
18 ADC 190.204.224.0/19 190.204.227.183 vlan1-claudio1 0
19 ADC 190.205.128.0/19 190.205.138.128 ether2 0
20 A S 192.168.19.0/24 192.168.88.5 1
21 ADC 192.168.88.0/24 192.168.88.1 local 0
22 ADC 192.168.201.0/24 192.168.201.5 ether3 0
23 ADC 192.168.202.0/24 192.168.202.5 ether5 0
24 ADC 192.168.203.0/24 192.168.203.5 ether4 0
25 ADC 192.168.204.0/24 192.168.204.5 ether6 0
26 ADC 192.168.205.0/24 192.168.205.5 ether6 0
27 ADC 192.168.207.0/24 192.168.207.5 ether8 0
28 ADC 192.168.208.0/24 192.168.208.5 ether7 0
29 ADC 192.168.209.0/24 192.168.209.5 ether8 0
30 ADC 200.84.128.0/19 200.84.159.146 vlan2-claudio2 0


as you can see i have so many routes with dst-address 0.0.0.0/0
why this command just print an incomplete out?


[admin@router-plaza] > /ip route print where dst-address=0.0.0.0/0
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

DST-ADDRESS PREF-SRC GATEWAY DISTANCE

0 ADS 0.0.0.0/0 190.77.0.1 0
1 DS 0.0.0.0/0 190.205.128.1 1
2 S 0.0.0.0/0 192.168.209.1 2
3 DS 0.0.0.0/0 190.204.224.1 2
4 DS 0.0.0.0/0 200.84.128.1 3


so why the command dont show me all the routes with 0.0.0.0/0 as dst-address, i need to count this in order to make a choice, any help? thanks

Try using quotation marks:

/ip route print where dst-address="0.0.0.0/0"

thanks bud, but the output it’s the same

[admin@router-plaza] > /ip route print where dst-address=“0.0.0.0/0”
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

DST-ADDRESS PREF-SRC GATEWAY DISTANCE

0 ADS 0.0.0.0/0 190.77.0.1 0
1 DS 0.0.0.0/0 190.205.128.1 1
2 S 0.0.0.0/0 192.168.209.1 2
3 DS 0.0.0.0/0 190.204.224.1 2
4 DS 0.0.0.0/0 200.84.128.1 3

maybe, it works only with ‘main’ routing table in that case? =)

p.s. what is ‘DS’ route? dynamic-static? O_o

jeje DS.. maybe the mikrotik staff can answer this… lol, thanks for your answer

So, how i can count the number of routes that have 0.0.0.0 in all the tables need to count these in order to delete and write again dinamic the number of mangle rules to make the pcc marks…

thanks everybody for help me,
the problem solved at.

http://forum.mikrotik.com/t/solved-script-to-recreate-the-load-balance-mangle-rules/36203/1