View the OSPF Default Cost Information

View the OSPF default cost information to ensure accuracy.

Procedure

  1. Enter Privileged EXEC mode:

    enable

  2. View the OSPF cost information:

    show ip ospf default—cost [vrf WORD<1-16>] [vrfids WORD<0-512>]

Example

View the OSPF cost information on the switch:

Switch:1#show ip ospf default-cost vrf 3

==========================================================================================
                          OSPF Default Metric - VRF 3

==========================================================================================
    10MbpsPortDefaultMetric: 100
   100MbpsPortDefaultMetric: 10
  1000MbpsPortDefaultMetric: 1
 10000MbpsPortDefaultMetric: 1
25000MbpsPortDefaultMetric:  1
 40000MbpsPortDefaultMetric: 1
100000MbpsPortDefaultMetric: 1

Variable definitions

The following table defines parameters for the show ip ospf default-cost command.

Variable

Value

vrf WORD<1-16>

Specifies a VRF by name.

vrfids WORD<0-512>

Specifies a range of VRF IDs.