본문 바로가기
IT/네트워크

[라우터] OSPF 인증 보안 설정

by JGSHIN 2025. 2. 16.
SMALL

## OSPF 네이버 인증 외에 특정 에어리어 전체를 인증할 있다.

 

 

인증 범위 인증 방식 사용 명령어
네이버 인증         평문 (clear test)  interface xxx
  ip ospf authentication
  ip ospf authentication-key cisco
        " MD 5  interface xxx
  ip ospf authentication message-digest
  ip ospf message-digest-key 1 md5 cisco
에어리어 인증 평문 (clear text)  router ospf 1
  area xxx authentication
 interface xxx

  ip ospf authentication-key cisco
         " MD 5  router ospf 1
  area xxx authentication message-digest
 interface xxx
  ip ospf message-digest-key 1 md5 cisco

 

 

## 에어리어 1

 

 

R1(config)#router ospf 1

R1(config-router)#area 1 authentication message-digest

R1(config-router)#exit

 

R1(config)#int f0/0.123

R1(config-subif)#ip ospf message-digest-key 1 md5 cisco

 

 

R2(config)#router ospf 1

R2(config-router)#area 1 authentication message-digest

R2(config-router)#exit

 

R2(config)#int f0/0.123

R2(config-subif)#ip ospf message-digest-key 1 md5 cisco

 

 

R3(config)#router ospf 1

R3(config-router)#area 1 authentication message-digest

R3(config-router)#exit

 

R3(config)#int f0/0.123

R3(config-subif)#ip ospf message-digest-key 1 md5 cisco

 

 

 

 

 

R2(config)#router ospf 1

R2(config-router)#area 0 authentication

R2(config-router)#exit

 

R2(config)#int f0/0.24

R2(config-subif)#ip ospf authentication-key cisco

 

 

R3(config)#router ospf 1

R3(config-router)#area 0 authentication

R3(config-router)#exit

 

R3(config)#int s2/1

R3(config-if)#ip ospf authentication-key cisco

 

 

R4(config)#router ospf 1

R4(config-router)#area 0 authentication

R4(config-router)#exit

 

 

R4(config)#int f0/0.24

R4(config-subif)#ip ospf authentication-key cisco

R4(config-subif)#exit

 

R4(config)#int s2/2

R4(config-if)#ip ospf authentication-key cisco

 

 

## 제거 명령어

 

R4(config)#int s2/1

R4(config-if)#no ip ospf message-digest-key 1

 

## 인증키 암호화 시키기

## 'show running-config' 'show startup-config' 명령어를 사용해도 쉽게 암호를 확인 없다.

 

R5(config)# service password-encryption

 

LIST

'IT > 네트워크' 카테고리의 다른 글

[라우터] EIGRP 네임드 설정  (0) 2025.02.16
[라우터] OSPF 라우팅  (0) 2025.02.16
[라우터] IS-IS 라우팅  (0) 2025.02.16
[라우터] BGP 라우팅 +RIP  (0) 2025.02.16
[라우터] RIP 라우팅  (0) 2025.02.16
📧 이메일 문의
by @ 2025 JGSHIN