본문 바로가기
네트워크 수업/하드웨어

[하드웨어]실습 23.02.16

by 6^6 2023. 2. 16.
728x90

128network 소속 ???

 

 

ip default-gateway 1.1.20.254도 잊지 말긔

 

 

문제

 

//답안
* 기본설정
ena
conf t
no ip domain lookup
line c 0
  logg sy
  exec-timeout 0
  exit
line vty 0 4
  pass cisco
hostname

[SEOUL]
int f0/0
 no shut
 ip add 1.1.20.126 255.255.255.128
 exit
int f0/1
 no shut
 ip add 1.1.10.131 255.255.255.128
 exit
ip route 1.1.20.128 255.255.255.128 f0/1 1.1.10.132

[BUSAN]
int f0/0
 no sh
 ip add 1.1.20.254 255.255.255.128
 exit
int f0/1
 no sh
 ip add 1.1.10.132 255.255.255.128
 exit
 
ip route 1.1.20.0 255.255.255.128 f0/1 1.1.10.131

[PC1]
no ip routing
ip default-gateway 1.1.20.126
int f0/0
 no shut
 ip add 1.1.20.1 255.255.255.128

[PC2]
no ip routing
ip default-gateway 1.1.20.126
int f0/0
 no shut
 ip add 1.1.20.2 255.255.255.128

[PC3]
no ip routing
ip default-gateway 1.1.20.254
int f0/0
 no shut
 ip add 1.1.20.133 255.255.255.128

[PC4]
no ip routing
ip default-gateway 1.1.20.254
int f0/0
 no shut
 ip add 1.1.20.134 255.255.255.128

ip 주소와 라우트 주소 지우기

int f0/0 각 서브넷 주소로 가서

no ip add

no ip route 1.1.20.0 255.255.255.128 f0/1 1.1.10.131

 

 

 

 

단자끼리 연결해줄때는 시리얼번호를 쓴다.

이제 진정한 의미의 WAN을 설정해보자.

 

 

 

서울과 부산에 각각 저렇게 설정↓

L2 이더넷 헤더는 날아가고 PPP헤더를 붙여서 나가게끔 하는것.

 

clock rate 64000 : 초당 64000Hz

중간에 DSU가 없다 원래 DSU에서 클락도 주고 증폭도 줌. 그래서 clock rate 넣어주는것.

clock rate는 DCE에서만 줄수있다. DCE인거 어케앎?

 

PCI+SDU = WAN 

 

 

버스에서 나가는거 = decapsulation

ktx로 갈아타는거 = encapsulation

 

//PPP는 WAN관련 기술 중 하나이다.

Point to Point Protocal

PAP방식(암호화되어있지않고 서로 통신)과 CHAP방식(NT5?라는 방식으로 암호화해서 서로 통신)이있다.

 

DSU에 CSU가 포함되어있다. 

 

직접 연결됐다고 보면된다.

LCP는 WAN구간 데이터 링크와 제어 역할을 한다.

 

 

PPP가 하는일 링크수립, 인증절차, 네트웨크계층 프로토콜, 링크 해지

PAP :  2way 핸드쉐이크 방식을 쓴다.

CHAP : //

 

ktx에 헤더를 붙이는 명령이 encapsulation 이다.

 

 

서울이 부산으로 접근할때 서울 자신의 이름이 뭔지 알려야한다.

근데 상대방 호스트명(부산이름)을 먼저 앞에 써준다. +둘만이 아는 공통된 암호 

 

//라우트
SEOUL(config)#int s1/0
SEOUL(config-if)#no shut
SEOUL(config-if)#ip add 1.1.12.1 255.255.255.0
SEOUL(config-if)#clock rate 64000 //clock은 라우터와 라우터간의 동기신호
//WAN DSU가 있을땐 clock주면안된다. (실습이기때문에! 회사에선 절대 쓰면 XX)
SEOUL(config-if)#encapsulation ppp
SEOUL(config-if)#ppp authentication chap
SEOUL(config-if)#exit
SEOUL(config)#username BUSAN password cisco
SEOUL(config)#ip route 1.1.20.0 255.255.255.0 s1/0 1.1.12.2

BUSAN(config)#int s1/0
BUSAN(config-if)#no shut
BUSAN(config-if)#ip add 1.1.12.2 255.255.255.0
BUSAN(config-if)#encapsulation ppp
BUSAN(config-if)#ppp authentication chap
BUSAN(config-if)#exit
BUSAN(config)#username SEOUL password cisco
BUSAN(config)#ip route 1.1.10.0 255.255.255.0 s1/0 1.1.12.1

PC1(config)#no ip routing
PC1(config)#ip default-gateway 1.1.10.254
PC1(config)#int f0/0
PC1(config-if)#no shut
PC1(config-if)#ip add 1.1.10.1 255.255.255.0

PC2(config)#ip default-gateway 1.1.10.254
PC2(config)#no ip routing
PC2(config)#int f0/0
PC2(config-if)#no sh
PC2(config-if)#ip add 1.1.10.1 255.255.255.0

PC3(config)#no ip routing
PC3(config)#ip default-gateway 1.1.20.254  
PC3(config)#int f0/0
PC3(config-if)#ip add 1.1.20.3 255.255.255.0

PC4(config)#no ip routing
PC4(config)#ip default-gateway 1.1.20.254
PC4(config)#int f0/0
PC4(config-if)#no sh
PC4(config-if)#ip add 1.1.20.4 255.255.255.0

https://m.blog.naver.com/zxzx4342/221835658133 PAP과 CHAP이란? 읽어보기

 

debug ppp packet 하고 no shut하면 어떻게 ktx로 전송되는지 쫙보인다.

멈추고 싶으면 un all 하면 됨.

 

 

728x90

'네트워크 수업 > 하드웨어' 카테고리의 다른 글

실습 23.02.17  (0) 2023.02.17
WAN 프로토콜 23.02.16  (0) 2023.02.16
[하드웨어] CPU 23.02.15  (0) 2023.02.15
[하드웨어]GN3 -2 23.02.15  (0) 2023.02.15
[하드웨어]GNS3 -1 23.02.14  (0) 2023.02.15

댓글