RIP
RIP (Routing Information Protocol)
-
Distance Vector
-
Metric - Hop count 사용 ->넥스트홉을 카운트 한것.
-
벨몬 포드 무어 박사가 개발
-
Ver1 - > 255.255.255.255 사용 ->이웃과 브로드캐스트를 사용.
- Ver2 -> 224.0.0.9 사용 (멀티캐스트 주소 중에 하나, 클래스에 맞게 자동 축약이 됨)
- ex) 1.1.1.0/24 => 1.0.0.0/8로 auto-summary
-
Auto-summary 현상- 자동 축약됨. 출구인터페이스의 네트워크 대역이 있으면 축약되지 않음.
-
Split-horizon 현상 -말한사람에게 다시 토해내는 현상. R1이 R2에게 자신이 가진 같은 내용을 30초마다(hello) 말하는 현상. (주인터페이스만 disabled)
-
UDP 520번 사용
-
Route Poison 15개 (라우터 16대가 넘어가면 통신이 되지 않음.루트 포이즈닝-15대 다음부터는 독을 먹임) / Poison Reverse (포이즌을 준 라우터에게 리벌스 하는 것)
- AD value->120
-
Hello (30초) : 30초마다 계속 hello 가 카운트되면서 계속 정보를 받으며 리셋 되는 시간을 확인할 수 있다.
-
Invalid (180초) : hello 30초가 지나도 정보를 받지 못하면 invalid time이 180초까지 기다리게 되는데 update 6회동안 연속 실패시 hold down으로 들어가게 된다.
-
Holdtime (180초) : invalid에서도 받지못하면 강력한 제재가 들어감
-
flush time (240초) : invalid time 부터 60초가 지나면 받은 정보가 모두 사라지게 된다.
RIP 실습
R1 - R2 는 RIP protocol을 사용하고 R3 - R4는 Static routing을 하여 전구간 통신하시오.
# 공통 설정
conf t
no ip domain lookup
line c 0
exec-timeout 0
logg syn
exit
int s1/0
no shut
encap fram
no fram inver
clock rate 64000
exit
hostname
# IP address , mapping
R1]
conf t
int l0
ip add 1.1.1.1 255.255.255.0
exit
int s1/0
ip add 1.1.12.1 255.255.255.0
fram map ip 1.1.12.2 102 br
R2]
conf t
int l0
ip add 1.1.2.2 255.255.255.0
exit
int s1/0.12 m
ip add 1.1.12.2 255.255.255.0
fram map ip 1.1.12.1 201 br
exit
int s1/0.23 m
ip add 1.1.23.2 255.255.255.0
fram map ip 1.1.23.3 203 br
R3]
conf t
int l0
ip add 1.1.3.3 255.255.255.0
exit
int s1/0.23 m
ip add 1.1.23.3 255.255.255.0
fram map ip 1.1.23.2 302 br
exit
int s1/0.34 p
ip add 1.1.34.3 255.255.255.0
fram inter 304
R4]
conf t
int l0
ip add 1.1.4.4 255.255.255.0
exit
int s1/0.34 p
ip add 1.1.34.4 255.255.255.0
fram inter 403
# routing
R1]
conf t
router rip
ver 2
network 1.0.0.0
no auto
passive-interface lo0
exit
int s1/0
ip split-horizon
R2]
conf t
router rip
ver 2
network 1.0.0.0
no auto
passive-interface lo0
exit
ip route 1.1.3.0 255.255.255.0 s1/0.23 1.1.23.3
ip route 1.1.4.0 255.255.255.0 s1/0.23 1.1.23.3
ip route 1.1.34.0 255.255.255.0 s1/0.23 1.1.23.3
R3]
conf t
ip route 0.0.0.0 0.0.0.0 s1/0.23 1.1.23.2
ip route 1.1.4.0 255.255.255.0 s1/0.34 1.1.34.4
R4]
conf t
ip route 0.0.0.0 0.0.0.0 s1/0.34 1.1.34.3
#redistribute & route-map & prefix-list
R2]
conf t
ip prefix-list HOP2 permit 1.1.3.0/24
ip prefix-list HOP2 permit 1.1.34.0/24
ip prefix-list HOP3 permit 1.1.4.0/24
!
route-map NET 10
match ip add prefix HOP2
set metric 2
exit
route-map NET 20
match ip add prefix HOP3
set metric 3
exit
!
router rip
redistribute static route-map NET
R1]
conf t
sh ip route
- next-hop이 알맞게 형셩된 routing table을 확인할 수 있다.
댓글남기기