Net Eng

Routing Protocol - RIP 본문

Network/실습

Routing Protocol - RIP

欲心 2024. 6. 14. 03:32

■ RIPv1 특징

- 브로드캐스트 방식으로 업데이트 : 255.255.255.255
- 업데이트시 UDP 520번 사용
- Classful방식 사용 : Subnet mask사용 안함.
- 주기적 업데이트 : 매 30초 주기 사용
- 메트릭 구성요소는 hop count사용

 

■ RIPv1 vs. RIPv2

RIPv2는 낮은 버전의 정보를 무시(Ignore)하기 때문에 테이블 업데이트는 하지 않음, 버전이 낮은 라우터는 1, 2 모두를 학습하기 때문에 테이블 정보가 업데이트 됨.

 

■ RIPv1과 RIPv2의 차이점

- Classful과 Classless
- VLSM 지원 여부
- Route summary 지원 여부(Supernetting 가능 여부)
- 테이블 업데이트시 브로드캐스트(255.255.255.255), 멀티캐스트(224.0.0.9)
- 인증 기능 지원 여부

 

■ RIPv1과 RIPv2의 공통점

- 주기적 업데이트 : 기본값 30초
- Passive-interface 선언(모든 인터페이스에 테이블 정보 전송 방지)
- 업데이트시 UDP 520번 사용

 

 

 

RIP 토폴로지

 

■ 라우터 IP 설정

 

R1 라우터

conf t
int s1/0
ip addr 199.88.12.1 255.255.255.0
no sh
int L1 
ip addr 10.10.192.1 255.255.255.0
int L2
ip addr 10.10.193.1 255.255.255.0
int L3
ip addr 10.10.194.1 255.255.255.0
int L4
ip addr 10.10.195.1 255.255.255.0

 

R2 라우터

conf t
int s1/0
ip addr 199.88.12.2 255.255.255.0
no sh
int s1/1
ip addr 199.88.23.1 255.255.255.0
no sh
int s1/2
ip addr 199.88.24.1 255.255.255.0
no sh

 

R3 라우터

conf t
int s1/1
ip addr 199.88.23.2 255.255.255.0
no sh
int s1/3
ip addr 199.88.34.1 255.255.255.0
no sh

 

R4 라우터

conf t
int s1/3
ip addr 199.88.34.2 255.255.255.0
no sh
int s1/2
ip addr 199.88.24.2 255.255.255.0
no sh
int s1/0
ip addr 199.88.45.1 255.255.255.0
no sh

 

R5 라우터

conf t
int s1/0
ip addr 199.88.45.2 255.255.255.0
no sh
int L1 
ip addr 160.50.1.129 255.255.255.240
int L2
ip addr 160.50.1.145 255.255.255.240 
int L3
ip addr 160.50.1.161 255.255.255.224 
int L4
ip addr 160.50.1.193 255.255.255.192

 

■ RIP 설정

 

R1 라우터

conf t
router rip
ver 2
net 199.88.12.0
net 10.10.192.0
no auto-summary
int s1/0
ip summary-address rip 10.10.192.0 255.255.252.0

 

R2 라우터

conf t
router rip
ver 2
net 199.88.12.0
net 199.88.23.0
net 199.88.24.0
no auto-summary

 

R3 라우터

conf t
router rip
ver 2
net 199.88.23.0
net 199.88.34.0
no auto-summary

 

R4 라우터

conf t
router rip
ver 2
net 199.88.34.0
net 199.88.24.0
net 199.88.45.0
no auto-summary

 

R5 라우터

conf t
router rip
ver 2
net 199.88.45.0
net 160.50.1.128
no auto-summary
int s1/0
ip summary-address rip 160.50.1.128 255.255.255.128

 

▶ [120/1]
- 120 : 기본 AD값 표시
- 1 : Metric 값(Cost)표시
- via 192.168.12.2 : next hop ip
199.88.24.2를 통해서 도달한다.
- 00:00:10 : 업데이트 경과 시간
- Serial1/2 : 로컬 인터페이스 이름

 

※ Table mapping순서
1. Longest Prefix : 프리픽스 길이가 가장 긴 경로를 우선함.
2. AD값 : 프리픽스 길이가 같은 경우 관리거리값이 낮은 경로를 우선함.

 

■ RIP 인증 설정 (양쪽 라우터 모두 설정해 줘야 함) → RIPv2에서만 지원하는 기능

 

R1 라우터

conf t
key chain CCNA
key 195
key-string 123456
int s1/0
ip rip authentication key-chain CCNA
ip rip authentication mode md5

 

R2 라우터

conf t
key chain CCNA
key 195
key-string 123456
int s1/0
ip rip authentication key-chain CCNA
ip rip authentication mode md5
int s1/2
ip rip authentication key-chain CCNA
ip rip authentication mode md5
int s1/1
ip rip authentication key-chain CCNA
ip rip authentication mode md5

 

R3 라우터

conf t
key chain CCNA
key 195
key-string 123456
int s1/1
ip rip authentication key-chain CCNA
ip rip authentication mode md5
int s1/3
ip rip authentication key-chain CCNA
ip rip authentication mode md5

 

R4 라우터

conf t
key chain CCNA
key 195
key-string 123456
int s1/0
ip rip authentication key-chain CCNA
ip rip authentication mode md5
int s1/2
ip rip authentication key-chain CCNA
ip rip authentication mode md5
int s1/3
ip rip authentication key-chain CCNA
ip rip authentication mode md5

 

R5 라우터

conf t
key chain CCNA
key 195
key-string 123456
int s1/0
ip rip authentication key-chain CCNA
ip rip authentication mode md5

 

■ R1, R5 라우터 Passive interface 선언

 

R1 라우터

conf t
router rip
passive-interface L1
passive-interface L2
passive-interface L3
passive-interface L4

 

R5 라우터

conf t
router rip
passive-interface L1
passive-interface L2
passive-interface L3
passive-interface L4

 

■ 각종 타이머 설정 명령어 [미적용]

 

R3, R4라우터

router rip 
timers basic 40 160 160 280

 

■ Routing Loop 예방책

1. Split Horizon : 경로를 학습한 인터페이스로 동일한 정보를 되돌려 주지 않는다.
2. Route Poisoning : RIP의 최대 홉 수(15홉)를 초과하는 메트릭 값을 이용해 정보 전달(주로 다운된 네트워크 정보 전달에 사용)
3. Poison Reverse : 라우트 포이즌 정보를 전달한 라우터에 역으로 동일한 정보를 되돌림(Split horizon이 예외적으로 동작하지 않음)
4. 각종 타이머 사용 : Update timer, Invalid timer, Holddown timer, Flushed timer(sh ip protocol)

R1 라우팅 테이블
R2 라우팅 테이블
Key-chain 설정
Passive Interface

 

■ Default route 구성

[Static 기본 구성]
ip route 0.0.0.0 0.0.0.0 s1/0

[RIP 기본 구성]
router rip
default-information originate

 

■ 실습파일

RIP_Test.7z
0.00MB

'Network > 실습' 카테고리의 다른 글

Routing Protocol - OSPF - 2  (0) 2024.06.14
Routing Protocol - OSPF - 1  (0) 2024.06.14
Static Routing  (0) 2024.06.14
STP(Spaning Tree Protocol)  (0) 2024.06.14
Inter Vlan - (3)  (0) 2024.06.14