Router Configuration 1 Console Telnet Login Y Console

  • Slides: 39
Download presentation
실 습 Router Configuration

실 습 Router Configuration

1. Console 및 Telnet Login Y Console 접속 Router>enable Password: Password를 입력하여도 보이지 않는다.

1. Console 및 Telnet Login Y Console 접속 Router>enable Password: Password를 입력하여도 보이지 않는다. Router# Y Telnet 접속 unix_server% telnet 152. 149. 40. 1 User Access Verification Password: Router>enable Password: Router# Y Console 접속 Router의 console port에 console cable을 연 결하여 단말기(PC나 Notebook)의 serial port 와 연결한다. 보통 속도는 9600, 8 data bits, No parity, 1 stop bit로 단말기의 통신 프로그 램 에서 설정하면 된다. Router를 처음 설정 할 경우에는 console을 이용하여야 한다. Y Telnet 접속 Remote에서 Router에 접속하는 방법으로 telnet 응용 프로그램을 사용할수 있는 환경 이면 된다.

2. Mode YEXEC Mode - User Mode Router> - Privilege Mode Router# YConfiguration Mode

2. Mode YEXEC Mode - User Mode Router> - Privilege Mode Router# YConfiguration Mode - Global Configuration Mode Router(config)# - Interface Configuration Mode Router(config-if)# - HUB Configuration Mode Router(config-hub)# - Router Configuration Mode Router(config-router)# Y EXEC Mode Router에 관하여 Monitor를 하거나 특정한 명 령어를 실행하는 mode이다. Y Configuration Mode Configuration mode에서는 router에 필요한 값을 설정할 수 있다.

4. HELP Y Full Help Router#show ? read-calendar Read the hardware calendar into the

4. HELP Y Full Help Router#show ? read-calendar Read the hardware calendar into the clock set Set the time and date update-calendar Update the hardware calendar from the clock Y Partial Help Router#a? access-enable access-template atmsig Y Full Help Command 입력시 다음 command를 모를경우 사용한다. 이때 다음에 사용할 수 있는 command와 함께 설명이 나타난다. YPartial Help Command중 입력부분까지 같은 command만 화면에 출력해준다. 각각의 command에 대한 설명은 나타나지 않는다.

5. 설정 값 보기 및 저장 …. . Y Configuration 보기 Router#show configuration Using

5. 설정 값 보기 및 저장 …. . Y Configuration 보기 Router#show configuration Using 3034 out of 129016 bytes ! ! Last configuration change at 14: 39: 52 UTC Sat May 23 1998 ! NVRAM config last updated at 14: 40: 18 UTC Sat May 23 1998 ! Y Configuration 보기 version 11. 1 Router에 설정된 값은 Router 내부에 있 는 NVRam에 저장된다. NVRam에 저장 service slave-log 된 configuration을 보는 명령어가 show service timestamps debug datetime localtime configuration이다. 만일 현재 Router의 memory에서 설정된 값을 보려면 show service timestamps log datetime localtime running-config명령을 사용해야 한다. service udp-small-servers Y Configuration 저장 service tcp-small-servers …. . Y Configuration 저장 Router#write memory Router#copy running-config startup-config 현재 router 주 memory에 설정된 값을 NVRam으로 저장하려면 write memory 나 copy running-config startup-config를 이요하여야 한다.

6. Password 설정 Y Console Password (Console 접속 시 사용) Router#configure terminal Router(configure)#line console

6. Password 설정 Y Console Password (Console 접속 시 사용) Router#configure terminal Router(configure)#line console 0 Router(configure-line)#password router Y Terminal Password (Telnet 접속 시 사용) Router#configure terminal Router(config)#line vty 0 4 Router(config-line)#password router Y Enable Password Router#configure terminal Router(config)enable password 12345 Y Enable Secret Router#configure terminal Router(config)enable secret 12345 Y Password Terminal password는 remote에서 user가 접속 시 사용자 확인을 하는 경우에 사용한다. Enable password와 enable secret는 previlege mode로 다시 접속할때 사용자를 확인하기 위 해 사용한다. Enable password와 enable secret중 enable secret가 우선순위가 높다. 즉, enable secret가 설정되어 있으면 enable secret에 설정된 password로 확인하고 만일 설 정되어 있지 않으면 enable password로 확인 한다.

7. Ethernet Interface 설정 Y Ethernet Interface 설정 Mode Router#configure terminal Router(config)#interface ethernet 0

