| Cisco CCNP BSCI 642-901 Tutorial: Clear Text OSPF Neighbor Authentication | |
An OSPF adjacency can be authenticated with MD5 (Message Digest 5) or with a clear-text password. I’m not much on clear-text passwords, and hopefully you aren’t either! Whether you’re working in the real world or the certification exam room, though, it’s always a good idea to know more than one way to do things. Let’s take a look at how to configure clear-text authentication of an OSPF neighbor relationship.
The commands we’ll use are “ip ospf authentication-key” and “ip ospf authentication”. In this example, we have preexisting adjacencies between three routers in an OSPF NBMA network. The hub router (R1) has an adjacency with two spoke routers, R2 and R3. The password is set by the interface-level command ip ospf authentication-key. While Cisco routers will usually tell you when you’re about to try to do something that you can’t do, this password is a rare exception to the rule. Let’s set a password of passbscitest and then check the router config. R1(config-if)#ip ospf authentication-key ? <0-7> Encryption type (0 for not yet encrypted, 7 for proprietary) LINE The OSPF password (key)
ip address 172.12.123.1 255.255.255.0 encapsulation frame-relay ip ospf authentication-key passbsci
Clear-text authentication is enabled with the ip ospf authentication command. IOS Help shows there is no specific command for clear-text authentication. (Null and clear-text authentication are not the same thing.) R1(config)#int serial0 R1(config-if)#ip ospf authentication ? message-digest Use message-digest authentication null Use no authentication
R1(config-if)#ip ospf authentication
R1# 00:25:38: %OSPF-5-ADJCHG: Process 1, Nbr 172.12.123.2 on Serial0 from FULL to DOWN, Neighbor Down: Dead timer expired R1# 00:25:58: %OSPF-5-ADJCHG: Process 1, Nbr 172.12.123.3 on Serial0 from FULL to DOWN, Neighbor Down: Dead timer expired R1#
R2(config)#interface serial0 R2(config-if)#ip ospf authentication-key passbsci R2(config-if)#ip ospf authentication
R3(config-if)#ip ospf authentication-key passbsci R3(config-if)#ip ospf authentication
172.12.123.3 0 FULL/DROTHER 00:01:58 172.12.123.3 Serial0 172.12.123.2 0 FULL/DROTHER 00:01:37 172.12.123.2 Serial0
|
|
| ccnaguru.com | |
Written by Chris Bryant |
|