9 IP Computer Network Lab 1 Portion of
제 9장 IP 라우팅 Computer Network Lab. 1
Portion of the class B network 140. 252 used for all the examples in the text All the hosts are in the tuc. noao. edu domain AIX 3. 2. 2 Solaris 2. 2 Sun. OS 4. 1. 1 aix solaris gemini . 1. 92 . 1. 32 인터넷. 104. 1 시스코 gateway 라우터. 1. 4 . 1. 11 이더넷 . 1. 183 netb Telebit Net. Blazer modem SLIP (dialup) modem BSD/386 1. 0 slip . 13. 65 SLIP BSD/386 1. 0 Sun. OS 4. 1. 3. 1. 29. 13. 66 bsdi sun. 13. 35 . 13. 33 SVR 4 svr 4. 13. 34 이더넷 Computer Network Lab. 6
간단한 라우팅 테이블 svr 4 % netstat -rn Routing tables Destination Gateway 140. 252. 13. 65 140. 252. 13. 35 127. 0. 0. 1 default 140. 252. 13. 33 140. 252. 13. 32 140. 252. 13. 34 Flags UGH UH UG U Refcnt 0 1 0 4 Use 0 0 0 25043 Interface emd 0 lo 0 emd 0 • Flag. - U : 로컬 네트워크를 표현. - G : 경로가 라우터를 향함. - H : 호스트에 대한 경로 정보 나타냄. 목적지는 완전한 호스트 주소임 - D : 경로가 redirect에 의해서 생성. - M : 경로가 redirect에 의해서 수정. Computer Network Lab. 7
복잡한 라우팅 테이블 sun % netstat -rn Routing tables Destination Gateway 140. 252. 13. 65 140. 252. 13. 35 127. 0. 0. 1 140. 252. 1. 183 140. 252. 1. 29 default 140. 252. 1. 183 140. 252. 13. 32 140. 252. 13. 33 Flags UGH UH UH UG U Refcnt 0 1 8 Use 171 766 0 2955 99551 Interface le 0 lo 0 sl 0 le 0 Sun % ifconfig sl 0 : flags=1051<UP, POINT, RUNNING> inet 140. 252. 1. 29 --> 140. 252. 1. 183 netmask ffffff 00 Computer Network Lab. 10
3. ICMP 호스트 및 네트워크 도달불가 에러 Svr 4에서 절단되어 있는 다이얼업 SLIP링크의 반대쪽에 있는 호스트에 대해서 ping을 실행 svr 4 % ping gemini ICMP host unreachable from gateway sun (140. 252. 13. 33) ^? 종료하기 위해 인터럽트 키를 누름 1. 2. 0. 00 ( 0. 00 ) svr 4 > gemini : icmp : echo request sun > svr 4 : icmp : host gemini unrechable 3. 4. 0. 99 ( 0. 99 ) 0. 99 ( 0. 00 ) svr 4 > gemini : icmp : echo request sun > svr 4 : icmp : host gemini unrechable Ping에 응답한 ICMP 호스트 도달불가 Computer Network Lab. 12
3. ICMP 호스트 및 네트워크 도달불가 에러 인터넷에 연결되어 있지 않은 IP주소에 ping을 실행하면 에러가 생기며 에러가 돌아오기 전에 패킷이 인터넷을 통해 어디까지 갔는지를 알수 있다. sun % ping 192. 82. 148. 1 이 Ip주소는 인터넷에 연결되어 있지 않다. PING 192. 82. 148. 1 : 56 data bytes ICMP host unrechable from gateway enss 142. UT. westnet. net (192. 31. 39. 21 ) for icmp from sun ( 140. 252. 1. 29 ) to 192. 82. 148. 1 a top-level routing domain : default 처리 없이 모든 인터넷 경로 정보 유지: NSFNet, CIX, NSI, Sprintlink, EBONE (1995. 4 기준) Computer Network Lab. 13
ICMP 재지정의 예 Ping을 실행하기 전의 라우팅 테이블 solaris % netstat -rn Routing tables Destination Gateway 127. 0. 0. 1 140. 252. 1. 0 140. 252. 1. 32 224. 0. 0. 0 140. 252. 1. 32 default 140. 252. 1. 4 Flags UH U U UG Refcnt 0 3 3 0 Use 848 15042 0 5747 Interface lo 0 le 0 V 옵션을 사용하면 호스트에 의해 수신되는 ICMP메시지를 볼 수 있다. Solaris % ping -sv bsdi PING bsdi: 56 data bytes ICMP Host redirect from gateway (140. 252. 1. 4) to netb ( 140. 252. 1. 183) for bsdi (140. 252. 13. 35) 64 bytes from bsdi ( 140. 252. 13. 35) : icmp_seq=0. time=383. ms 64 bytes from bsdi ( 140. 252. 13. 35) : icmp_seq=0. time=383. Ms ^? type interrupt key to stop ---------bsdi PING statistics -------4 packets transmitted, 3 packets received, 25 % packet loss round-trip (ms) min/avg/max = 353/366/383 Computer Network Lab. 15
ICMP 재지정의 예 solaris % netstat -rn Routing tables Destination Gateway 127. 0. 0. 1 140. 252. 13. 35 140. 252. 1. 183 140. 252. 1. 0 140. 252. 1. 32 224. 0. 0. 0 140. 252. 1. 32 default 140. 252. 1. 4 Flags UH UGHD U U UG Refcnt 0 0 3 3 0 Use 848 2 15045 0 5749 Interface lo 0 le 0 ICMP 재지정에 의해 새로운 경로가 추가되었음을 알수 있다. D 옵션은 ICMP재지정에 의해 설정되어졌다는 것을 의미한다. Computer Network Lab. 16
- Slides: 22