Hi,
IP routes have both a static and a dynamic property. Is there any scenario where either none or both are set? (for the purpose of [find])
Hi,
IP routes have both a static and a dynamic property. Is there any scenario where either none or both are set? (for the purpose of [find])
Are you hypothizing the existence of Schrodinger's routes that are at the same time dynamic and static?
And of anti-routes that are neither?
Improbable, unless we have a perfectly spherical router in a vacuum.
Now, seriously, none that I know of.
If you check the example here:
[admin@MikroTik] /ip/route> print
Flags: D - dynamic; X - disabled, I - inactive, A - active; C - connect, S - stati
c, r - rip, b - bgp, o - ospf, d - dhcp, v - vpn
Columns: DST-ADDRESS, GATEWAY, DIstance
# DST-ADDRESS GATEWAY DI
0 XS 10.155.101.0/24 1.1.1.10
1 XS 11.11.11.10
D d 0.0.0.0/0 10.155.101.1 10
2 AS 0.0.0.0/0 10.155.101.1 1
3 AS + 1.1.1.0/24 10.155.101.1 10
4 AS + 1.1.1.0/24 10.155.101.2 10
5 AS 8.8.8.8 2.2.2.2 1
DAC 10.155.101.0/24 ether12 0
| ||| | | | |
| ||| | | | \----Distance
| ||| | | \--Configured gateway
| ||| | \-- dst prefix
| ||| \----- ECMP flag
| ||\------- flag indicating which protocol have added the route (bgp, osf,static,connected etc.)
| |\-------- route status flag (active, inactive, disabled)
| \--------- shows if route is dynamic
\----------- console order number (shown only for static editable routes)
you will see that the S or D are not in the same column, which means that they are not corresponding properties.
The D is a "flag" a route is either Dynamic or non-Dynamic.
The S doesn't really mean "static", but rather "coming from a static setting" (like the C means "coming from connection", the b "coming from bgp", d "coming from DHCP", etc.)
But the S cannot be also D, whilst a C or d one cannot be non-D.
Hmm, IDK for sure. Logically, of course not: they are "opposites". Practically speaking...there are few dynamic routing protocols. So you can have a route you have defined statically, as well as one "dynamic" one from a routing protocol (or even modem/vpn/etc). But details matter here
But I would not think they'd show up on same line, but perhaps. I would have said you'd end up with an ECMP route before a DS on flags on same route, but again IDK. The other important detail here is I'd check:
/routing/route/print
And what that shows, that is more "authoritative" than the /ip/route in V7. /ip/route is just a view of the "real" table show there.
Also a F5 refresh in winbox is something also worth trying, if you see "odd" things /ip/route... since it not as responsive to changes as V6 used to be.