Skip to main content
Cisco SD-WAN
Product Documentation
Viptela Documentation


vpn router ospf max-metric—Configure OSPF to advertise a maximum metric so that other routers do not prefer this vEdge router as an intermediate hop in their Shortest Path First (SPF) calculation (on vEdge routers only).

vManage Feature Template

For vEdge routers only:

Configuration ► Templates ► OSPF

Command Hierarchy

vpn vpn-id  
    ospf      ​
  ​      router-lsa (administrative | on-startup seconds)


Advertise Administratively
router-lsa administrative
Force the maximum metric to take effect immediately, through operator intervention.
Advertise the Maximum metric When the Router Starts Up
router-lsa on-startup seconds
Advertise the maximum metric for the specified number of seconds after the router starts up.
Range: 0, 5 through 86400 seconds
Default: 0 seconds (the maximum metric is advertised immediately when the router starts up)

Operational Commands

show ospf routes


Have the maximum metric take effect immediately:

vEdge(config-ospf)# max-metric router-lsa administrative 
vEdge(config-ospf)# show configuration 
vpn 1
   max-metric router-lsa administrative

Release Information

Command introduced in Viptela Software Release 14.1.​

Additional Information

See the Routing CLI Reference article for your software release.

  • Was this article helpful?