• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
Xin chào ! Nếu đây là lần đầu tiên bạn đến với diễn đàn, xin vui lòng danh ra một phút bấm vào đây để đăng kí và tham gia thảo luận cùng VnPro.

Announcement

Collapse
No announcement yet.

Lab 1-9: Nạp IOS từ TFTP Server cho router chạy từ RAM

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Lab 1-9: Nạp IOS từ TFTP Server cho router chạy từ RAM

    Lab 1-9: Nạp IOS Image từ TFTP Server cho router chạy từ RAM


    Mô tả
    –Cấu hình này mô tả cách nạp IOS image từ router chạy từ RAM. Một số dòng sản phẩm router chạy từ RAM là Cisco 2600, Cisco 3600 series, Cisco 4600 series.
    –PC chạy TFTP server nối với router trong cùng mạng LAN. IOS image mới sẽ chứa trong PC và sẽ truyền qua Cisco router bằng giao thức truyền TFTP. PC hoạt động như TFTP server, router sẽ là TFTP client.
    Thực hiện
    –Ban đầu cấu hình của RouterA như sau

    RouterA
    !
    hostname RouterA
    !
    interface Ethernet0/0
    ip address 10.10.3.253 255.255.255.0 ← Ethernet interface trên cùng mạng với TFTP server
    !
    line con 0
    line aux 0
    line vty 0 4
    login
    !
    end

    –Dùng lệnh show version để tìm phiên bản của IOS hiện có. Lệnh này cung cấp một số thông tin như dung lượng bộ nhớ và image của router

    RouterA#show version
    Cisco Internetwork Operating System Software
    IOS(tm)C2600 Software(C2600-JSX-M),Version 12.1(5)XM,EARLY DEPLOYMENT RELEASE SOFTWARE ↑
    Router đang chạy IOS version 11.1 (4)
    Image text-base: 0x80008088, data-base: 0x8148BD7C
    RouterA uptime is 11 minutes
    System restarted by power-on
    System image file is "flash: c2600-i-mz.120-3.T3.bin ", booted via flash

    IOS được nạp trong flash
    cisco 2621 (MPC860) processor (revision 0x102) with 60416K/5120K bytes of memory.

    Router có 64MB DRAM, 60MB dùng cho bộ nhớ xử lý, 4MB
    dùng cho bộ nhớ I/O
    Processor board ID JAB041708RB (3572412720)
    M860 processor: part number 0, mask 49
    Bridging software.
    X.25 software, Version 3.0.0.
    SuperLAT software (copyright 1990 by Meridian Technology Corp).
    TN3270 Emulation software.
    4 Ethernet/IEEE 802.3 interface(s)
    2 FastEthernet/IEEE 802.3 interface(s)
    2 Serial network interface(s)
    32K bytes of non-volatile configuration memory.
    16384K bytes of processor board System flash (Read ONLY) ← router có 16 MB flash
    Configuration register is 0x2102

    –Xem nội dung bộ nhớ flash dùng lệnh show flash

    RouterA#show flash
    System flash directory:
    File Length Name/status
    1 3612344 c2600-i-mz.120-3.T3.bin

    –Để chắc chắn có thể truy cập được TFTP server ở địa chỉ 10.10.3.28, dùng lệnh ping để kiểm tra.

    RouterA#ping 10.10.3.28
    Type 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

    –Khi đã kiểm tra kết nối đến TFTP server, ta bắt đầu nạp IOS mới vào router bằng lệnh copy tftp flash. Lưu ý trong bài thực hành này, ta sẽ không xoá file cũ hiện đã có trong flash.

    RouterA#copy tftp flash
    Address or name of remote host [10.10.3.28]? ← địa chỉ TFTP server
    Source file name? c2600-jsx-mz.121-5.xm.bin ← tên của IOS muốn nạp
    Destination file name?
    Accessing tftp://10.10.3.28/c2600-jsx-mz.121-5.xm.bin
    Erase flash device before writing? [confirm]n ← không xoá file hiện tại của flash
    Loading c2600-jsx-mz.121-5.xm.bin from 10.10.3.28 (via Ethernet0/0)
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    ...
    [OK - 3612344/7224320 bytes]
    Verifying checksum... OK (0x515A)

    –Sau khi quá trình nạp hoàn tất, ta kiểm tra nội dung của bộ nhớ flash bằng lệnh show flash

    RouterA#show flash
    System flash directory:
    File Length Name/status
    1 12080536 c2600-jsx-mz.121-5.xm.bin
    2 3612344 c2600-i-mz.120-3.T3.bin
    [15693008 bytes used, 1084208 available, 16777216 total]
    16384K bytes of processor board System flash (Read/Write)

    –Lúc này có hai file trong flash. Ta cần khai báo cho router biết dùng file nào trong khi khởi động. Dùng lệnh boot system flash trong configuration mode

    RouterA#conf term
    RouterA(config)#boot system flash c2600-jsx-mz.121-5.xm.bin
    RouterA(config)#exit

    –Kiểm tra lại bằng show run để chắc chắn câu lệnh đánh đúng
    –Lưu cấu hình dùng lệnh write memory (hay copy run start) và sau đó nạp lại

    RouterA#write mem
    Building configuration ...
    [OK]
    RouterA#reload
    Proceed with reload? [confirm]

    –Sau khi đã nạp IOS mới dùng lệnh show version để kiểm tra lại router đã chạy IOS mới hay chưa:

    RouterA#show version
    Cisco Internetwork Operating System Software
    IOS (tm) C2600 Software (C2600-JSX-M), Version 12.1(5)XM,
    ...
    System file image “flash: c2600-jsx-mz.121-5.xm.bin“

    Nếu muốn nạp IOS mới mà không giữ phiên bản cũ, cũng dùng lệnh copy tftp flash và cho phép xoá flash trước khi ghi.

    RouterA#copy tftp flash
    System flash directory:
    Address or name of remote host [10.10.3.28]? ← địa chỉ TFTP server
    Source file name? ← tên của IOS muốn nạp
    Destination file name?
    Accessing file tftp://...
    Erase flash device before writing? [confirm] ← Nhấn Enter tại đây để cho phép xóa flash trước khi ghi file mới
    Erasing the flash filesystem will remove all files! Continue? [confirm]
    Erasing device ...
    eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ee ...erased
    Erase of flash: complete
    Copy ...
    as ...? [yes/no]y
    Loading
    !!!!!!!!!!!!!!!!!!!!
    [OK - 12080536/24160256 bytes]
    Verifying checksum... OK (0xECAC)
    12080536 bytes copied in 100.524 secs (120805 bytes/sec)

    Sau khi nạp xong hệ điều hành cho router, nên kiểm tra lại tình trạng các file hiện có trong flash bằng show flash hoặc dir flash:
    Last edited by tranmyphuc; 25-08-2008, 10:17 PM.
    Email : vnpro@vnpro.org
    ---------------------------------------------------------------------------------------------------------------