7. Ethernet Interface 설정 Y Ethernet Interface 설정 Mode Router#configure terminal Router(config)#interface ethernet 0 Router(config-if)#ip address 210. 99. 1. 1 255. 0 Y Enable or disable 설정 Router(config-if)#shutdown Router(config-if)#no shutdown Y Fast Ethernet Interface 설정 Y Enable or disable Interface의 작동을 멈추기 위해서는 shutdown명 령을 이용한다. Interface가 shutdown상태이면 interface는 어떠한 data의 송수신도 허용하지 않 는다. shutdown 명령은 사용시 매우 주의해야 한 다. Shutdown되어 있는 interface를 다시 작동하게 하 려면 no shutdown명령을 이용한다.

8. Serial Interface 설정 Y Serial Interface 설정 Mode Router#configure terminal Router(config)#interface serial 0

8. Serial Interface 설정 Y Serial Interface 설정 Mode Router#configure terminal Router(config)#interface serial 0 Router(config-if)#ip address 210. 100. 1. 5 255. 252 Y Encapsulation 설정 Router(config-if)#encapsulation hdlc Router(config-if)#encapsulation frame-relay Y Bandwidth 설정 Router(config-if)#bandwidth 2048 Y Encapsulation Serial interface에서는 WAN구간으로 data를 전송하기 위해 다양한 protocol 을 사용한다. 따라서 어떠한 protocol을 사용하여 전송할 것인가를 결정하여 설 정하여야 한다. Protocol에는 ppp, hdlc, frame-relay, sdlc, smds, x. 25등이 있다. Y Bandwidth WAN구간에 data를 전송하는 속도를 설 정하는 부분으로서 회선 속도 값을 입력 하면 된다. 즉 E 1의 경우 2048, T 1은 1544 값을 입력한다. 단위는 Kbyte이다.

9. Default route 설정 Y Default route 설정 Router#configure terminal Router(config)#ip route 0. 0

9. Default route 설정 Y Default route 설정 Router#configure terminal Router(config)#ip route 0. 0 Next-hop_add Y Router#configuration terminal Router(config)ip default-gateway Next-hop_add Y Default route Router는 routing table에서 network address가 최대한 일치하는 route로 data를 전 송한다. 만일 routing table에 없는 network일 경우 default route를 이용하여 전송한 다. 즉, router가 알지 못하는 network인 경우 모두 default route로 설정되어 있는 곳으로 전송한다.

10. Static route 설정 Y Static route 설정 Router#configure terminal Router(config)#ip route Destination_add Next-hop_add

10. Static route 설정 Y Static route 설정 Router#configure terminal Router(config)#ip route Destination_add Next-hop_add Y Floating Static Route 설정 Router#configure terminal Router(config)#ip route Destination_add Next-hop_add administrative distance Router#configure terminal Router(configure)#ip route 0. 0 Next-hop_add administrative distance Y Static route Router는 routing table 에서 network address 가 최대한 일치하는 route로 data를 전송한 다. 특정Network 에 대한 정보를 Admin이 직접 등록하는 방법. 장점은 Router의 cpu, memory의 overhead가 가장 적다. 단점은 admin이 일일 이 routing table에 등록 을 하여야 하며, troubleshooting에 어 려움이 있다.

10. Static route 설정(계속) Route Source Administrative Distance Connected Interface 0 Static Route 1

10. Static route 설정(계속) Route Source Administrative Distance Connected Interface 0 Static Route 1 EIGRP Summary Route 5 External BGP 20 EIGRP 90 IGRP 100 OSPF 110 IS-IS 115 RIP 120 EGP 140 External EIGRP 170 Internal BGP 200 Unknown 255

10. Static route 설정(계속) Y Load Sharing - Equal-cost 동일한 metrics을 갖는 multiple path

10. Static route 설정(계속) Y Load Sharing - Equal-cost 동일한 metrics을 갖는 multiple path 에서 동일하게 traffic의 부하분산 - Unequal-cost 서로 다른 metrics을 갖는 multiple path사이에 packets을 분산처리하여 부하분산 Router#configure terminal Router(config)#ip route 10. 1. 3. 0 255. 0 10. 1. 20. 1 Router(config)#ip route 10. 1. 3. 0 255. 0 10. 1 Router#configure terminal Router(config)#ip route 0. 0 10. 1. 20. 1 Y Load-Sharing Static Route 는 equal-cost Load-sharing을 지원한다. Process Switching을 지원한다.

