티스토리 뷰
[keduit]Dynamic Routing Protocol_RIP, Partially_Mesh -2023/03/14
흩노 2023. 3. 14. 18:32Distance Vector
IGP (Interior Gate Protocol) 내부 |
RIP IGRP EIGRP OSPF IS-IS |
EGP (Exterior Gate Protocol) 외부 |
BGPv4 |
RIP(Routing Information Protocol)
- Distance Vector
- Metric -Hop count 사용
- 무어 알고리즘
- ver1 ->255.255.255.255(브로드캐스트 채널)
- ver2 ->224.0.0.9.사용(멀티캐스트 채널)
- Auto-summary 현상
- Split-horizon 현상
- udp 520번 사용
- Route Poison /Poison Reverse
- hello ->30
invaid ->180
holdtime ->180
flush time ->270
## 기본설정
enable
conf t
no ip domain lookup
line c 0
logg sy
exec-timeout 0
exit
int s1/0
no shut
enc fram
no fram inver
clock rate 64000
exit
[R1]
int lo0
ip add 14.14.1.1 255.255.255.0
int s1/0
ip add 14.14.12.1 255.255.255.0
fram map ip 14.14.12.2 102 br
end
[R2]
int lo0
ip add 14.14.2.2 255.255.255.0
int s1/0.12 m
ip add 14.14.12.2 255.255.255.0
fram map ip 14.14.12.1 201 br
exit
int s1/0.23 m
ip add 14.14.23.2 255.255.255.0
fram map ip 14.14.23.3 203 br
end
[R3]
int lo0
ip add 14.14.3.3 255.255.255.0
int s1/0.23 m
ip add 14.14.23.3 255.255.255.0
fram map ip 14.14.23.2 302 br
exit
int s1/0.34 p
ip add 14.14.34.3 255.255.255.0
fram inter 304
end
[R4]
int lo0
ip add 14.14.4.4 255.255.255.0
int s1/0.34 p
ip add 14.14.34.4 255.255.255.0
fram inter 403
end
RIP방식을 이용해 라우팅을 진행해 보겠다.
[R1]
router rip
network 14.14.1.0
network 14.14.12.0
이라고 입력해도 결과적으로는
network 14.0.0.0
의 결과만 나오게 되는데 이것이 Auto-Summary현상 -> classful 하다고 한다.
[R1, R2, R3, R4모두에게]
router rip
network 14.0.0.0
exit
위처럼 입력하면 모두 통신 가능한 상태지만 논리적 문제가 있다.
deb ip rip로 매트릭과 홉을 확인 가능.
문제1:브로드캐스트를 보내는데 자기라우터 루프백으로도 보내는 경우가 생김
라우터마다
router rip
passive-int lo 0
!이 명령어를 쓰면 자기 loopback쪽으로는 말을 안걺!
문제2:자기자신 라우터의 loop네트워크에도 1hop이되는 문제가 생김 그래서 그 이후도 꼬임.
이것을 확인하기 위해 show ip int s1/0을 하면
split horizon is disabled
으로 되어있을것임.
int s1/0
ip split-horizon
end
으로 disabled를 abled로 변환해주면
[R2]
ip add 5.5.0.1 255.255.255.0
ip add 5.5.1.1 255.255.255.0 sec
ip add 5.5.2.1 255.255.255.0 sec
ip add 5.5.3.1 255.255.255.0 sec
[R3]
ip add 5.5.4.1 255.255.255.0
ip add 5.5.5.1 255.255.255.0 sec
ip add 5.5.6.1 255.255.255.0 sec
ip add 5.5.7.1 255.255.255.0 sec
r3에서
int s1/0.23
ip rip send ver 2
exit
router rip
no auto-summary
ip summary-address rip 5.5.0.0 255.255.252.0
exit
r3에서
int s1/0.23
ip rip send ver 2
exit
router rip
no auto-summary
ip summary-address rip 5.5.4.0 255.255.252.0
exit
R1]
conf t
int lo0
ip add 14.14.1.1 255.255.255.0
exit
int s1/0
ip add 14.14.123.1 255.255.255.0
fram map ip 14.14.123.2 102 br
fram map ip 14.14.123.3 102 br
ip split-horizon
exit
!
router rip
version 2
network 14.0.0.0
no auto-summary
passive-interface loopback 0
R2]
conf t
int lo0
ip add 14.14.2.2 255.255.255.0
exit
int s1/0.123 m
ip add 14.14.123.2 255.255.255.0
fram map ip 14.14.123.1 201 br
fram map ip 14.14.123.3 203 br
no ip split-horizon
exit
!
router rip
version 2
network 14.0.0.0
no auto
pass lo0
R3]
conf t
int lo0
ip add 14.14.3.3 255.255.255.0
exit
int s1/0.123 m
ip add 14.14.123.3 255.255.255.0
fram map ip 14.14.123.2 302 br
fram map ip 14.14.123.1 302 br
exit
int s1/0.34 p
ip add 150.1.34.1 255.255.255.0
fram inter 304
exit
!
ip route 150.1.4.0 255.255.255.0 s1/0.34 150.1.34.254
!
router rip
version 2
network 14.0.0.0
no auto-summary
passive-interface loopback 0
redistribute static metric 2
R4]
conf t
int lo0
ip add 150.1.4.4 255.255.255.0
exit
int s1/0.34 p
ip add 150.1.34.254 255.255.255.0
fram inter 403
exit
ip route 0.0.0.0 0.0.0.0 s1/0.34 150.1.34.1
r2] 에서 150.1.4.4로 hop수가 1로나오고
r1] 에서 150.1.4.4로 hop수가 2로나오고
->이 hop에 오류가 생기는 문제를 해결하기 위해
r3
router rip
redistribute static metric 2
로 바꿈
'네트워크 > LAB실습 및 이론' 카테고리의 다른 글
[keduit]RIP, Static 연결 partial_mesh -2023/03/16 (0) | 2023.03.17 |
---|---|
[개념정리] 메모리, GPU (0) | 2023.03.15 |
[keduit]Secured_DHCP(with access-list), VTP -2023/03/13 (0) | 2023.03.13 |
[keduit]DHCP_Relay_Agent(DHCP,NAT, Access) -2023/03/08 (0) | 2023.03.08 |
[keduit]mhsrp, usb&SATA 속도 -2023/03/07 (0) | 2023.03.08 |