5장. 라우팅프로토콜 RIP 2012년 2학기 중부대학교 정보보호학과 이병천 교수.

Slides:



Advertisements
Similar presentations
2장. TCP/IP, 서브넷팅 2012년 2학기 중부대학교 정보보호학과 이병천 교수.
Advertisements

2012 년 2 학기 중부대학교 정보보호학과 이병천 교수.  공중망 (Public Network) ◦ 가격이 저렴 ◦ 네트워크를 공동으로 이용. 보안에 취약  사설망 (Private Network) ◦ 공중망보다 가격이 비쌈 ◦ 네트워크를 독립적으로 이용. 보안성이.
11장. WAN 기술 (PPP, Frame-Relay)
14장. DHCP, NAT, IPv6 IPv4 주소부족 문제 해결을 위한 대책
제 4장 환경설정과 IOS CLI 관리명령.
IP Routing Static Route vs. Dynamic Route
Routing.
제 6장 라우팅과 라우팅 프로토콜.
Part 라우터(계속) 4. 라우터 서비스 설정 5. 라우팅 프로토콜.
라우팅 개요 1. 라우팅이란? 서로 다른 네트워크 영역의 통신을 가능하게 이어주는 것 라우팅 프로토콜
Computer Network ( Routing Technology )
Chapter 7 Determining IP Routes
8장. VLAN과 Inter-VLAN 라우팅 2012년 2학기 중부대학교 정보보호학과 이병천 교수.
실 습 Router Configuration.
11장. WAN 기술 (PPP, Frame-Relay)
LOGO 네트워크 운용(1).
Chapter 2. IP Address IP Address의 구성에 대한 자세한 설명과 함께 IP Address를 효율적으로 관리하기 위한 방법인 서브넷팅, 수퍼넷팅, VLSM 등에 대해서 단계별로 접근할 수 있다. 몇가지 예제를 통해서 서브넷팅에 대한 개념을 정리하고.
라우팅 기술 - RIP, OSPF 고병찬 이광재.
제 7장 정적 라우팅 프로토콜.
24 장 TCP/IP 24.1 개요 24.2 네트워크층 24.3 주소 지정 24.4 서브넷팅틍
LOGO 네트워크 운용(2).
IGRP(Interior Gateway Routing Protocol)
3장. 라우터와 스위치의 기본설정 2012년 2학기 중부대학교 정보보호학과 이병천 교수.
중소규모 WAN의 구성 지도교수님 : 김정배 교수님 박명윤 박종수.
Routing Technology Computer Network Computer Network Team Project
Routing Protocol (RIP)
3장. 라우터와 스위치의 기본설정 2012년 2학기 중부대학교 정보보호학과 이병천 교수.
실습1 : 장치 기본 설정 (basic configuration)
라우터 프로토콜을 이용한 네트워크 구축 실습.
Chapter 11 Unicast Routing Protocols.
Routing Protocol (EIGRP)
Routing Protocol (EIGRP)
네트워크 기말고사 실습 과제 서승희 이도경.
라우팅 기술 (RIP, OSPF) 컴퓨터공학과 강지훈 윤인선 이고운
4장. 정적 경로 설정 2012년 2학기 중부대학교 정보보호학과 이병천 교수.
Routing Protocol - Router의 주 목적 중 하나는 Routing
RIP(Routing Information Protocol)
6장. EIGRP 2012년 2학기 중부대학교 정보보호학과 이병천 교수.
컴퓨터 네트워크 II - 기말고사 토폴로지 발표자료
3장. 라우터와 스위치의 기본설정 2012년 2학기 중부대학교 정보보호학과 이병천 교수.
5장. 라우팅프로토콜 RIP 2012년 2학기 중부대학교 정보보호학과 이병천 교수.
Network 네트워크 이론 및 실습 라우팅 프로토콜 - 1 5장.
6장. EIGRP 2012년 2학기 중부대학교 정보보호학과 이병천 교수.
Chapter 10. 라우팅 프로토콜의 설정.
7장. OSPF 중부대학교 정보보호학과 이병천 교수.
14장. DHCP, NAT, IPv6 IPv4 주소부족 문제 해결을 위한 대책
11장. WAN 기술 (PPP, Frame-Relay)
4장. 정적 경로 설정 2012년 2학기 중부대학교 정보보호학과 이병천 교수.
6장. EIGRP 중부대학교 정보보호학과 이병천 교수.
컴퓨터 네트워크 기말고사 실습 김리화.
13장. VPN 중부대학교 정보보호학과 이병천 교수.
11장. WAN 기술 (PPP, Frame-Relay)
네트워크 기말고사 중부대학교 정보보호학과 이종화.
Monday_10.29 라우팅 정리 Routing 패킷에 대한 목적지 IP주소와 일치하는 경로를
5장. 라우팅프로토콜 RIP 2012년 2학기 중부대학교 정보보호학과 이병천 교수.
2장. TCP/IP, 서브넷팅 2012년 2학기 중부대학교 정보보호학과 이병천 교수.
6장. EIGRP 2012년 2학기 중부대학교 정보보호학과 이병천 교수.
3장. 라우터와 스위치의 기본설정 2012년 2학기 중부대학교 정보보호학과 이병천 교수.
2장. TCP/IP, 서브넷팅 2012년 2학기 중부대학교 정보보호학과 이병천 교수.
Chapter 5. 인터넷으로의 연결 라우터 이야기
11장. WAN 기술 (PPP, Frame-Relay)
6장. EIGRP 2012년 2학기 중부대학교 정보보호학과 이병천 교수.
20 장 네트워킹과 인터네트워킹 장치 20.1 리피터(Repeaters) 20.2 브리지(Bridges)
01. 라우팅 및 원격 액세스의 개요 라우팅은 패킷을 송신지부터 수신지까지 어떠한 경로를 통해 보낼 것인지를 결정하는 방법
Chapter 26 IP over ATM.
5장. 라우팅프로토콜 RIP 2012년 2학기 중부대학교 정보보호학과 이병천 교수.
제 13 장 인터넷 그룹 관리 프로토콜 정보통신연구실.
제 6 장 IP 패킷 전달과 라우팅 6.1 연결형 서비스와 비연결형 서비스 6.2 직접 전달과 간접 전달 6.3 라우팅 방법
6장. EIGRP 2012년 2학기 중부대학교 정보보호학과 이병천 교수.
4장. 정적 경로 설정 중부대학교 정보보호학과 이병천 교수.
Presentation transcript:

