Difference between revisions of "Cisco: OSPF Authentication"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) m (Onnowpurbo moved page OSPF: Authentication to Cisco: OSPF Authentication) |
Onnowpurbo (talk | contribs) |
||
Line 44: | Line 44: | ||
network 192.16.64.0 0.0.0.255 area 0 | network 192.16.64.0 0.0.0.255 area 0 | ||
network 70.0.0.0 0.255.255.255 area 0 | network 70.0.0.0 0.255.255.255 area 0 | ||
− | area 0 authentication message-digest | + | area 0 authentication message-digest |
!--- MD5 authentication is enabled for !--- all interfaces in Area 0. | !--- MD5 authentication is enabled for !--- all interfaces in Area 0. | ||
− | |||
− | |||
− | |||
==Referensi== | ==Referensi== |
Revision as of 09:13, 28 December 2018
Sumber: https://www.cisco.com/c/en/us/support/docs/ip/open-shortest-path-first-ospf/13697-25.html
These are the three different types of authentication supported by OSPF.
- Null Authentication—This is also called Type 0 and it means no authentication information is included in the packet header. It is the default.
- Plain Text Authentication—This is also called Type 1 and it uses simple clear-text passwords.
- MD5 Authentication—This is also called Type 2 and it uses MD5 cryptographic passwords.
Plan Text Authentication
interface Loopback0 ip address 70.70.70.70 255.255.255.255 ! interface Serial0 ip address 192.16.64.2 255.255.255.0 ip ospf authentication-key c1$c0 !--- The Key value is set as "c1$c0 ". !--- It is the password that is sent across the network.
clockrate 64000 ! router ospf 10 log-adjacency-changes network 70.0.0.0 0.255.255.255 area 0 network 192.16.64.0 0.0.0.255 area 0 area 0 authentication !--- Plain text authentication is enabled for !--- all interfaces in Area 0.
MD5 Authentication
interface Loopback0 ip address 70.70.70.70 255.255.255.255 ! interface Serial0 ip address 192.16.64.2 255.255.255.0 ip ospf message-digest-key 1 md5 c1$c0 !--- Message digest key with ID "1" and !--- Key value (password) is set as "c1$c0 ".
clockrate 64000 ! router ospf 10 network 192.16.64.0 0.0.0.255 area 0 network 70.0.0.0 0.255.255.255 area 0 area 0 authentication message-digest !--- MD5 authentication is enabled for !--- all interfaces in Area 0.