* WAN 캡슐화 (Encapsulation)
| 단계별 | 예제 코드 | 설명 |
| R1 설정 | Router>en Router# conf t Router(config)# hostname R1
R1(config)# int gi0/0 R1(config-if)# ip add 163.180.116.1 255.255.255.0 R1(config-if)# no shut R1(config-if)# exit
R1(config)# int s0/0/0 R1(config-if)# ip add 203.230.7.1 255.255.255.0 R1(config-if)# no shut R1(config-if)# exit
R1(config)# router rip R1(config-router)# version 2 R1(config-router)# network 163.180.0.0 R1(config-router)# network 203.230.7.0 R1(config-router)# ^Z R1# wr | |
| R2 설정 | Router>en Router# conf t Router(config)# hostname R2
R2(config)# int gi0/0 R2(config-if)# ip add 150.183.235.1 255.255.255.0 R2(config-if)# no shut R2(config-if)# exit
R2(config)# int s0/0/0 R2(config-if)# ip add 203.230.7.2 255.255.255.0 R2(config-if)# no shut R2(config-if)# exit
R2(config)# router rip R2(config-router)# version 2 R2(config-router)# network 150.183.0.0 R2(config-router)# network 203.230.7.0 R2(config-router)# ^Z R2# wr | |
| 시리얼 인터페이스 캡슐화 방식 확인 | R1# sh int se0/0/0 | Encapsulation HDLC 확인 |
| PPP PAP 설정하기 | R1(config)# username R2 password infocomm R1(config)# int s0/0/0 R1(config-if)# encapsulation ppp R1(config-if)# ppp authentication pap R1(config-if)# ppp pap sent-username R1 password infocomm
R2(config)# username R1 password infocomm R2(config)# int s0/0/0 R2(config-if)# encapsulation ppp R2(config-if)# ppp authentication pap R2(config-if)# ppp pap sent-username R2 password infocomm | Encapsulation PPP PAP 인증 |
| 시리얼 인터페이스 캡슐화 방식 확인 | R1# sh int se0/0/0 | Encapsulation PPP 확인 |
| PPP PAP 디버거 | R2# debug ppp authentication
R1(config)# int s0/0/0 R1(config-if)# no ppp pap sent-username R1 password infocomm R1(config-if)# ppp pap sent-username R1 password info R1(config-if)# shutdown R1(config-if)# no shutdown | 암호를 틀리게 입력한 후 비활성후 활성화 해야 한다. |
| 디버거에서 인증 실패 확인 | R2# debug ppp authen
인증 실패시 Authentication failed
| |
| PPP CHAP 설정하기 | R1(config)# username R2 password infocomm R1(config)# int s0/0/0 R1(config-if)# encapsulation ppp R1(config-if)# ppp authentication chap
R2(config)# username R1 password infocomm R2(config)# int s0/0/0 R2(config-if)# encapsulation ppp R2(config-if)# ppp authentication chap | Encapsulation PPP CHAP 인증 |
* 프레임 릴레이 (Frame-Relay) 네트워크
- 물리계층과 데이터 계층에서 동작하는 WAN 프로토콜
- 하나의 물리적인 회선에 여러 논리적인 가상회선을 만들어 전용선 처럼 사용한다.
- SVC (Switched Virtual Circuit) 는 임시적 패킷 전송에 사용되는 회선으로 패킷을 전달할 때마다 결도로 경로가 제공되는 임시적 회선이다.
- PVC (Permanent Virtual Circuit) 는 고정적인 논리 경로를 가지고 있는 회선으로 가입자마다 고유 식별 번호 (DLCI)가 제공된다.
참고: DLCI, LMI, PVC 란
DLCI (Data-Link Connection Identifiers): 특정 상대방과 구별하기 위한 ID
PVC (Permanent Virtual Circuit): 프레임 릴레이방의 출발지에서 목적지까지의 DLCI 조합을 의미
LMI (Local Management Interface) : 프레임 릴레이 장비간에 사용되는 프로토콜로 사용가능한 DLCI 번호를 요청, 부여하고 PVC 상태를 알려줄때 사용한다.
* Split Horizon 실습
- 거리벡터 라우팅 프로토콜을 사용할 때 라우팅 루프를 방지하기 위해 사용하는 기술로 임의의 한 인터페이스에서 학습한 경로를 동일한 인터페이스를 통해 전달하지 않게 하는 기술이다.
| 단계별 | 예제 코드 | 설명 |
| PC IP 설정 | PC0 IP: 10.10.10.2 SM: 255.255.255.0 GW: 10.10.10.1
PC1 IP: 20.20.20.2 SM: 255.255.255.0 GW: 20.20.20.1
PC2 IP: 30.30.30.2 SM: 255.255.255.0 GW: 30.30.30.1 | |
| R1 설정 | Router>en Router# conf t Router(config)# hostname R1
R1(config)# int lo 0 R1(config-if)# ip add 1.1.1.1 255.255.255.0 R1(config-if)# exit
R1(config)# int gi0/0 R1(config-if)# ip add 10.10.10.1 255.255.255.0 R1(config-if)# no shutdown R1(config-if)# exit
R1(config)# int s0/2/0 R1(config-if)# ip add 203.230.7.1 255.255.255.0 R1(config-if)# encapsulation frame-relay R1(config-if)# frame-relay map ip 203.230.7.2 102 broadcast R1(config-if)# frame-relay map ip 203.230.7.3 102 broadcast R1(config-if)# no shutdown R1(config-if)# exit
R1(config)# router rip R1(config-router)# version 2 R1(config-router)# network 1.0.0.0 R1(config-router)# network 10.0.0.0 R1(config-router)# network 203.230.7.0 R1(config-router)# no auto-summary R1(config-router)# ^Z R1# wr | |
| R2 설정 | Router>en Router# conf t Router(config)# hostname R2
R2(config)# int lo 0 R2(config-if)# ip add 2.2.2.1 255.255.255.0 R2(config-if)# exit
R2(config)# int gi0/0 R2(config-if)# ip add 20.20.20.1 255.255.255.0 R2(config-if)# no shutdown R2(config-if)# exit
R2(config)# int s0/2/0 R2(config-if)# ip add 203.230.7.2 255.255.255.0 R2(config-if)# encapsulation frame-relay R2(config-if)# frame-relay map ip 203.230.7.1 201 broadcast R2(config-if)# frame-relay map ip 203.230.7.3 203 broadcast R2(config-if)# ip split-horizon R2(config-if)# no shutdown R2(config-if)# exit
R2(config)# router rip R2(config-router)# version 2 R2(config-router)# network 2.0.0.0 R2(config-router)# network 20.0.0.0 R2(config-router)# network 203.230.7.0 R2(config-router)# no auto-summary R2(config-router)# ^Z R2# wr | |
| R3 설정 | Router>en Router# conf t Router(config)# hostname R3
R3(config)# int lo 0 R3(config-if)# ip add 3.3.3.1 255.255.255.0 R3(config-if)# exit
R3(config)# int gi0/0 R3(config-if)# ip add 30.30.30.1 255.255.255.0 R3(config-if)# no shutdown R3(config-if)# exit
R3(config)# int s0/2/0 R3(config-if)# ip add 203.230.7.3 255.255.255.0 R3(config-if)# encapsulation frame-relay R3(config-if)# frame-relay map ip 203.230.7.2 302 broadcast R3(config-if)# frame-relay map ip 203.230.7.1 302 broadcast R3(config-if)# no shutdown R3(config-if)# exit
R3(config)# router rip R3(config-router)# version 2 R3(config-router)# network 3.0.0.0 R3(config-router)# network 30.0.0.0 R3(config-router)# network 203.230.7.0 R3(config-router)# no auto-summary R3(config-router)# ^Z R3# wr | |
| F-R Switch config 설정 | Serial0 설정
Serial1 설정 Serial2 설정 Frame Relay 설정
| |
| 라우팅 테이블 확인 | R1# sh ip route 아래 ‘R 3.3.3.0’에 관한 정보가 빠져 있음
R3# sh ip route 위에 ‘R 1.1.1.0’에 관한 정보가 빠져 있음
R2# sh ip route 아래 ‘R 1.1.1.0’에 관한 정보가 잘 나타나 있음 아래 ‘R 3.3.3.0’에 관한 정보가 잘 나타나 있음 | 스플릿 홀라이즌인 경우 R2가 완전한 라우팅 테이블을 가졌다고 해서 R1과 R3가 이를 참고하는 것은 아님 |
| 스플릿 호라이즌(Split Horizon) 문제 해결 | R2> en R2# conf t R2(config)# int s0/2/0 R2(config-if)# no ip split-horizon
R1# sh ip route 아래 ‘R 3.3.3.0’에 관한 정보가 새로 나타남
R3# sh ip route 아래 ‘R 1.1.1.0’에 관한 정보가 새로 나타남
| |
| R2의 인터페이스에서 IP주소 할당 확인 | R2# show ip interface brief | |
| R2의 인터페이스 활성화 확인 | R2# show interface se0/2/0
(3) Encapsulation Frame Relay (2) LMI type is CISCO frame relay DTE (1) 24 packets output | |
| R2의 PVC 상태 확인 | R2# show frame-relay pvc | PVC 상태 = Active |
| R2에서 LMI 통계와 관련 정보 확인 | R2# show frame-relay lmi | 출력 결과에서 0이 아닌 값들만 살펴 봄 |
| R2에서 PVC 식별 번호 확인 | R2# show frame-relay map | |