10. Static route 설정(계속) Y Load Sharing - Per-Destination 목적지 address별로 부하분산 - Per-Packet

10. Static route 설정(계속) Y Load Sharing - Per-Destination 목적지 address별로 부하분산 - Per-Packet multiple path상에 각 path별로 packet을 전송하여 부하분산 Path Bandwidth별로 packet비율 조정 Y Load-Sharing Y Fast/Process Switching Enable/Disable Router#configure terminal Router(config)#int s 0 Router(config-if)#ip route-cache Router(config-if)#no ip route-cache Fast Switching은 Cisco 라우터의 default switching mode Per-Packet Load-Sharing/Balancing 은 Process Switching 지원

10. Static route 설정(계속) Y Processing Switching 라우터에서 Packet을 Switching 할 때 모든 Packet별로

10. Static route 설정(계속) Y Processing Switching 라우터에서 Packet을 Switching 할 때 모든 Packet별로 Routing Table을 lookup하여 목적지를 찾은 후 합당한 Interface로 packet을 switching Y Fast Switching 라우터에서 Packet을 Switching 할 때 처음 라우터로 들어오는 Packet을 Routing Table에서 lookup하여 목적지를 찾은 후 합당한 Interface로 packet을 switching하고, 그 정보를 라우터 Interface에 Caching한다. 다음 번 packet 부터 는 Caching 된 정보를 바탕으로 Routing Table을 참조하지 않고 바로 Interface로 switching

