yumyum

[Cisco] Wan, PPP(PAP,CHAP) 본문

ICT기반 클라우드 네트워크 해킹 침해대응전문가/Cisco

[Cisco] Wan, PPP(PAP,CHAP)

yumyum0603 2023. 8. 18. 18:09

 

무선랜카드 꼽아주기
무선 랜카드 꼽아주기2

 

무선라우터는 CLI 가 아니라 GUI 에서 작업한다.

 

################################################################################################

pap & chap

 

 

 

[ppp 설정/pap평문] (HDLC 프로토콜 -> PPP)

 

##R1

(config)# username R2 password cisco => R2와 연결한다고 네이밍함

(config)# int s0/0/0

(config-if)# encapsulation ppp

(config-if)# ppp authentication pap => 인증방식 pap

(config-if)# ppp pap sent-username R1 password cisco => cisco로 암호설정

 

##R2

(config)# username R1 password cisco => R1와 연결한다고 네이밍함

(config)# int s0/0/0

(config-if)# encapsulation ppp

(config-if)# ppp authentication pap => 인증방식 pap

(config-if)# ppp pap sent-username R1 password cisco => cisco로 암호설정

 

#show ip route => 라우팅 테이블 확인

#show int s0/0/0 => ppp 확인

 

##R2

# debug ppp authentication => 디버그 걸어놓고 password 틀리게 입력

 

##R1

(config)# int s0/0/0

(config-if)# no ppp pap sent-username R1 password cisco => 로그인 취소

(config-if)# ppp pap sent-username R1 password asadf => 비밀번호 틀려서 로그인

(config-if)# shutdown

(config-if)# no shut

 

##R2

"Authentication fail" 메세지 확인

 

[PPP설정/chap 암호문]

##R1

(config)# username R2 pasword cisco => R2와 연결한다고 네이밍함

(config)# int s0/0/0

(config-if)# encapsulation ppp

(config-if)# ppp authentication chap => 인증방식 chap

 

##R2

(config)# username R1 pasword cisco => R1와 연결한다고 네이밍함

(config)# int s0/0/0

(config-if)# encapsulation ppp

(config-if)# ppp authentication chap => 인증방식 chap

 

________________________________________________________________________________________________

이런식으로

 

R1 에는 R2 R3연결 

R2 에는 R1 R4 연결

R3에는 R1 연결

R4에는 R2 연결 해준다