Cach Nap File Ios Vao He Dieu Hanh

Embed Size (px)

Citation preview

  • 8/8/2019 Cach Nap File Ios Vao He Dieu Hanh

    1/3

    Bi th?c hnh na`y m ta? cach na?p IOS tu` router cha?y tu` flash. M?t s router cha?yflash nhu Cisco 2500 series hay Cisco 1600 series.PC h?at d?ng nhu m?t TFTP server s? ni voi router trong cu`ng ma?ng LAN. IOS image moi se~ chua trong TFTP server va` se~ du?c truy`n qua Cisco router ba`ng giao thuc truy`n TFTP. Trong hnh v? ny, PC hoa?t d?ng nhu TFTP server cn router se~ la` TFTP client.

    ?Router cha?y tu` Flash va` router cha?y tu` RAMCisco router co th? thu?c thi IOS tu` RAM hay tu` Flash, cha?y tu` flash ch?m hon. Router cha?y tu` flash la` cac loa?i Cisco 2500 series va` m?t s router Cisco 1600 series. Toa`n b? IOS duo?c na?p va`o b? nho flash o? da?ng khng nen. Cisco IOS cha?y tu` flash. C?p nh?t IOS moi tro? tha`nh vn d`: la`m sao d? na?p va`o flash trong khig thu?c thi IOS cu~? Cisco gia?i quyt di`u na`y ba`ng m?t IOS da?c bi?t luu trong ROM. Chuong tri`nh giup do~ kho?i d?ng se~ na?p la?i router d? boot tu` ROM. Luc na`y Flash co th? c?p nh?t va` IOS moi se~ co th? cha?y tu` flash. Router cha?y tu` RAM la` cac do`i router Cisco 3600, 4000, 7000, va` 7500. Cac router na`y chua IOS image da?ng nen trong flash. Khi kho?i d?ng, router sao chep IOS tu` flash va`o trong RAM va` thu?c thi IOS trn RAM. Cac router na`y co th? c?p nh?t da`ng IOS trong flash ba`ng cach chep phin ba?n moi ba`ng TFTP.

    Thu?c hi?nBan d`u cu hi`nh cu?a RouterA nhu sau

    RouterA!hostname RouterA!interface Ethernet0ip address 10.10.3.253 255.255.255.0 ? Ethernet interface trn cu`ng ma?ng voi TFTPserverno shut ? cho php c?ng!line con 0

    line aux 0line vty 0 4login!end

    Du`ng l?nh show version d? ti`m phin ba?n cu?a IOS hi?n co.

    RouterA#show versionCisco Internetwork Operating System SoftwareIOS (tm) 2500 Software (C2500-I-L), Version 12.1(3), RELEASE SOFTWARE (fc1)?

    Router dang cha?y IOS version 12.1(3)

    Copyright (c) 1986-2000 by cisco Systems, Inc.Compiled Thu 06-Jul-00 07:33 by cmongImage text-base: 0x0303E710, data-base: 0x00001000

    ROM: System Bootstrap, Version 11.0(10c), SOFTWAREBOOTFLASH: 3000 Bootstrap Software (IGS-BOOT-R), Version 11.0(10c), RELEASE SOFTWARE (fc1)

    R1 uptime is 1 hour, 22 minutesSystem returned to ROM by power-onSystem image file is "flash:c2500-i-l.121-3.bin"

    ?IOS duo?c na?p tu` flash

  • 8/8/2019 Cach Nap File Ios Vao He Dieu Hanh

    2/3

    cisco 2511 (68030) processor (revision M) with 14336K/2048K bytes of memory. ?Router co 16 MB RAM, 14MB du`ng cho b? nho xu? ly, 2MB du`ngcho b? nho I/OProcessor board ID 07143970, with hardware revision 00000000Bridging software.X.25 software, Version 3.0.0.1 Ethernet/IEEE 802.3 interface(s)

    2 Serial network interface(s)16 terminal line(s)32K bytes of non-volatile configuration memory.8192K bytes of processor board System flash (Read ONLY) ? router co 8 MB flashConfiguration register is 0x2102

    Xem n?i dung b? nho flash du`ng l?nh show flash

    RouterA#show flashSystem flash directory:File Length Name/status1 7640212 c2500-i-l.121-3.bin

    [7640276 bytes used, 748332 available, 8388608 total]

    ? chac chan co th? truy c?p duo?c TFTP server o? di?a chi? 10.10.3.28, du`ng l?nhki?m tra.

    RouterA#ping 10.10.3.28Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.10.3.28 timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms

    Sau khi da~ ki?m tra k?t n?i d?n TFTP server nhu trn, ta bat d`u na?p IOS moi va`o rter ba`ng l?nh copy tftp flash.

    Luu y dng s?n ph?m Cisco 2500 l l?ai router cha?y tu` flash.

    RouterA#copy tftp flash**** NOTICE ****Flash load helper v1.0This process will accept the copy options and then terminatethe current system image to use the ROM based image for the copy. ? router se~ na?p IOS imagetrong ROM, IOS na`y se~ ghi IOS moi va`o flashRouting functionality will not be available during that time.If you are logged in via telnet, this connection will terminate.Users with console access can see the results of the copy operation.---- ******** ----Proceed? [confirm]Address or name of remote host [255.255.255.255]? 10.10.3.28 ? di?a chi? TFTP serverSource file name []?c2500-i-l.121-4.binDestination file name []?Accessing tftp://10.10.3.28/c2500-i-l.121-4.bin...Erase flash: before copying? [confirm] ? xoa n?i dung hi?n ta?i cu?a flash

    Loading System flash directory:File Length Name/status1 7640212 c2500-i-l.121-3.bin[7640276 bytes used, 748332 available, 8388608 total]

    Accessing file 'c2500-i-l.121-4.bin' on 10.10.3.28...Loading c2500-i-l.121-4.bin from 10.10.3.28 (via Ethernet0):! [OK]

  • 8/8/2019 Cach Nap File Ios Vao He Dieu Hanh

    3/3

    Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ...erasedLoading c2500-i-l.121-4.bin from 10.10.3.28 (via Ethernet0): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!![OK - 7640212/8388608 bytes]

    Verifying checksum... OK (0x1FC7)Flash copy took 0:03:47 [hh:mm:ss]%FLH: Re-booting system after download

    Restricted Rights Legend...Cisco Internetwork Operating System SoftwareIOS (tm) 2500 Software (C2500-I-L), Version 12.1(4), RELEASE SOFTWARE (fc1)Copyright (c) 1986-2000 by cisco Systems, Inc.Compiled Thu 06-Jul-00 07:33 by cmongImage text-base: 0x0303E710, data-base: 0x00001000

    cisco 2511 (68030) processor (revision M) with 14336K/2048K bytes of memory.Processor board ID 07143970, with hardware revision 00000000Bridging software.X.25 software, Version 3.0.0.1 Ethernet/IEEE 802.3 interface(s)2 Serial network interface(s)16 terminal line(s)32K bytes of non-volatile configuration memory.8192K bytes of processor board System flash (Read ONLY)

    Press RETURN to get started!

    Sau khi da~ na?p IOS moi du`ng l?nh show version d? ki?m tra la?i router da~ cha?y IO

    S moi chua:

    RouterA#show version

    Ki?m tra la?i l`n nu~a ba`ng show flash.

    copy ios nap vao

    TFTPDNLD- open hyperterminal 9600 bps by defaultrommon 17 > ?rommon 18 > setrommon 19 > IP_ADDRESS=192.168.3.1 (IP of router interface fastethernet 0/0 )rommon 20 > IP_SUBNET_MASK=255.255.255.0rommon 21 > DEFAULT_GATEWAY=192.168.3.2rommon 22 > TFTP_SERVER=192.168.3.2 (IP of TFTP Server)

    rommon 23 > TFTP_FILE=c2600-advsecurityk9-mz.124-8d.binrommon 24 > tftpdnld