Stephen,
From EXOS User Guide:
Multiple Routes
When there are multiple, conflicting choices of a route to a particular destination, the router picks the route with the longest matching network mask. If these are still equal, the router picks the route using the following default criteria (in the order specified):
• Directly attached network interfaces
• Static routes
• ICMP redirects
• Dynamic routes
• Directly attached network interfaces that are not active.
In the first case, the static route and the dynamic route to 172.22.62.0/20 have the same cost, so the precedence rule dictates that the static route will be the one chosen as active.
The second RIP route is active even though it has a higher cost, because it is MORE SPECIFIC (/26) than the static route (/24). That means that all traffic to 201.133.58.0/24 will use the static route EXCEPT traffic destined to 201.133.58.64/26, that will use the dynamic route.
In the second case, the cost of the static route to 172.122.16.0 is LOWER than the dynamic route, so it will be preferred.
Again, the second RIP route is active even though it has a higher cost, because it is MORE SPECIFIC (/25) than the static route (/24). That means that all traffic to 144.202.234.0/24 will use the static route EXCEPT traffic destined to 144.202.234.128/25, that will use the dynamic route.
If you want your dynamic routes (RIP) to have precedence, you have to increase the cost of the static routes using the metric keyword.
configure iproute add [ipNetmask | ip_addr mask] gateway {bfd} {metric} {multicast | multicast-only | unicast | unicast-only} {vlan egress_vlan} {vr vrname}