Changing the cost of OSPF links

The cost of an OSPF interface can be dynamically changed using the MODIFY procname,OSPF,WEIGHT,NAME=name,COST=cost command for an IPv4 OSPF interface or the MODIFY procname,IPV6OSPF,WEIGHT,NAME=name,COST=cost command for an IPv6 OSPF interface. This new cost is flooded quickly throughout the OSPF routing domain, and modifies the routing immediately.

The cost of the interface reverts to its configured value whenever OMPROUTE is restarted. To make the cost change permanent, you must reconfigure the appropriate OSPF interface in the configuration file.