Cisco iOS的两种配置文件(思科命令的保存)

Cisco iOS的两种配置文件(思科命令的保存),第1张

一、启动文件(start-up-config)

start-up-config 文件 存放在NVRAM或者Flash里面 启动文件

二、更新文件(running-config)

running-config 文件 存放在RAM

三、配置命令

做完项目要记得保存,养成习惯

两种保存配置方法

特权模式下

1、R1#write

(复制更新文件覆盖启动文件)

2、R1#copy running-config startup-config 
两种文件的查看方法

1、查看当前设备配置(查看当前配置内容):

R1#show running-config

2、查看start-up-config 文件(之前保存的配置内容):

R1#show startup-config
两种删除启动文件方法

(只是删除启动文件,对当前配置不产生影响,但是重启就有事)

R2#erase startup-config
//清除启动配置
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
//删除nvram文件系统将删除所有配置文件!继续吗[确认]
R2#delete flash:config.text  
//删除flash:config.text
Delete filename [config.text]? y
//删除文件名[config.text]? y
Delete flash:y? [confirm]c
//删除flash:y? [确认]c
Delete of flash:y aborted!
//删除flash:y aborted!

(现在设备的启动文件大部分都是保存在flash里面,早期的大部分NVRAM里面,write就是替换config.text 文件)

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/994130.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-21
下一篇 2022-05-21

发表评论

登录后才能评论

评论列表(0条)

保存