OSPF priority for dynamic Interfaces

Is it possible to (pre-)set/edit the OSPF priority for a dynamically added interface or would one have to copy that dynamic to a “static” interface in order to do so?

Depends what you mean by dynamic

in OSPF - a dynamic interface can be created within OSPF based on Network addition (including physical interfaces) - is this the dynamic interface you mean? If so you will need to move the physical interfaces to ‘static’ and add your path cost etc.

If you are talking about dial-in or style interfaces (VPN, PPPoE etc) - then you ‘may’ be able to do something dynamic with on-up scripts, but in the few instances that I require OSPF over these kind of dynamic interfaces, I’ve simply created a server binding so I can address it statically.

That’s exactly what I meant so I assume now that I need to move the physical interfaces to a static configuration rather than letting them being covered by a network statement.

Thanks!

If there is no static entry in OSPF interface configuration, then parameters are taken from “all” entry. So you can adjust priority there to have all dynamic interfaces needed priority,

Would be good if we could make rules based on interface lists :wink: