I have a problem and Google hasn't been able to help.
I have the following routing table:
Code: Select all
[admin@MikroTik] > /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 S 0.0.0.0/0 255.255.255.1 1
1 ADS 0.0.0.0/0 10.254.0.254 12
2 ADC 10.254.0.0/24 10.254.0.30 ether1 0
Code: Select all
/ip route
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
255.255.255.1 routing-mark=testmark scope=30 target-scope=10
Code: Select all
[admin@MikroTik] > :put [/ip route get [find dst-address="0.0.0.0/0"] gateway]
10.254.0.254
Code: Select all
[admin@MikroTik] > :put [/ip route get [find routing-mark="testmark"] gateway]
255.255.255.1
Code: Select all
[admin@MikroTik] > :put [/ip route get [find dst-address="0.0.0.0/0" routing-mar
k="testmark"] gateway]
no such item
Any ideas?