Configuring OSPF interface settings

You can optionally adjust the following OSPF interface settings.

Prerequisites
You must be in the interface configuration context, as indicated by the switch(config-if)# prompt.
Procedure
  • Set the interface cost using the following command. For command details, see ip ospf cost.

    ip ospf cost <interface-cost>

    For example, the following command sets the cost associated with interface 1/1/1 to 100.
    switch(config)# interface 1/1/1
    switch(config-if)# ip ospf cost 100
  • Set the time interval between OSPF hello packets for the OSPF interface using the following command. For command details, see ip ospf hello-interval.

    ip ospf hello-interval <seconds>

  • Set the interval after which a neighbor is declared dead if no hello packet is received on the OSPF interface using the following command. For command details, see ip ospf dead-interval.

    ip ospf dead-interval <seconds>

  • Set the time between retransmitting lost link state advertisements for the OSPF interface using the following command. For command details, see ip ospf retransmit-interval.

    ip ospf retransmit-interval <seconds>

  • Sets the transit delay in Link state transmission for the OSPF interface using the following command. For command details, see ip ospf transit-delay.

    ip ospf transit-delay <seconds>

  • Set the OSPF network type for the interface. For command details, see ip ospf network.

    ip ospf network {broadcast|point-to-point}

  • Set the OSPF priority on the interface using the following command. For command details, see ip ospf priority.

    ip ospf priority <number-value>

  • Set the OSPF interface as OSPF passive interface. The interface participates in OSPF but does not send or receive packets on that interface. For command details, see ip ospf passive.

    ip ospf passive