11. Dynamic Routing Y Distance Vector Routing Protocol - 특정 링크에 대한 방향(vector-라우팅 업데이트

11. Dynamic Routing Y Distance Vector Routing Protocol - 특정 링크에 대한 방향(vector-라우팅 업데이트 방향)과 거리(distance)를 결정 - 전체 네트웍에 대한 정확한 토폴러지 정보까지는 가지 못한다. - 특징 Y Periodic Updates Y Broadcast Updates Y Full Routing Table Updates - RIP, IGRP, EIGRP

12. RIP 설정 Y RIP routing protocol enable Router#configure terminal Router(config)#router rip Router(config-router) Y

12. RIP 설정 Y RIP routing protocol enable Router#configure terminal Router(config)#router rip Router(config-router) Y RIP Y Network enable Router(config-router)#network 210. 99. 1. 0 RIP(Routing Information Protocol)는 hop count 를 기준으로 최적의 경로를 설정한다. 즉, 최소 의 router를 통과하는 path가 제일 좋은 경로이 다. 매 30초 마다 routing table을 update한다. 만일 hop count가 16을 넘으면 그 route는 접근 불가능으로 판단한다. 또한 RIP는 가변적인 subnetmask network을 인식하지 못한다.

13. IGRP 설정 Y IGRP routing protocol enable Router#configure terminal Router(config)#router igrp 1400(as-number) Router(config-router)

13. IGRP 설정 Y IGRP routing protocol enable Router#configure terminal Router(config)#router igrp 1400(as-number) Router(config-router) Y IGRP Y Network enable IGRP(Interior Gateway Routing Protocol) Router(config-router)#network 210. 99. 1. 0 는 Cisco사에서 개발한 routing protocol 이다. 기본적으로 IGRP는 매 90초마다 update packet을 전송한다. IGRP는 같은 AS-number를 갖는 IGRP 사이에서만 정보를 교환한다.

14. EIGRP 설정 Y EIGRP routing protocol enable Router#configure terminal Router(config)#router eigrp 1400(as-number) Router(config-router)

14. EIGRP 설정 Y EIGRP routing protocol enable Router#configure terminal Router(config)#router eigrp 1400(as-number) Router(config-router) Y Network enable YEIGRP Router(config-router)#network 210. 99. 1. 0 EIGRP(Enhanced Interior Gateway Routing Protocol)는 Cisco사에서 개발한 routing protocol이다. 기본적으로 EIGRP 는 매 90초마다 update packet을 전송한다. EIGRP는 같은 AS-number를 갖는 EIGRP 사이에서만 정보를 교환한다.

15. OSPF 설정 Y OSPF routing protocol enable Router#configure terminal Router(config)#router ospf 100 Router(config-router)

15. OSPF 설정 Y OSPF routing protocol enable Router#configure terminal Router(config)#router ospf 100 Router(config-router) Y Network enable Router(config-router)#network 210. 99. 1. 0 Y OSPF Y Default route enable Router(config-router)#default-information 0. 0. 0. 255 area 0. 0 originate OSPF(Open Shortest Path First)는 최소의 hop count로 경 로를 결정하는 RIP와는 달리 회선의 속도 load등을 기준으 로 최적의 경로를 산출하는 routing protocol이다. OSPF는 area로 구분하는데 0. 0은 backbone area이다. Backbone area주위로 다른 sub-area가 연결되어 사용될 수 있다. OSPF는 만일 area가 다르면 routing정보를 서로 교환하지 않는다. OSPF는 default route에 관한 정보를 전송할 수 있다. 즉 ISP 와 연결되는 router에서 default route에 관한 정보를 발생시키 면 OSPF area가 같은 router는 모두 default route를 설정하지 않아도 ISP와 연결된 router로 default route가 설정된다.

16. Route Redistribute Y Route Redistribute Router#configure terminal Router(config)#router rip Router(config-router)#redistribute static metric 1

16. Route Redistribute Y Route Redistribute Router#configure terminal Router(config)#router rip Router(config-router)#redistribute static metric 1 Y Route Redistribute(rip-igrp) Router#configure terminal Router(config)#router igrp 100 Router(config)#network 130. 140. 0. 0 Router(config-router)#redistribute rip Router(config-router)#default-metric 100000 100 255 1 1500 (B/W, delay, Reliability, load, MTU) Router(config)#router rip Router(config-router)#network 130. 0. 0 Router(config-router)#redistribute igrp 100 Router(config-router)#default-metric 3(hop-count) 하나의 Router에는 여러개의 routing protocol이 운용될 수 있다. 때로는 서 로 다른 routing protocol에 의해 생성 되는 route정보를 포함해야 하는 경우 가 발생한다. 이런 경우에 사용하는 것이 redistribute이다.

Access-List Y Access-list - Standard Access-list Y ip source address 를 검사하여 제어 Y

Access-List Y Access-list - Standard Access-list Y ip source address 를 검사하여 제어 Y Access-list 번호는 1~99 - Extended Access-list Y 다양한 조건을 검색하여 제어 Y ip source/destination address Y routing protocol(rip. igrp, ……) Y internet layer protocol(ip, icmp, ……) Y transport layer protocol(tcp, udp) Y application layer protocol(ftp-data, ftp, telnet, www, ……) Y Access-list 번호는 100~199 YAccess-list Cisco Router에서 access-list는 data filtering을 담당한다. 먼저 filtering하고자 하는 것을 group에 설정하고 이것을 어느 interface에 적용할 것인가 를 설정한다. Access-list는 firewall수준과 거의 동일한 기능이 다.

Access-List 설정 Y Access-list 작성 - Standard Access-list 작성 Router#configure terminal Router(config)#access-list 10 deny

Access-List 설정 Y Access-list 작성 - Standard Access-list 작성 Router#configure terminal Router(config)#access-list 10 deny 131. 108. 3. 0 0. 0. 0. 255 Router(config)#access-list 10 permit any Router(config)#interface s 0 Router(config-if)#ip access-group 10 [in/out] - Extended Access-list 작성 Router#configure terminal Router(config)#access-list 120 permit tcp any 210. 99. 3. 0 0. 0. 0. 255 established Router(config)#access-list 120 permit tcp any 210. 99. 3. 0 0. 0. 0. 255 eq telnet Router(config)#access-list 120 deny tcp any eq telnet YAccess-list 적용 시 interface mode 에서 적용한다. Incoming, outgoing 제어가 있다. Access-list 는 선 언된 순서되로 조 건을 검색 Access-list 작성 시 좁은 범위의 조 건을 먼저 선언 Access-list 작성 시 빈번히 발생하 는 조건을 먼저 선 언 Access-list의 맨 마지막은 특별히 선언을 하지 않는 한 defaut로 deny any 가 선언 됨

LAB구성 (Static Route ) S 1 : 192. 168. 3. 1/26 S 0 :

LAB구성 (Static Route ) S 1 : 192. 168. 3. 1/26 S 0 : 192. 168. 3. 2/26 A Router#sh ip int brief Router#sh ip route B S 0 : 192. 168. 1. 1/26 E 0 : 192. 168. 4. 1/24 Router#sh ip protocol Router#sh int Router#ping Router#traceroute S 0 : 192. 168. 1. 2/26 C Gateway : 192. 168. 4. 1/24 E 0 : 192. 168. 2. 1/24 IP: 192. 168. 4. 3/24 E 0 : 192. 168. 4. 2/24 D Gateway : 192. 168. 2. 1/24 IP: 192. 168. 2. 3/24

(Floating Static Route) A E 0: 152. 149. 44. 2/24 E 0: 152. 149.

(Floating Static Route) A E 0: 152. 149. 44. 2/24 E 0: 152. 149. 44. 1/24 B S 0: 152. 149. 46. 1/24 S 0: 152. 149. 46. 2/24 S 1: 152. 149. 47. 1/24 S 1: 152. 149. 47. 2/24 C E 0: 152. 149. 45. 1/24 Gateway : 152. 149. 45. 1/24 IP: 152. 149. 45. 2/24

(Load-Sharing) A E 0: 152. 149. 44. 2/24 E 0: 152. 149. 44. 1/24

(Load-Sharing) A E 0: 152. 149. 44. 2/24 E 0: 152. 149. 44. 1/24 B S 0: 152. 149. 46. 1/24 S 0: 152. 149. 46. 2/24 S 1: 152. 149. 47. 1/24 S 1: 152. 149. 47. 2/24 C E 0: 152. 149. 45. 1/24 Gateway : 152. 149. 45. 1/24 IP: 152. 149. 45. 2/24

LAB구성(RIP 예제) S 1 : 172. 16. 3. 1/26 S 0 : 172. 16.

LAB구성(RIP 예제) S 1 : 172. 16. 3. 1/26 S 0 : 172. 16. 3. 2/26 A B S 0 : 172. 16. 1. 1/26 E 0 : 172. 16. 4. 1/24 S 0 : 172. 16. 1. 2/26 C E 0 : 172. 16. 2. 1/24 Gateway : 172. 16. 4. 1/24 IP: 172. 16. 4. 3/24 Router#sh ip int brief Router#sh ip route rip E 0 : 172. 16. 4. 2/24 Router#sh ip protocol Gateway : 172. 16. 2. 1/24 Router#sh int IP: 172. 16. 2. 3/24 Router#ping Router#traceroute

LAB구성(IGRP/EIGRP 예제) S 1 : 192. 168. 3. 1/26 S 0 : 192. 168.

LAB구성(IGRP/EIGRP 예제) S 1 : 192. 168. 3. 1/26 S 0 : 192. 168. 3. 2/26 A B S 0 : 192. 168. 1. 1/26 E 0 : 192. 168. 4. 1/24 S 0 : 192. 168. 1. 2/26 C Gateway : 192. 168. 4. 1/24 E 0 : 192. 168. 2. 1/24 IP: 192. 168. 4. 3/24 Router#sh ip int brief Router#sh ip route igrp/eigrp E 0 : 192. 168. 4. 2/24 Gateway : 192. 168. 2. 1/24 IP: 192. 168. 2. 3/24 Router#sh ip protocol Router#sh int Router#ping Router#traceroute

LAB구성(OSPF 예제) S 1 : 192. 168. 3. 1/26 S 0 : 192. 168.

LAB구성(OSPF 예제) S 1 : 192. 168. 3. 1/26 S 0 : 192. 168. 3. 2/26 A S 0 : 192. 168. 1. 1/26 B S 2 : 192. 168. 5. 1/26 S 0 : 192. 168. 5. 2/26 E 0 : 192. 168. 4. 1/24 D S 0 : 192. 168. 1. 2/26 Router#sh ip int brief E 0 : 192. 168. 6. 1/26 Router#sh ip route ospf C E 0 : 192. 168. 2. 1/24 Router#sh ip route Gateway : 192. 168. 4. 1/24 Router#sh ip protocol IP: 192. 168. 4. 3/24 Gateway : 192. 168. 6. 1/24 IP: 192. 168. 6. 2/24 E 0 : 192. 168. 4. 2/24 Router#sh int Router#ping Gateway : 192. 168. 2. 1/24 IP: 192. 168. 2. 3/24 Router#traceroute

첨부6(Access-List 예제) • Standard Access-List S 0 : 192. 168. 1. 1/26 S 0

첨부6(Access-List 예제) • Standard Access-List S 0 : 192. 168. 1. 1/26 S 0 : 192. 168. 1. 2/26 A B E 0 : 192. 168. 2. 1/24 S 1 : 192. 168. 3. 1/26 S 0 : 192. 168. 3. 2/26 C Gateway : 192. 168. 2. 1/24 E 0 : 192. 168. 4. 1/24 IP: 192. 168. 2. 2/24 Gateway : 192. 168. 4. 1/24 IP: 192. 168. 4. 2/24 192. 168. 4. 0 Network을 Router A에서 접근 금지

첨부3 (show command Example) v 100 sm#sh conf Using 902 out of 32762 bytes

첨부3 (show command Example) v 100 sm#sh conf Using 902 out of 32762 bytes interface Ethernet 1 ! no ip address ! Last configuration change at 11: 32 UTC Fri Nov 21 1997 shutdown ! NVRAM config last updated at 11: 28: 45 UTC Fri Nov 21 1997 ! ! interface Serial 0 version 11. 2 ip address 210. 100. 1. 2 255. 252 ! bandwidth 1544 hostname v 100 sm ==> 라우터의 이름 ==> 관리자가 임의로 다운 시킴. ==> serial port bandwidth설정(T 1) ! interface Serial 1 ! enable secret 5 $1$Va. UC$FKJ 03 s. GHt 3 tb. AZC 90 Zn. SN. description This is a serial line 1 to seoul ==> 인터페이스의 용도에 주석을 달아 놓는다 enable password 12345 ip address 210. 100. 1. 5 255. 252 ! buffers small permant 200 ==> 데이터 송수신시 사용하는 버퍼의 크기를 관 리자가 정의 buffers middle permant 200 정의하지 않으면 기본값을 사용한다. buffers huge permant 10 ! interface Ethernet 0 ip address 210. 99. 1. 1 255. 0 ==> IP와 Subnet mask ip accounting ==> Ethernet의 사용량을 기록하기위함

v 100 sm#show interface ethernet 0 Ethernet 0 is up, line protocol is up

v 100 sm#show interface ethernet 0 Ethernet 0 is up, line protocol is up ==> 정상적인 상태의 인터페이스 Hardware is Lance, address is 0060. 4740. c 4 e 2 (bia 0060. 4740. c 4 e 2) Internet address is 152. 149. 95. 94/27 ==> sebnet Mask Bit 수 MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, rely 255/255, load 1/255 Encapsulation ARPA, loopback not set, keepalive set (10 sec) ARP type: ARPA, ARP Timeout 04: 00 Last input 00: 00: 00, output hang never Last clearing of "show interface" counters never Queueing strategy: fifo 처리하지 못한 데이터량 Output queue 0/40, 0 drops; input queue 0/75, 0 drops 5 minute input rate 3000 bits/sec, 2 packets/sec 5 minute output rate 12000 bits/sec, 6 packets/sec 948151 packets input, 173700149 bytes, 0 no buffer 5분동안의 평균사용량 Received 517397 broadcasts, 0 runts, 0 giants 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 0 input packets with dribble condition detected 2735446 packets output, 615274034 bytes, 0 underruns 0 output errors, 59 collisions, 2 interface resets ==> 이더넷은 어느정도 충돌 예상함 0 babbles, 0 late collision, 196 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out MTU : 최대 패킷 크기 BW : 회선속도 DLY : 전송 지연시간 Rely : 회선 신뢰도 Load : 회선 사용량

v 100 sm#sh ip route ==>라우터가 가지고 있는 라우팅 정보들을 모두 보여 준다. Codes:

v 100 sm#sh 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 E 1 - OSPF external type 1, E 2 - OSPF external type 2, E - EGP i - IS-IS, L 1 - IS-IS level-1, L 2 - IS-IS level-2, * - candidate default Gateway of last resort is 152. 149. 255. 165 to network 0. 0 152. 149. 0. 0 is variably subnetted, 11 subnets, 4 masks C 152. 149. 97. 96 255. 224 is directly connected, Ethernet 0 S 152. 149. 95. 64 255. 224 [1/0] via 152. 149. 95. 161 O IA 152. 149. 46. 16 255. 240 [110/1796] via 152. 149. 255. 165, 2 d 16, Serial 0 O 152. 149. 55. 0 255. 0 [110/1795] via 152. 149. 255. 165, 2 d 16, Serial 0 ==> 152. 149. 55. 0 네트웍으로 data를 전송하려면 serial 0 interface (152. 149. 255. 165)를 통하여 전송하여야 한다. 대괄호의 110은 OSPF 의 distance값이며, 1796은 이경로의 메트릭 값을 표시한다.