Configuring OSPF Tunable Parameters
Ciscos OSPF implementation enables you to alter certain interface-specific OSPF parameters, as needed. You are not required to alter any of these parameters, but some interface parameters must be consistent across all routers in an attached network. Those are the parameters set by the following commands:
ip ospf hello-interval ip ospf dead-interval ip ospf authentication-key timers spf spf-delay spf-holdtime
Therefore, be sure that if you do configure any of these parameters, the configurations for all routers on your network have compatible values.
More detailed information regarding tunable OSPF parameters was previously covered in Chapter 6. Remember that the hello packet defaults to being sent every 10 seconds on broadcast networks (Ethernet) and every 30 seconds on nonbroadcast networks (Frame Relay).
In interface configuration mode, specify any of the interface parameters as needed for your network as shown in Table 7-1.
Configuring Route Calculation Timers
You can configure the delay time between when OSPF receives a topology change and when it starts a shortest path first (SPF) calculation. You can also configure the hold time between two consecutive SPF calculations. This command was added to prevent routers from computing new routing tables. This is important if you are running OSPF in a very active network that experiences a lot of interface changes or other occurrences which would cause an LSA to be sent, such as a rapidly flapping serial line.
To set the values, perform the following task in router configuration mode:
timers spf spf-delay spf-holdtime
Creating a Loopback Interface
As previously discussed, the use of a loopback interface will force the selection by OSPF of its router ID. The default for Cisco routers is loopback interface and then the highest IP address assigned to an interface. The use of a loopback interface enables you to assign the router ID. This can be very beneficial. Because a loopback interface is not a physical interface, like Ethernet, you must create it.
You can configure a loopback interface by entering the interface loopback 0 command in the router configuration mode. The following example demonstrates the process:
OSPF_Router# conf t Enter configuration commands, one per line. End with CNTL/Z. OSPF_Router(config)# interface loopback 0 OSPF_Router(config-if)# ip address 10.251.11.1 255.255.255.255 OSPF_Router(config-if)# description Configured to be OSPF Router ID
Configuring OSPF for Different Network Types
As previously discussed, OSPF classifies different media into three types of networks as a default. Each of these networks requires a slightly different configuration to optimize the performance of OSPF. This section covers the methods and procedures that are needed in order to configure OSPF over different physical networks, such as the following:
One of the most flexible features of OSPF is that you can configure your network as either a broadcast or a nonbroadcast multiaccess network. OSPF will respond accordingly.
X.25 and Frame Relay provide an optional broadcast capability that can be configured using the map command to allow OSPF to run as a broadcast network. This command is useful if you are running a meshed network.
The specific X.25 and Frame Relay commands are outside the scope of this book. If additional information is required, see the x25 map and frame-relay map command descriptions in Ciscos Wide-Area Networking Command Reference for more details.
Configuring your OSPF network type is one of the most functional features of OSPF. Everyone realizes that OSPF is not the perfect protocol, in fact, there will be never a protocol suitable for every situation. The strength of OSPF lies in its capability to be customized to meet certain network design requirements. The following sections will assist your understanding of customizing OSPF to your networks design.