Cisco IOS ICND Copyright 2002 Cisco Systems Inc

  • Slides: 35
Download presentation
Cisco IOS ICND Copyright © 2002, Cisco Systems, Inc.

Cisco IOS ICND Copyright © 2002, Cisco Systems, Inc.

Cisco IOS Backup IOS를 TFTP Server로 복사하기 위해 “copy flash tftp”명령어를 사용하여 TFTP 호스트로부터

Cisco IOS Backup IOS를 TFTP Server로 복사하기 위해 “copy flash tftp”명령어를 사용하여 TFTP 호스트로부터 플래시 메모리로 다운 로드를 할 수가 있다. Router#copy flash tftp System flash directory: File Length Name/status 1 812100 c 2500 -js-l. 120 -9. bin Source filename ? c 2500 -js-l. 120 -9. bin Address or name of remote host [255. 255]? 192. 168. 10. 120 Destination filename [c 2500 -js-l. 120 -9. bin]? [enter] [생략] ! ! ! ! ! ! !! ! ! ! Upload to server done Flash copy took 00: 02: 30 [hh: mm: ss] Router# ICND Copyright © 2002, Cisco Systems, Inc. 4

Cisco IOS 복원 및 업그레이드 Router#copy tftp flash **** NOTICE **** Flash load helper

Cisco IOS 복원 및 업그레이드 Router#copy tftp flash **** NOTICE **** Flash load helper v 1. 0 This process will accept the copy options and then terminate the current system image to use the ROM based image for the copy. [생략] ---- **** ---Proceed? [confirm] (Enter) Address or name of remote host []? 162. 20. 30. 20 Source file name? c 2500 -js-l. 120 -9. bin Destination filename [falsh]? c 2500 -js-l. 120 -9. bin %Warning: There is a file already existing with this name Do you want to over write? [confirm] (Enter) Accessing tftp: //162. 20. 30. 20/c 2500 -d-l. 120 -9. bin. . . Erase flash: before copying? [confirm] (Enter) Erasing device. . . eeeeeeeeeeeeeeee. . . erased [생략] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [OK - 6888660/8388608 bytes] ICND Copyright © 2002, Cisco Systems, Inc. 5

Cisco Router Backup ICND Copyright © 2002, Cisco Systems, Inc.

Cisco Router Backup ICND Copyright © 2002, Cisco Systems, Inc.

NVRAM으로 Copy RAM의 있는 파일을 복사하기 위해서는 Copy run tftp 명령어를 사용하여 TFTP 호스트로

NVRAM으로 Copy RAM의 있는 파일을 복사하기 위해서는 Copy run tftp 명령어를 사용하여 TFTP 호스트로 백업 파일을 만들 수 가 있다. Router#copy run tftp Address or name of remote host [ ]? 162. 20. 30. 20 Destination filename [routerb-config]? Toddi-config !! 782 bytes copied in 5. 284 secs (156 bytes/sec) Router# ICND Copyright © 2002, Cisco Systems, Inc. 7

환경설정 복원 Copy tftp run 명령어를 이용하여 백업으로 복사해 놓은 파일을 라우터로 다음과 같은

환경설정 복원 Copy tftp run 명령어를 이용하여 백업으로 복사해 놓은 파일을 라우터로 다음과 같은 명령어를 사용하여 복원을 할 수가 있다. Router#copy tftp run Address or name of remote host [ ]? 162. 20. 30. 20 Source filename [ ]? todd 1 -config Destination filename [running-config]? Accessing tftp: //162. 20. 30. 20/routerb-config. . . Loading routerb-config from 162. 20. 30. 20 (via Ethernet 0): !! [OK – 782/1024 bytes] 782 bytes copied in 3. 584 secs (260 bytes/sec) Router# 02: 08: 59: %sys-5 -CONFIG: Configured from ftfp: //162. 20. 30. 20/todd 1 -config Router# ICND Copyright © 2002, Cisco Systems, Inc. 8

Configuration Erase NVRAM의 설정된 내용을 모두 삭제하고 싶을 경우 다음과 같은 명령어를 사용하여 NVRAM의

Configuration Erase NVRAM의 설정된 내용을 모두 삭제하고 싶을 경우 다음과 같은 명령어를 사용하여 NVRAM의 있는 내용을 지울수가 있다, 라우터가 재 부팅 될 때 바로 셋업 모드로 부팅을 한다. Router#erase start Erasing the nvram filesystem will remove all files! Continue? [confirm] (Enter) [OK] Erase of nvram: complete Router# ICND Copyright © 2002, Cisco Systems, Inc. 9

Telnet 사용방법 ICND Copyright © 2002, Cisco Systems, Inc.

Telnet 사용방법 ICND Copyright © 2002, Cisco Systems, Inc.

Telnet 을 통한 다중장치 접속 172. 16. 10. 1 Lab_A Router#telnet 172. 16. 10.