5장. 라우팅프로토콜 RIP 2012년 2학기 중부대학교 정보보호학과 이병천 교수

라우팅프로토콜 라우팅프로토콜? 동적라우팅프로토콜(Dynamic Routing Protocol) 라우터는 라우팅정보를 교환하여 이를 기초로 최적의 경 로를 라우팅테이블에 유지, 기록. 이때 사용되는 모든 프 로세스, 알고리즘, 메시지를 라우팅프로토콜이라고 부름 동적라우팅프로토콜(Dynamic Routing Protocol) 라우터간에 주기적, 비주기적으로 라우팅정보를 교환 네트워크 정보가 바뀌면 자동으로 라우팅경로를 갱신 네트워크 장애 발생시 자동으로 우회경로를 제시 라우터의 자원을 많이 사용하게 되는 단점이 있음

라우팅프로토콜 동적 라우팅 프로토콜 동적 라우팅 프로토콜의 분류 RIP: 규모가 작은 네트워크에서 주로 사용. 중대규모 네트 워크에는 적용이 어려움 EIGRP, OSPF: 중대규모 네트워크에서 주로 사용 IGRP, EIGRP는 시스코 전용 프로토콜 동적 라우팅 프로토콜의 분류 거리벡터(Distance Vector) 라우팅 프로토콜 링크상태(Link State) 라우팅 프로토콜

거리벡터 라우팅 프로토콜 Bellman-Ford 알고리즘 이용 프로토콜: RIP, IGRP, EIGRP 단점 자신의 라우팅테이블을 이웃한 라우터들에게 주기적으로 브로드캐스트(255.255.255.255) RIP: 30초 IGRP: 90초 이런 정보를 바탕으로 전체 네트워크 구조를 학습 Hop count가 작은 것이 최적 경로 프로토콜: RIP, IGRP, EIGRP 단점 네트워크 규모가 커지면 업데이트 통신량이 증가 안정된 상태로 수렴하는데 시간이 걸림

링크상태 라우팅 프로토콜 다익스트라(Dijkstra) 알고리즘 프로토콜 최단경로우선(Shortest Path First) 알고리즘으로 목적지 까지의 최단경로 계산 라우터는 링크상태패킷(link state packet)을 생성하여 동일 영역내의 모든 라우터들에게 플러딩(flooding) 방식 으로 전달 링크의 비용(cost) 개념을 사용. 출발지에서 목적지까지 가능한 모든 링크중에서 소요되는 비용(cost)이 가장 작 게 나오는 경로를 선택 프로토콜 OSPF IS-IS

