Quagga: OSPF Authentication

From OnnoWiki
Jump to navigation Jump to search

Sumber: https://www.nongnu.org/quagga/docs/docs-multi/OSPF-Configuration-Examples.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 eth0
 ip address 192.16.64.2/24
 ip ospf authentication-key AUTH_KEY
 ip ospf authentication-key $AP7i1 
!--- The Key value is set as "$AP7i1". !--- It is the password that is sent across the network.
router ospf 10
 log-adjacency-changes
 network 70.0.0.0/8 area 0
 network 192.16.64.0/24 area 0
area 0 authentication

MD5 Authentication

interface eth0
 ip address 192.16.64.2/24
 ip ospf message-digest-key KEYID md5 KEY
 ip ospf message-digest-key 1 md5 $AP7i1
!--- Message digest key with ID "1" and !--- Key value (password) is set as "$AP7i1".
router ospf 10
 network 192.16.64.0/24 area 0
area 0 authentication message-digest
!--- MD5 authentication is enabled for !--- all interfaces in Area 0.

Referensi


Pranala Menarik