OSPF authentication (plaintext and MD5) and the hello/dead timers
Sign in to read this lesson
OSPF packets can be protected with authentication. For plaintext you configure ip ospf authentication and ip ospf authentication-key on the interface; for MD5, ip ospf authentication message-digest and ip ospf message-digest-key 1 md5; both sides must match. In debug ip ospf packet output, aut:0 means no authentication, aut:1 plaintext and aut:2 MD5. Authentication can also be enabled for a whole area. The default hello is 10 and dead 40 seconds; they are changed with ip ospf hello-interval and ip ospf dead-interval and must be the same on both sides.
What you will learn
- Plaintext: on the interface,
ip ospf authentication+ip ospf authentication-key <password>. - MD5:
ip ospf authentication message-digest+ip ospf message-digest-key 1 md5 <password>. The key ID (1) and password must be the same on both sides. - As soon as you configure one side, the adjacency drops and doesn't come back until the other side is configured too.
debug ip ospf packet: aut:0 = no authentication, aut:1 = plaintext, aut:2 = MD5 (the keyid shows too). For a whole area:area 0 authenticationorarea 0 authentication message-digest.- Default timers (broadcast network): hello 10 s, dead 40 s. They are changed with
ip ospf hello-intervalandip ospf dead-intervaland must be the same on both sides.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.