set protocols ospf default-metric
Run the command set protocols ospf default-metric to set the default metric for redistributed routes in the OSPF.
The command delete protocols ospf default-metric sets the default metric to be used for redistributed routes into OSPF to the default of 20.
Command Syntax
set protocols ospf [vrf <vrf-name>] default-metric <METRIC-VALUE>
delete protocols ospf [vrf <vrf-name>] default-metric
Parameter
Parameter | Description |
vrf <vrf-name> | Optional. Specifies the name of the VRF for the OSPF instance. |
default-metric <METRIC-VALUE> | Specifies the default metric value to use for redistributed routes. The value could be an integer that ranges from 0 to 1677214. The default value is 20. |
Example
- Â Configure default metric for redistributed routes:
admin@XorPlus# set protocols ospf default-metric 37 admin@Xorplus# commit
Copyright © 2024 Pica8 Inc. All Rights Reserved.