RIP v1 RIP (Routing Information Protocol) RIPv1, RIPv2, RIPng 경로 결정을 위해 홉카운트(hop count)를 사용 홉카운트 15 이내에서만 동작

기본 네트워크 토폴로지

인터페이스 설정 라우터 R1 R1(config)# R1(config)#interface FastEthernet0/0 R1(config-if)#ip address 203.230.7.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface Serial0/3/0 R1(config-if)#ip address 203.230.10.2 255.255.255.0 R1(config)#interface Serial0/3/1 R1(config-if)#ip address 203.230.11.2 255.255.255.0 R1(config-if)#clock rate 64000 R1(config-if)#

인터페이스 설정 라우터 R2 R2(config)#interface FastEthernet0/0 R2(config-if)#ip address 203.230.9.1 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface Serial0/3/0 R2(config-if)#ip address 203.230.10.1 255.255.255.0 R2(config-if)#clock rate 64000 R2(config)#interface Serial0/3/1 R2(config-if)#ip address 203.230.12.1 255.255.255.0 R2(config-if)#

인터페이스 설정 라우터 R3 R3(config)# R3(config)#interface FastEthernet0/0 R3(config-if)#ip address 203.230.8.1 255.255.255.0 R3(config-if)#no shutdown R3(config-if)#exit R3(config)#interface Serial0/3/0 R3(config-if)#ip address 203.230.11.1 255.255.255.0 R3(config)#interface Serial0/3/1 R3(config-if)#ip address 203.230.12.2 255.255.255.0 R3(config-if)#

인터페이스 설정 확인 Show ip int brief R1#show ip int brief Interface IP-Address OK? Method Status Protocol FastEthernet0/0 203.230.7.1 YES manual up up FastEthernet0/1 unassigned YES unset administratively down down Serial0/3/0 203.230.10.2 YES manual up up Serial0/3/1 203.230.11.2 YES manual up up Vlan1 unassigned YES unset administratively down down R1#

RIPv1 설정 설정 방법 Router>enable Router#conf t Router(config)#router rip Router(config-router)# network 네트워크주소1 Router(config-router)# network 네트워크주소2 Router(config-router)# network 네트워크주소3 …… 직접 연결된 이웃 라우터의 인터페이스 주소

RIPv1 설정 사례 R1(config)#router rip R1(config-router)#network 203.230.7.0 R1(config-router)#network 203.230.10.0 R1(config-router)#network 203.230.11.0 R2(config)#router rip R2(config-router)#network 203.230.9.0 R2(config-router)#network 203.230.10.0 R2(config-router)#network 203.230.12.0 R3(config)#router rip R3(config-router)#network 203.230.8.0 R3(config-router)#network 203.230.11.0 R3(config-router)#network 203.230.12.0

설정 확인 Show run Show ip route (라우팅 테이블 보기) router rip network 203.230.7.0 network 203.230.10.0 network 203.230.11.0 R1#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is not set C 203.230.7.0/24 is directly connected, FastEthernet0/0 R 203.230.8.0/24 [120/1] via 203.230.11.1, 00:00:04, Serial0/3/1 R 203.230.9.0/24 [120/1] via 203.230.10.1, 00:00:10, Serial0/3/0 C 203.230.10.0/24 is directly connected, Serial0/3/0 C 203.230.11.0/24 is directly connected, Serial0/3/1 R 203.230.12.0/24 [120/1] via 203.230.10.1, 00:00:10, Serial0/3/0 [120/1] via 203.230.11.1, 00:00:04, Serial0/3/1

설정 확인 Show ip protocols 라우팅 프로토콜의 상세정보 제공 R1#show ip protocols Routing Protocol is "rip" Sending updates every 30 seconds, next due in 27 seconds Invalid after 180 seconds, hold down 180, flushed after 240 Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Redistributing: rip Default version control: send version 1, receive any version Interface Send Recv Triggered RIP Key-chain FastEthernet0/0 1 2 1 Serial0/3/0 1 2 1 Serial0/3/1 1 2 1 Automatic network summarization is in effect Maximum path: 4 Routing for Networks: 203.230.7.0 203.230.10.0 203.230.11.0 Passive Interface(s): Routing Information Sources: Gateway Distance Last Update 203.230.11.1 120 00:00:16 203.230.10.1 120 00:00:22 Distance: (default is 120) 라우팅 프로토콜의 상세정보 제공