Telnet 을 통한 다중장치 접속 172. 16. 10. 1 Lab_A Router#telnet 172. 16. 10. 1 Trying 162. 20. 1 … Open User Access Verification Password: Router. B> Router# Shift+Ctrl+6을 누른 후 X 버튼을 눌으면 된다. ICND Copyright © 2002, Cisco Systems, Inc. 12

Telnet 사용자 확인 Show users 명령어를 사용하여 활성화 된 모든 콘솔과 VTY 포트를 다음과

Telnet 사용자 확인 Show users 명령어를 사용하여 활성화 된 모든 콘솔과 VTY 포트를 다음과 같이 확인 할 수가 있다. 172. 16. 10. 1 Lab_A Router#show users Line * User Host(s) Idle Location 0 con 0 idle 2 vty 0 162. 20. 1 00: 07: 19 9 Show users all을 하면 전체의 포트를 확인 할 수가 있다. ICND Copyright © 2002, Cisco Systems, Inc. 13

Telnet 세션 종료 Clear line # 명령어를 사용하여 접속된 사용자를 확인하여 연결을 차단할 수가

Telnet 세션 종료 Clear line # 명령어를 사용하여 접속된 사용자를 확인하여 연결을 차단할 수가 있다. Router#show users Line * User Host(s) Idle Location 0 con o idle 2 vty 0 162. 20. 1 00: 07: 19 9 Router#clear line 2 [confirm] [ok] ICND Copyright © 2002, Cisco Systems, Inc. 14

Host Table Configuration 호스트 테이블을 구성하기 위해서는 글로벌 환경 설정모드에서 IP Host라는 명령어를 사용하여

Host Table Configuration 호스트 테이블을 구성하기 위해서는 글로벌 환경 설정모드에서 IP Host라는 명령어를 사용하여 다음과 같이 구성할 수 가 있다. Router#config terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#ip host ? WORD Name of host Router(config)#ip host Router. B ? <0 -65535> Default telnet port number A. B. C. D Host IP address (maximum of 8) Router(config)#ip host Router. B 162. 20. 30. 1 ? A. B. C. D Host IP address (maximum of 8) <cr> Router(config)#ip host Router. C 162. 20. 50. 1 Router(config)#^Z Router# ICND Copyright © 2002, Cisco Systems, Inc. 16

Host Table 확인 Show hosts명령어를 사용하여 구성되어 있는 호스트 테이블을 확인할 수가 있다. Flags의

Host Table 확인 Show hosts명령어를 사용하여 구성되어 있는 호스트 테이블을 확인할 수가 있다. Flags의 있는 Perm은 수동으로 구 성되었음을 의미하며, Temp라고 되어 있을 경우 DNS에 의해 등록되었음을 의미한다. Router#show users Default domain is not set Name/address lookup uses domain service Name servers are 255. Host Flags Router. A (perm, OK) 0 IP 162. 20. 1 Router. B (perm, OK) 0 IP 162. 20. 30. 1 ICND Age Copyright © 2002, Cisco Systems, Inc. Type Address 17

DNS 사용방법 라우터 프롬프트 상태에서 잘못된 호스트 명이나 명령어를 입력했을 경우 라우터는 호스트 명을

DNS 사용방법 라우터 프롬프트 상태에서 잘못된 호스트 명이나 명령어를 입력했을 경우 라우터는 호스트 명을 알지 못하거나 입력한 명령어를 모르기 때문에 DNS를 통하여 해결하려고 한다. Router#todd Translating “todd”…domin server (255. 255) % Unknown command or computer name, or unable to find computer address Router# Router(config)#no domain-lookup ICND Copyright © 2002, Cisco Systems, Inc. 18

CDP (Cisco Discovery Protocol) ICND Copyright © 2002, Cisco Systems, Inc.

CDP (Cisco Discovery Protocol) ICND Copyright © 2002, Cisco Systems, Inc.

CDP Time and Holdtime Router. A#show cdp Global CDP information: Sending CDP packets every

CDP Time and Holdtime Router. A#show cdp Global CDP information: Sending CDP packets every 60 seconds Sending a holdtime value of 180 seconds • CDP 타이머는 활성화된 인터페이스에서 CDP 패킷이 얼마나 자주 송신되는지 확인함. • CDP 지체시간은 이접 장치로부터 수신한 패킷을 장치가 얼마 동안 유지하고 있는가를 의미함. ICND Copyright © 2002, Cisco Systems, Inc. 22

Altering CDP Parameters Router. A(config)#cdp timer 30 Router. A(config)#exit Router. A# show cdp interface

Altering CDP Parameters Router. A(config)#cdp timer 30 Router. A(config)#exit Router. A# show cdp interface Serial 0 is up, line protocol is up Encapsulation is HDLC Sending CDP packets every 30 seconds Holdtime is 180 seconds Router. A(config)#cdp holdtime 90 Router. A(config)#exit Router. A# show cdp interface Serial 0 is up, line protocol is up Encapsulation is HDLC Sending CDP packets every 30 seconds Holdtime is 90 seconds ICND Copyright © 2002, Cisco Systems, Inc. 23

