RIP
* 수업 진도
09. dynamic routing protocol
[rip, eigrp, ospf]
* 강사님 필기 자료
* 수업 자료 : D:\3월 네트웍기초 서정아\수업자료\PDF => 6장 Routing protocol(RIP).ppt
* Routing
주소 = 계층구조 = network-id/host-id
서로 다른 네트워크에 존재하는 장비가 통신을 하려면
1. 주소 광고 + 주소 학습
|
static |
dynamic |
개념 |
필요한 정보를 관리자가 알려준다. |
동적 학습 |
장점 |
불필요한 정보가 없다. = 보안↑ |
수렴문제 = healthing check가능 |
단점 |
수렴문제 = healthing check X |
불필요한 정보가 있다. => 보안↓ |
종류 |
**** 경로 필터링, 경로 조정, 경로 요약, 인증 **** IGP [intra domain] 동일 조직 안에서의 정보 교환 |
2. 최적 경로 연산
2-1. bellman ford - distance vector : RIP //★☆★ 오늘 수업진도!
advanced distance vector [DUAL] : EIGRP
path vector : bgp
2-2. dijkstra algorithm - link state : OSPF
연산 소스를 전송한다. -> 연산 부하 높다.
* RIP(Routing Information Protocol - bellman ford)
경로 복잡도가 낮은 곳에서, 연산 부하가 낮다.
단순한 metric --> count infinite(무한 루프)
** 연산 결과만 전송한다. --> 연산 부하가 낮다. -> 무한루프
*** 정책이 쉽다. // => link state는 또 다른 방식으로 적용해야..,
1> 특징
① hop count의 제한 (RIP의 16hop) -> eigrp (100hop) --> 2^64
② split horizon :
내가 수신한 정보를 수신한 동일 인터페이스로 다시 돌려보내지 않는다.
③ route poison
④ poison reverse
⑤ hold time(수렴 시간) :
- hold time이 길면 연산 부하가 낮다. 수렴이 느리다. *****
- hold time이 짧으면 연산 부하가 높다. 수렴이 빠르다. @@@@@@@@
cf. 무한 루프 : (유투브) 일루수가 누구야
cf. 이력서 필터링 : 포맷팅 주의!!!(맞춤법, 문법 틀린거, 말같지 않은 말.., 국문과 사람있으면 조언 부탁하기!)
** 수업자료(6장 Routing protocol(RIP).ppt)
=> 위에 있음!!!
2> RIP version
RIP : distance vector (distance = hop count = network 수 = router 수)
*** (링크 상태를 고려할 필요가 없는 곳에 사용한다)
(연산 부하가 낮다. ******)
rip version 1 : classful
subnet 정보를 전송하지 않는다. 11.1.1.1 --> 11.0.0.0/8
rip version 2 : classless
subnet 정보를 전송한다. 11.1.1.1/16 --> 11.1.0.0/16
multicast(224.0.0.9 --> 0100.5e00.0009)
cf. IPv4 RIP --> UDP 520 // IPv6 RIP = RIPng : UDP 521
3> 최적 경로 순서
① PBR(policy base routing) // 라우팅 관련 정책
② longest match rule
③ AD(admin distance) // 관리 거리값
④ metric(rip metric = hop count)(cisco ospf = interface BW) (eigrp = 복합 metric)
ip route 1.1.1.0 255.255.255.0 1.1.12.1 [1]
ip route 1.1.1.0 255.255.255.0 1.1.13.1 50
ip route 1.0.0.0 255.255.255.0 1.1.14.1 100
ip route 0.0.0.0 255.255.255.0 1.1.15.1 200
--> static => floating static // ???
de_ip 1.1.1.1
cf. floating static
https://blog.naver.com/comp13578/221026629993
Static Route의 경우 목적지까지 경로가 다수 존재할 경우에도 Best Path에 장애가 발생하면 자동으로 경로를 우회할 수 없다.
(즉, Convergence(수렴) X)
이 경우 관리자가 Static Route의 AD값을 임의적으로 조정하여 미리 Backup Path를 설정하는 것이 가능하다.
이러한 방식을 'Floating Static Route' 라고 한다.
cisco
rip 120
ospf 110
4> 장/단점
장점 |
단점 |
① *** 연산 부하가 적다. **** |
① 링크 상태를 고려하지 못한다. |
* RIP 실습
- topology
설정 순서
1> R1 ~ R4 : Change Symbol => S1 ~ S4
2> Router 5개 전체 블로그 씌우고 오.버 > Configure > Slots
다음과 같이 설정 해주기~!
3> S1 ~ S4, R1 ~ R5 ip setting 해주기!!!
=> 내가 한거
[작업순서]
1. 사용할 routing protocol을 호출한다.
2. 조정
3. 사용하려는 인터페이스 선언 -> network ***
4. 광고할 고객 정보 선언하기 = network
// 1. 사용할 routing protocol을 호출한다.
모든 장비
conf t
router rip *****
(config-router)#?
// 2. 조정
// 3. 사용하려는 인터페이스 선언 -> network ***
cf. classful(prefix)
A
0~127 (/8)
B
128~191 (/16)
C
192~223 (/24)
S1
conf t
router rip
network 11.0.0.0
S2
conf t
router rip
net 22.0.0.0
end
show run | sec router rip
conf t
// no router rip
S3
conf t
router rip
net 33.0.0.0
end
S4
conf t
router rip
net 44.0.0.0
end
R1
conf t
router rip
net 1.0.0.0
net 150.1.0.0
net 11.0.0.0
exi
R2
conf t
router rip
net 1.0.0.0
net 200.1.25.0
net 2.0.0.0
net 22.0.0.0
exi
R3
conf t
router rip
net 2.0.0.0
net 1.0.0.0
net 170.1.0.0
net 33.0.0.0
exi
R4
conf t
router rip
net 199.1.45.0
net 1.0.0.0
net 44.0.0.0
exi
R5
conf t
router rip
net 150.1.0.0
net 200.1.25.0
net 199.1.45.0
net 170.1.0.0
exi
// 확인
show run | sec router rip
// 4. 광고할 고객 정보 선언하기 = network
S1
conf t
interface Loopback1
ip address 1.1.0.1 255.255.255.0
ip address 1.1.1.1 255.255.255.0 secondary
ip address 1.1.2.1 255.255.255.0 secondary
ip address 1.1.3.1 255.255.255.0 secondary
ip address 1.1.4.1 255.255.255.0 secondary
ip address 1.1.5.1 255.255.255.0 secondary
exi
router rip
net 1.0.0.0 --> 이 정보를 내가 줄께
passive-interface loopback 1 **************
// net 11.0.0.0 --> 이 인터페이스로 rip을 통해서 정보를 교환
exi
cf. passive-interface
서버들끼리만 서로 정보를 공유하되,
고객들은 (loopback == End device) rip ptc.을 광고는 하되,
정보를 받아서는 안된다.
따라서 loopback들은(고객들) 데이타 수신정보 받지 못하도록
차단하는 기능이 passive-interface임!
ex> kt 기지국은 국정원의 정보를 쏘지 않는다. (설명 부족 -_;)
S2
conf t
interface Loopback2
ip address 2.1.0.1 255.255.255.0
ip address 2.1.1.1 255.255.255.0 secondary
ip address 2.1.2.1 255.255.255.0 secondary
ip address 2.1.3.1 255.255.255.0 secondary
exi
router rip
net 2.0.0.0
passive-inter lo 2
exi
S3
conf t
interface Loopback3
ip address 3.1.0.1 255.255.255.0
ip address 3.1.1.1 255.255.255.0 secondary
ip address 3.1.2.1 255.255.255.0 secondary
ip address 3.1.3.1 255.255.255.0 secondary
ip address 3.1.4.1 255.255.255.0 secondary
ip address 3.1.5.1 255.255.255.0 secondary
exi
router rip
net 3.0.0.0
passive-inter lo 3
exi
S4
conf t
interface Loopback4
ip address 4.1.0.1 255.255.255.0
ip address 4.1.1.1 255.255.255.0 secondary
ip address 4.1.2.1 255.255.255.0 secondary
exi
router rip
net 4.0.0.0
passive-inter lo 4
exi
===============
조정?
확인..,
S1
show ip route rip // rip을 통해 학습한 정보 보여줌
ping 22.1.1.1
ping 33.1.1.1
ping 44.1.1.1
모든 정보 저장~!
#wr
'BigData_Off1 > 네트워크기초-CCNA' 카테고리의 다른 글
EIGRP (0) | 2018.04.04 |
---|---|
RIP (이어서..,) (0) | 2018.04.03 |
08. NAT (0) | 2018.03.30 |
08. Access Control List(ACL) (0) | 2018.03.29 |
http, https, ntp 서버 (0) | 2018.03.26 |