Trung Tâm Tin Học VnPro
149/1D Ung Văn Khiêm P25 Q.Bình thạnh TPHCM
Tel : (08) 35124257 (5 lines)
Fax: (08) 35124314

Home page: http://www.vnpro.vn
Support Forum: http://www.vnpro.org
- Chuyên đào tạo quản trị mạng và hạ tầng Internet
- Phát hành sách chuyên môn
- Tư vấn và tuyển dụng nhân sự IT
- Tư vấn thiết kế và hỗ trợ kỹ thuật hệ thống mạng

Network channel: http://www.dancisco.com
Blog: http://www.vnpro.org/blog

  • #2
    Em dùng rouetr Cisco 878 K9 nhưng bị hỏng mất ISO, bây giờ nó boot từ ROM mode. Mọi người có thể giúp em cách nạp trở lại ISO với. Cảm ơn mọi người.

    Comment


    • #3
      Originally posted by hoang_nhsoft View Post
      Em dùng rouetr Cisco 878 K9 nhưng bị hỏng mất ISO, bây giờ nó boot từ ROM mode. Mọi người có thể giúp em cách nạp trở lại ISO với. Cảm ơn mọi người.
      Vậy bạn setup IOS theo kiểu Xmodem, bạn chỉ cần send file ISO (right-click vào màn hình Terminal rồi send file)
      Kiểu này rất chậm, hơn nữa bạn phải vào Rom để thiết lập cấu hình thanh ghi(chọn tốc độ send lớn (default=9600)).
      Bạn search trong Forum sẽ có bài cụ thể.
      Chúc học tốt !!!
      Doan Quang Hoa (Mr.)
      E-mail : hoadqtk4@gmail.com
      Y!M : hoadq_tk4
      Phone : 0916.816.527
      CCNP, CCSP

      Comment

      • Working...
        X