인접 장비 정보 수집 Router. B#show cdp neighbor apability Codes: R - Router, T

인접 장비 정보 수집 Router. B#show cdp neighbor apability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater Device ID Router. C Router. A Router. B# Local Intrfce Holdtme Ser 1 169 R Ser 0 130 R Capability Platform Port ID 3600 Ser 0 2500 Ser 0 Show cdp neighbor는 인접한 라우터 들의 장치의 정보를 여주는 것이다 ICND Copyright © 2002, Cisco Systems, Inc. 24

Running CDP Commands Router. B#sh cdp neighbor detail ------------------------Device ID: Router. C Entry address(es):

Running CDP Commands Router. B#sh cdp neighbor detail ------------------------Device ID: Router. C Entry address(es): IP address: 172. 16. 40. 2 Platform: Cisco 2500, Capabilities: Router Interface: Serial 1, Port ID (outgoing port): Serial 0 Holdtime: 123 sec [생략] ------------------------Device ID: Router. A Entry address (es): IP address: 172. 16. 20. 1 Platform: Cisco 2500, Capabilities: Router Interface: Serial 0, Port ID (outgoing port): Serial 0 Holdtime: 174 sec [생략] ICND Copyright © 2002, Cisco Systems, Inc. 26

Running CDP Commands Router. B#sh cdp entry Router. A ----------------------Device ID: Router. A Entry

Running CDP Commands Router. B#sh cdp entry Router. A ----------------------Device ID: Router. A Entry address (es): IP address: 172. 16. 20. 1 Platform: Cisco 2500, Capabilities: Router Interface: Serial 0, Port ID (outgoing port): Serial 0 Holdtime: 174 sec [생략] ICND Copyright © 2002, Cisco Systems, Inc. 27

Traffic 확인 Router#show cdp traffic CDP counters : Packets output: 861, Input: 562 Hdr

Traffic 확인 Router#show cdp traffic CDP counters : Packets output: 861, Input: 562 Hdr syntax: 0, Chksum error: 0, Encaps failed: 0 No memory: 0, Invalid packet: 0, Fragmented: 0 Router# ICND Copyright © 2002, Cisco Systems, Inc. 28

Interface Information Router#show cdp interface Ethernet 0 is up, line protocol is up Encapsulation

Interface Information Router#show cdp interface Ethernet 0 is up, line protocol is up Encapsulation ARPA Sending CDP packets every 60 seconds Holdtime is 180 seconds Serial 0 is up, line protocol is up Encapsulation HDLC Sending CDP packets every 60 seconds Holdtime is 180 seconds Serial 1 is up, line protocol is up Encapsulation HDLC Sending CDP packets every 60 seconds Holdtime is 180 seconds Router# “show cdp interface” 커맨드는 현재 라우터의 설정된 인터페이스의 정보를 보여주는 것이다. ICND Copyright © 2002, Cisco Systems, Inc. 29

CDP Delete Router. A#config terminal Enter configuration commands, one per line. End with CNTL/Z.

CDP Delete Router. A#config terminal Enter configuration commands, one per line. End with CNTL/Z. Router. A(config)#no cdp run Router. A(config)#^Z Router. A#show cdp % CDP is not enabled Router. A# CDP는 기본적으로 Enable 즉, 활성화가 되어 있다. 라우터에서 CDP를 사용하고 싶지 않을 경우 no cdp run을 사용하면 된다. ICND Copyright © 2002, Cisco Systems, Inc. 30

Ping 사용방법 ICND Copyright © 2002, Cisco Systems, Inc.

Ping 사용방법 ICND Copyright © 2002, Cisco Systems, Inc.

Standard Ping 성공 Router#ping 162. 20. 1 Type escape sequence to abort. Sending 5,

Standard Ping 성공 Router#ping 162. 20. 1 Type escape sequence to abort. Sending 5, 100 -byte ICMP Echoes to 162. 20. 1 timeout is 2 second !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms 실패 Router. B#ping 162. 20. 50. 1 Type escape sequence to abort. Sending 5, 100 -byte ICMP Echoes to 162. 20. 50. 1 timeout is 2 seconds: . . . Success rate is 0 percent (0/5) ICND Copyright © 2002, Cisco Systems, Inc. 33

Trace Command Router#trace Router. B Type escape sequence to abort. Tracing the route to

Trace Command Router#trace Router. B Type escape sequence to abort. Tracing the route to Router. B (162. 20. 30. 1) 1 Router. B (162. 20. 1) 16 msec * 16 msec Router# Traceroute는 특정한 호스트 및 자신의 컴퓨터까지 경로를 확인 할 수가 있는 명령어이다. ICND Copyright © 2002, Cisco Systems, Inc. 35