免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5535 | 回复: 7
打印 上一主题 下一主题

cisco经典配置第一集:)文件系统方面 [复制链接]

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2002-06-27 17:17 |只看该作者 |倒序浏览
相应peng的号召,所以我起了这个名字的主题。但是不知道是否经典:)
首先是文件系统方面
How to Download a Software Image to a Cisco 2600 via TFTP Using the tftpdnld ROMMON Command


This document explains how to download a software image to a Cisco 2600 using Trivial File Transfer Protocol (TFTP) over the first LAN port using the tftpdnld ROMMON command.

Notes:

    * The ROMMON TFTP transfer works on the first LAN port only&#59; however, for the Cisco 2612, you can choose the Token Ring or Ethernet port.

    * You can only download files to the router. You cannot use ROMMON TFTP to get files from the router.

    * Does not support source route bridging on Token Ring ports.

Operation

First, you must set ROMMON environment variables prior to the TFTP download. All variable names are case sensitive.

You can view the ROMMON environment variables by using the set command, as shown below:

rommon 3 >; set PS1=rommon ! >; IP_ADDRESS=172.18.16.76
    IP_SUBNET_MASK=255.255.255.192
    DEFAULT_GATEWAY=172.18.16.65
    TFTP_SERVER=172.18.16.2
    TFTP_FILE=quake/rel22_Jan_16/c2600-i-mz

The variables to set for tftpdnld are shown below:

usage: tftpdnld
       Use this command for disaster recovery only to recover an image via TFTP.
       "tftpdnld" has no arguments.  Monitor variables are used for arguments.
       (Syntax: "VARIABLE_NAME=value" and use "set" to show current variables.)
       "ctrl-c" or "break" stops the transfer before flash erase begins.

       The following variables are REQUIRED to be set for tftpdnld:
                 IP_ADDRESS: The IP address for this unit
             IP_SUBNET_MASK: The subnet mask for this unit
            DEFAULT_GATEWAY: The default gateway for this unit
                TFTP_SERVER: The IP address of the server to fetch from
                  TFTP_FILE: The filename to fetch

       The following variables are OPTIONAL:
               TFTP_VERBOSE: Print setting. 0=quiet, 1=progress(default), 2=verbose
           TFTP_RETRY_COUNT: Retry count for ARP and TFTP (default=7)
               TFTP_TIMEOUT: Overall timeout of operation in seconds (default=2400)
              TFTP_CHECKSUM: Perform checksum test on image, 0=no, 1=yes (default=1)
     rommon 14 >;

The variables to set for Token Ring are shown below:

TR_1E1R_PORT On the Cisco 2612, this variable sets the Token Ring or Ethernet port.
0 = use Ethernet port
1 = use Token Ring port
Default is 0
TR_SPEED_MODE For a Token Ring port, this variable sets the ring speed and duplex mode.
0 = 4 Mbps half-duplex mode
1 = 4 Mbps full-duplex mode
2 = 16 Mbps half-duplex mode
3 = 16 Mbps full-duplex mode
Default is 2

The variables to set for Fast Ethernet are shown below:

FE_SPEED_MODE 0 = 10 Mbps half-duplex mode
1 = 10 Mbps full-duplex mode
2 = 100 Mbps half-duplex mode
3 = 100 Mbps full-duplex mode
4 = auto-negotiation
Default is 4

You must use the sync command to save ROMMON environment variables to nonvolatile RAM (NVRAM).
Example

rommon 16 >; IP_ADDRESS=171.68.171.0
rommon 17 >; IP_SUBNET_MASK=255.255.254.0
rommon 18 >; DEFAULT_GATEWAY=171.68.170.3
rommon 19 >; TFTP_SERVER=171.69.1.157
rommon 20 >; TFTP_FILE=c2600-is-mz.113-2.0.2.Q
rommon 21 >; tftpdnld

IP_ADDRESS: 171.68.171.0
           IP_SUBNET_MASK: 255.255.254.0
          DEFAULT_GATEWAY: 171.68.170.3
              TFTP_SERVER: 171.69.1.129
                TFTP_FILE: c2600-is-mz.113-2.0.3.Q

     Invoke this command for disaster recovery only.
     WARNING: all existing data in all partitions on flash will be lost!
     Do you wish to continue? y/n:  [n]:  y

Receiving c2600-is-mz.113-2.0.3.Q from 171.69.1.129 !!!!!.!!!!!!!!!!!!!!!!!!!.!!
     File reception completed.
     Copying file c2600-is-mz.113-2.0.3.Q to flash.
     Erasing flash at 0x607c0000
     program flash location 0x60440000
     rommon 22 >;


How to Download a Software Image to a Cisco 2600 through the Console Port Using the xmodem ROMMON Command

You can download a software image to a Cisco 2600 through the console port using the xmodem [-cyr] [filename] ROMMON command, where:

    * -c specifies CRC-16

    * -y specifies YMODEM protocol

    * -r copies the image to RAM. (It does not copy to Flash. Leave off the -r to copy the image to Flash.)

Notes:

    * The ROMMON XMODEM/YMODEM transfer works on the console port only.

    * You can only download files to the router. You cannot use XMODEM/YMODEM to get files from the router.

Example

rommon 1 >; xmodem -c c2600-is-mz.113-4.T1
Do not start the sending program yet...
              File size           Checksum   File name
        4466148 bytes (0x4425e4)   0x7a90    c2600-is-mz.113-2.0.3.Q

     WARNING: All existing data in bootflash will be lost!
     Invoke this application only for disaster recovery.
     Do you wish to continue? y/n  [n]:  y
Ready to receive file c2600-is-mz.113-4.T1 ...
     Erasing flash at 0x607c0000
     program flash location 0x60440000
     Download Complete!
     program load complete, entry point: 0x80008000, size: 0x4412cc
     Self decompressing the image : ################################################]


论坛徽章:
0
2 [报告]
发表于 2002-07-04 11:53 |只看该作者

cisco经典配置第一集:)文件系统方面


收下了

论坛徽章:
0
3 [报告]
发表于 2002-07-07 10:35 |只看该作者

cisco经典配置第一集:)文件系统方面

阁下是美国农民吧,看得我好辛苦,多打点中国字不好吗?

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
4 [报告]
发表于 2002-07-07 11:24 |只看该作者

cisco经典配置第一集:)文件系统方面

  就硬着头皮看吧,时间长了,就没什么困难了,一举两得,即学技术,又学英语。
  你占便宜了!!!!!:)

论坛徽章:
0
5 [报告]
发表于 2002-07-07 11:40 |只看该作者

cisco经典配置第一集:)文件系统方面

感觉看起来挺复杂的,慢慢看吧

论坛徽章:
0
6 [报告]
发表于 2002-07-07 23:10 |只看该作者

cisco经典配置第一集:)文件系统方面

哈哈
我希望咱们版里多点英文的资料,最好能有朋友再翻译一下,我的英语菜,在学习,抓紧提高.
我们能比看,那样提高快

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
7 [报告]
发表于 2002-07-08 17:49 |只看该作者

cisco经典配置第一集:)文件系统方面

那我肯定完蛋了,我过去是学习俄语的。:(
关键是新的技术都是英文的。没有办法。:(大家对付看吧。

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
8 [报告]
发表于 2002-07-08 17:50 |只看该作者

cisco经典配置第一集:)文件系统方面

对了,忘记说了我是中国农民:)地道的中国农民:)
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP