Two NE40 routers are connected with each other with using 13xE1 links in 2 mogroups voice voice connectivity of two sites UMGs, mpgroups are using OSPF with load balancing usign OSPF cost. One more E1 is added between two routers to enable operation and maintenance of both UMGs. This E1 link is not OSPF and we configured static route for OMC but this route is never followed and OMC traffic is also going through mogroups E1 links.
The ip route static for:
ip route-static 10.31.21.4 255.255.255.252 192.168.133.77 preference 200
Change it to
ip route-static 10.31.21.4 255.255.255.252 192.168.133.77 preference 5 (as long as lower than OSPF cost)
After this configuration change the problem is resolved.
lower value for preference means higher priority
While configuring loadsharing routes or giving multiple routes to one destination, we can select the route we want by using staic route preference option.