/
set protocols ospf4 area default-lsa metric

set protocols ospf4 area default-lsa metric


User can configure metric of default route of the switch interface.


Command Syntax
set protocols ospf4 vrf <vrf-name> area <area-id> default-lsa metric <uint>


Parameter

• <vrf-name> Optional. Specifies a VRF name. The value is a string. It’s a user-defined VRF set by the command set ip vrf <vrf-name> [description <string>].

   Note that: The configuration is in the default VRF if not explicitly bound to any VRF.

<area-id>  The OSPF area to which the attached network belongs.
<uint>  Metric of default route


Example
• This example configure the metric 6 of default route of the switch interface.

admin@XorPlus# set protocols ospf4 area 0.0.0.0 default-lsa metric 6
admin@XorPlus# commit

Copyright © 2025 Pica8 Inc. All Rights Reserved.