存储服务器设置和文件对拷,思科CNNA中文教程-第一章路由器配置和文件管理(上)...
第一章 路由器配置和文件管理
1.1 通过TFTP来配置路由器
提问:使用TFTP来加载路由器的配置文件
回答:
Router1#copy tftp://172.25.1.1/NEWCONFIG running-congfig
Destination filename [running-config]?
Accessing tftp://172.25.1.1/NEWCONFIG...
Loading NEWCONFIG from 172.25.1.1 (via FastEthernet0/0.1): !
[OK - 24 bytes]
24 bytes copied in 0.192 secs (125 bytes/sec)
Router1#
注释 IOS12.0 版本以前使用的configure network命令,另外拷贝至路由器的配置文件应该以End结尾,否则会出现下面的错误提示信息:%PASER-4-BADCFG: Unexpected end of configuration file.
1.2 保存路由器配置到服务器
提问:保存路由器当前配置文件到TFTP服务器作为备份
回答:
Freebsd% touch /tftpboot/router1-confg
Freebsd% chmod 666 /tftpboot/routerl-config
Freebsd% telnet Router1
Trying 172.25.1.5...
Connected to Routerl.
Escape character is '`]'.
User Access Verification
Password:
Routerl>enable
Password:
Router1#copy running-config tftp://172.25.1.1/router1-confg
Address or name of remote host [172.25.1.1]?
Destination filename [router1-confg]?
!!!
9640 bytes copied in 3.956 secs (2437 bytes/sec)
Router1#
注释:确保TFTP服务器上的目录和文件可写
1.3 使用远端配置文件启动路由器
提问:使用另外的配置文件来启动路由器
回答:
Router1#configure terminal
Enter configuration commands,one per line.End with CNTL/Z.
Router1(config)#service config
Router1(config)#boot network tftp Network-auto 172.25.1.1
Router1(config)#boot host tftp Router8-auto 172.25.1.1
Router1(config)#end
Router1#
注释:service config缺省是关闭的,如果打开缺省会去查找的文件名为network-config,cisconet.cfg,router1-confg,router1.cfg等
1.4 保存大于NVRAM大小的配置文件
提问:配置文件过大,超过了可用的NVRAM大小
回答:
Router1#configure terminal
Enter configuration commands,one per line. End with CNTL/Z.
Router1(config)#service compress-config
Router1(config)#end
Router1#
注释:可以使用show startup-config来验证
Router1#show starup-config
Using 5068 out of 29688 bytes,uncompressed size = 9969 bytes
Uncompressed configuration from 5068 bytes to 9969 bytes
1.5 清除启动配置文件
Router1#erase nvram: (erase starup-config)
Erasing the nvram filesystem will remove all files! Continue? [confirm]
[OK]
Erase of nvram: complete
Router1#reload
System configuration has been modified.Save?[yes/no]:no
Proceed with reload? [confirm]
注释:无
1.6 加载新的IOS镜像
提问:升级当前的IOS
回答:
Router1#copy tfty://172.25.1.1/c2600-ik9o3s-mz.122-12a.bin flash:
Destination filename [c2600-ik9o3s-mz.122-12a.bin]?
Accessing tftp://172.25.1.1/c2600-ik9o3s-mz.122-12a.bin...
Erase flash:before copying?[confirm]
Erasing the flash filesystem will remove all files! Continue?[confirm]
Erasing device...eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee...erased
Erase of flash:complete
Loading c2600-ik9o3s-mz.122-12a.bin from 172.25.1.1(via FastEthernet0/0.1):!!!!!!!!!!!!!!
[OK - 11135588 bytes]
Verifying chechsum... OK (0xE643)
11135588 bytes copied in 82.236 secs (135410 bytes/sec)
Router1# reload
Proceed with reload?[confirm]
注释:无
1.7 以另一个IOS镜像文件启动
提问:使用其它的IOS镜像启动
回答:
Router1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)#boot system flash:c3620-jk9o3s-mz.122-7a.bin
Router1(config)#boot system flash:c3620-jos56i-l.120-11.bin
Router1(config)#boot system slot0:c3620-ik9s-mz.122-13.bin
Router1(config)#boot system rom
Router1(config)#end
注释:boot system命令的顺序非常重要,如果使用新的IOS,建议先进行no boot system的操作。从IOS12.3(4)T后思科引入了boot markers的概念,所有的boot system 命令都会放在boot markers 之间,比如:
Router1#show running-config | include `boot
boot-start-marker
boot system slot0:c3745-ipbasek9-mz.124-6.T.bin
boot system slot0:c3745-ipbasek9-mz.124-7.bin
boot system flash:
boot-end-marker
Router1#
1.8 通过网络启动
提问:IOS太大本地Flash无法保存,使用保存在网络上的IOS启动
回答:
Router1#configure terminal
Enter configuration commands,one per line. End with CNTL/Z.
Router1(config)#boot system tftp c2500-io-l.122-7a.bin 172.25.1.1
Router1(config)#boot system flash
Router1(config)#end
Router1#
注释:无
1.9 拷贝IOS镜像文件到服务器
提问:保存一份IOS到TFTP服务器作为备份
回答:
Freebsd% touch /tftpboot/c2600-ik9o3s-mz.122.12a.bin
Freebsd% chmod 666 /tftpboot/c2600-ik9o3s-mz.122-12a.bin
Freebsd% telnet Router1
Trying 172.25.1.5...
Connected to Router1.
User Access Verification
Password:
Router1>enable
Password:
Router1#copy flash:c2600-ik9o3s-mz.122-12a.bin tftp
Address or name of remote host []?172.25.1.1
Destination filename [c2600-ik9o3s-mz.122-12a.bin]?
!!!!!!
11135588 bytes copied in 52.588 secs (211752 bytes/sec)
Router1#
注释
1.10 通过控制台口拷贝IOS镜像文件
提问:通过控制台口和AUX端口来加载IOS
回答:
Router1#copy xmodem:slot1:
****WARNING****
x/ymodem is a slow transfer protocol limited to the current speed
setting of the auxiliary/console ports.The use of the auxilary
port for this download is strongly recommended.
During the course of the download no exec input/output will be
available.
------------**********--------------
存储服务器设置和文件对拷,思科CNNA中文教程-第一章路由器配置和文件管理(上)...相关推荐
- 计算机网络实验(思科模拟器Cisco Packet Tracer)——路由器配置
目录 前言 实验 结语 前言 本次实验将使用思科模拟器Cisco Packet Tracer来完成路由器配置的实验,将通过几个例子来讲述. 实验 例.使用以下设备完成两个校区的相互通讯,共享资源,每个 ...
- Packet Tracer 思科模拟器入门教程 之十三 路由器OSPF动态路由配置
实验目的 掌握OSPF协议的配置方法: 掌握查看通过动态路由协议OSPF学习产生的路由: 熟悉广域网线缆的链接方式: 实验背景 假设校园网通过一台三层交换机连到校园网出口路由器上,路由器再和校园外的另 ...
- 思科—计算机网络课程设计—第一章路由概念测试
题目1 当 PC0 ping Web 服务器时,从 R2 到 Web 服务器的帧中,哪一个 MAC 地址是源 MAC 地址? 选择一项: 0001.43EA.3E03 0001.9756.6278 0 ...
- 思科网计算机网络第一章测验,思科计算机网络课程设计——第一章路由概念测试答案...
第一题: 哪两种说法是对静态路由的正确描述?(选择两项.) 选择一项或多项: ●在接口配置模式下创建. ●在网络发生变更时,需要手动重新配置才能反映发生的变更. ●自动成为路由器的默认网关. ●这些路 ...
- 思科计算机网络 | 第一章路由器概念测试题(一)
题目1 思科路由器的哪个功能允许转发没有特定路由的流量? 选择一项: 下一跳 最后选用网关 路由来源 传出接口 反馈 Refer to curriculum topic: 1.2.2 默认静态路由用作 ...
- 思科《计算机网络》第一章测试答案
- Packet Tracer 思科模拟器入门教程 之六 三层交换机基本配置
实验目标 理解三层交换机的基本原理: 掌握三层交换机物理端口开启路由功能的配置方法: 实验背景 公司现有1台三层交换机,要求你进行测试,该交换机的三层功能是否工作正常. 技术原理 开启路由功能 Swi ...
- 计算机中文件夹怎么上密码,怎样设置电脑文件夹密码
怎么给电脑文件夹加密?如何加密电脑文件?有的时候会把一些私密文件想加密.那怎么加密文件呢?接下来是小编为大家收集的怎样设置电脑文件夹密码,欢迎大家阅读. 设置电脑文件夹密码方法一 压缩软件法 首先压缩 ...
- Allegro的PCB封装包含哪些文件,指定PCB封装库路径教程
Allegro的PCB封装包含哪些文件,指定PCB封装库路径教程 第一步:Allegro的封装包含的文件有dra文件.psm文件.pad文件.device文件(如果是第三方网表才需要). 第二步:打开 ...
最新文章
- MFC如何打开文件路径
- Android4.2以后,多屏幕的支持 学习(一)
- mysql基本操作 [http://www.cnblogs.com/ggjucheng/archive/2012/11/03/2752082.html]
- 从脑电图(EEG)中提取稳定的模式进行识别
- [SOJ] 简单哈希
- CTFshow 文件包含 web82
- css 样式三元运算_20条书写CSS代码的建议
- (十四)消息中间件MQ详解及四大MQ比较
- js层级选择框样式_【JavaWeb】85:jQuery的各种选择器
- docker mysql日志_面试官问:了解Mysql主从复制原理么?我呵呵一笑
- 多目标进化算法(MOEA)概述
- IP 伪装简易使用说明
- 写一些不属于自己的文字
- 计算机组装的硬件配置及报价,2021组装电脑配置清单及价格表说明
- 计算机位置不可用d 桌面,win10系统开机提示desktop不可用位置如何解决
- 2022腾讯QQ春节红包活动 虎跃星辰玩法总攻略
- 好好说话之Fastbin Attack(1):Fastbin Double Free
- 【3小时学会C语言】横向对比/纵向剖析,轻松学习C语言
- CSS新招式,临时记一下
- Contest20140709 testA 树型DP