Configure OSPF authentication using MD5 or plain text methods.
OSPF authentication helps prevent unauthorized routers from injecting incorrect routing information. Interface-level configuration takes precedence over area or process-level settings. If authentication is not set on the interface, it inherits the configuration from the area or process.
Before you begin
-
Determine whether to apply authentication globally, per OSPF area, or on specific interfaces.
-
Decide on the OSPF authentication method: MD5 (preferred) or plain text.
-
Ensure a valid OSPF keychain is configured if using MD5 authentication.
Follow these steps to configure and verify OSPF areas and neighbours:
Procedure
| 1. | Configure MD5 message digest authentication for the OSPF process and apply it to the required area or interface. Example:
|
|
| 2. | Define the OSPF keychain with multiple keys and send-lifetime values. Example:
|
|
| 3. | Verify that keychain authentication is enabled on the interface. Example:
|
|
| 4. | Verify that the configured OSPF keys are valid and active. Example:
|
|
| 5. | (Optional) Configure additional OSPF security features as needed, such as router ID, adjacency logging, NSF, throttle timers, or TTL hops. Example:
|
|
| 6. | (Optional) Configure plain text or null authentication at the area or interface level, if needed. Example:
|
|
| 7. | Verify that the GTSM security TTL value is configured on an OSPF interface. Example:
|
OSPF authentication is enabled and verified. The router securely exchanges OSPF routing information, ensuring only devices with the correct authentication settings can participate.