설정 확인 Debug ip rip RIP 프로토콜의 동작상태를 실시간 확인 No debug ip rip : 디버깅 끄기 R1#debug ip rip RIP protocol debugging is on R1#RIP: sending v1 update to 255.255.255.255 via FastEthernet0/0 (203.230.7.1) RIP: build update entries network 203.230.8.0 metric 2 network 203.230.9.0 metric 2 network 203.230.10.0 metric 1 network 203.230.11.0 metric 1 network 203.230.12.0 metric 2 RIP: sending v1 update to 255.255.255.255 via Serial0/3/0 (203.230.10.2) network 203.230.7.0 metric 1 RIP: sending v1 update to 255.255.255.255 via Serial0/3/1 (203.230.11.2) No debug ip rip : 디버깅 끄기

패시브 인터페이스 설정 특정 인터페이스에 라우팅 업데이트 정보를 보내지 않도록 설정 FastEthernet0/0에는 R1(config-router)#do show ip protocols Routing Protocol is "rip" Sending updates every 30 seconds, next due in 4 seconds Invalid after 180 seconds, hold down 180, flushed after 240 Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Redistributing: rip Default version control: send version 2, receive 2 Interface Send Recv Triggered RIP Key-chain Serial0/3/1 2 2 Serial0/3/0 2 2 Automatic network summarization is not in effect Maximum path: 4 Routing for Networks: 203.230.7.0 203.230.10.0 203.230.11.0 Passive Interface(s): FastEthernet0/0 Routing Information Sources: Gateway Distance Last Update Distance: (default is 120) FastEthernet0/0에는 라우터가 연결되어 있지 않음 - RIP 정보를 보낼 필요 없음 R1(config)#router rip R1(config-router)#passive-interface FastEthernet0/0

RIPv1의 문제점 RIPv1은 클래스풀(classful) 라우팅 프로토콜 라우팅 정보 업데이트시 서브넷마스크 정보를 보내지 않 고 네트워크 정보에 대한 자동요약을 수행. 정해진 A,B,C 클래스의 서브넷마스크를 사용. 서브네팅된 토폴로지에서는 에러 발생 가능 클래스리스(classless) 라우팅 프로토콜 사용 필요 RIPv2, EIGRP, OSPF 등

RIPv1의 문제점 1.1.1.0의 네트워크를 설정할 수 없음

RIPv2 RIPv2 사용방법 클래스리스 라우팅 프로토콜 라우팅 업데이트시 서브넷마스크 정보도 전달 자동요약은 설정/해제 선택 가능 RIPv2는 라우팅정보 전달시 멀티캐스트 주소 사용 (224.0.0.9) 사용방법 R1(config)#router rip R1(config-router)#version 2 R1(config-router)#no auto-summary

RIPv2 설정 R1(config)#router rip R1(config-router)#version 2 R1(config-router)#no auto-summary R1(config-router)#network 203.230.7.0 R1(config-router)#network 1.1.1.0 R2(config)#router rip R2(config-router)#version 2 R2(config-router)#no auto-summary R2(config-router)#network 203.230.7.0 R2(config-router)#network 1.1.2.0 R1#show ip route 1.0.0.0/24 is subnetted, 2 subnets C 1.1.1.0 is directly connected, FastEthernet0/0 R 1.1.2.0 [120/1] via 203.230.7.2, 00:00:02, Serial0/3/0 C 203.230.7.0/24 is directly connected, Serial0/3/0 R2#show ip route 1.0.0.0/24 is subnetted, 2 subnets R 1.1.1.0 [120/1] via 203.230.7.1, 00:00:11, Serial0/3/0 C 1.1.2.0 is directly connected, FastEthernet0/0 C 203.230.7.0/24 is directly connected, Serial0/3/0

라우트 포이즈닝, 포이즈닝 리버스 슬립타이머 0 라우트 포이즈닝 포이즈닝 리버스 RIP는 평상시에는 30초 주기로 라우팅 정보를 보내지만 인터페이스가 다운되는 등의 긴급한 상황이 발행하면 바 로 이웃 라우터에게 전달 라우트 포이즈닝 인터페이스가 다운되는 경우 해당 인터페이스의 메트릭 값을 16으로 설정하여 이웃 라우터에 전달 포이즈닝 리버스 라우트 포이즈닝을 받은 이웃라우터가 메트릭 값 16을 다시 전달. 라우팅 루프 문제를 해결.

디폴트 경로 설정하기 필요성 테스트 모든 네트워크에 대한 라우팅 정보를 가져야만 한다면 라 우팅 테이블이 매우 커지고 복잡해짐 외부 인터넷으로 연결하는 기본 경로를 설정하여 라우팅 테이블을 간소화할 수 있음 (디폴트경로설정) 테스트 외부 인터넷 시뮬레이션을 위해 가상의 루프백 인터페이 스 생성 디폴트 경로를 이곳으로 설정 다른 라우터들에게 디폴트 경로 설정을 알림

디폴트 경로 설정하기 R1(config)#interface loopback 0 R1(config-if)#ip address 10.10.10.1 255.255.255.0 R1(config-if)#do show ip route 1.0.0.0/24 is subnetted, 2 subnets C 1.1.1.0 is directly connected, FastEthernet0/0 R 1.1.2.0 [120/1] via 203.230.7.2, 00:00:10, Serial0/3/0 10.0.0.0/24 is subnetted, 1 subnets C 10.10.10.0 is directly connected, Loopback0 C 203.230.7.0/24 is directly connected, Serial0/3/0 R1(config-if)#do ping 10.10.10.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.10.10.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms

디폴트 경로 설정하기 R1(config)#ip route 0.0.0.0 0.0.0.0 loopback 0 R1(config)#router rip R1(config-router)#default-information originate R1(config-router)# R1(config-router)#do show ip route 1.0.0.0/24 is subnetted, 2 subnets C 1.1.1.0 is directly connected, FastEthernet0/0 R 1.1.2.0 [120/1] via 203.230.7.2, 00:00:00, Serial0/3/0 10.0.0.0/24 is subnetted, 1 subnets C 10.10.10.0 is directly connected, Loopback0 C 203.230.7.0/24 is directly connected, Serial0/3/0 S* 0.0.0.0/0 is directly connected, Loopback0 R2#show ip route 1.0.0.0/24 is subnetted, 2 subnets R 1.1.1.0 [120/1] via 203.230.7.1, 00:00:29, Serial0/3/0 C 1.1.2.0 is directly connected, FastEthernet0/0 C 203.230.7.0/24 is directly connected, Serial0/3/0 R* 0.0.0.0/0 [120/1] via 203.230.7.1, 00:00:29, Serial0/3/0

요약 RIPv1 경로설정 R1(config)#router rip R1(config-router)#network 203.230.7.0 R1(config-router)#network 203.230.10.0 R1(config-router)#network 203.230.11.0 R1#show ip route C 203.230.7.0/24 is directly connected, FastEthernet0/0 R 203.230.8.0/24 [120/1] via 203.230.11.1, 00:00:04, Serial0/3/1 R 203.230.9.0/24 [120/1] via 203.230.10.1, 00:00:10, Serial0/3/0 C 203.230.10.0/24 is directly connected, Serial0/3/0 C 203.230.11.0/24 is directly connected, Serial0/3/1 R 203.230.12.0/24 [120/1] via 203.230.10.1, 00:00:10, Serial0/3/0 [120/1] via 203.230.11.1, 00:00:04, Serial0/3/1

요약 RIPv2 설정 R1(config)#router rip R1(config-router)#version 2 R1(config-router)#no auto-summary R1(config-router)#network 203.230.7.0 R1(config-router)#network 1.1.1.0 R1#show ip route 1.0.0.0/24 is subnetted, 2 subnets C 1.1.1.0 is directly connected, FastEthernet0/0 R 1.1.2.0 [120/1] via 203.230.7.2, 00:00:02, Serial0/3/0 C 203.230.7.0/24 is directly connected, Serial0/3/0

요약 디폴트경로설정 R1(config)#ip route 0.0.0.0 0.0.0.0 loopback 0 R1(config)#router rip R1(config-router)#default-information originate R1(config-router)# R1(config-router)#do show ip route 1.0.0.0/24 is subnetted, 2 subnets C 1.1.1.0 is directly connected, FastEthernet0/0 R 1.1.2.0 [120/1] via 203.230.7.2, 00:00:00, Serial0/3/0 10.0.0.0/24 is subnetted, 1 subnets C 10.10.10.0 is directly connected, Loopback0 C 203.230.7.0/24 is directly connected, Serial0/3/0 S* 0.0.0.0/0 is directly connected, Loopback0

5장 실습과제 실습 1. 그림 5-4의 토폴로지를 RIPv1을 설정하고 통신이 되는지 테스트 실습 2. 222.222.10.0/24의 주소를 서브네팅하 여 그림 5-4를 설정 실습 3. 그림 5-13의 토폴로지를 RIPv2로 설정하 여 통신이 되는지 테스트 실습 4. 222.222.10.0/24의 주소를 서브네팅하 여 그림 5-13을 설정 실습 5. 디폴트경로설정 실습

5장 실습과제 실습 6. 다음 그림의 토폴로지를 200.200.200.0/24의 주소를 서브넷팅하여 사용하고 RIPv2를 이용하여 라우 팅 설정하시오.