网络设备的文件管理

  • 格式:pptx
  • 大小:166.27 KB
  • 文档页数:18

下载文档原格式

  / 18
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

VRP系统文件更新配置-查看剩余存储空间
RTA
G0/0/1 10.1.1.1/24
FTP
FTP 服务器 10.1.1.2/24
<RTA>dir …… 508,248 KB total (2,334 KB free) <RTA>delete /unreserved sd1:/ar2220_v100r006c00.cc ……
网络设备的文件管理
• 网络设备的文件系统 • 文件的管理 • 网络设备软件维护基础
网络设备的文件系统
设备以文件的方式对运行所需的数据进行存储 网络设备通过文件系统管理这些文件 主要文件
• 应用程序文件 • 配置文件 • 日志文件
网络设备的存储方式
CPU
ROM Flash RAM
BootROM程序
配置文件查询
功能 显示当前配置文件 显示保存的配置文件
命令 display current-configuration display saved-configuration
<Huawei>display current-configuration # sysname Huawei …… # Return <Huawei>display saved-configuration # sysname Huawei …… # Return
FileName src private-data.txt wzbk1.cfg
配置文件介绍
• 起始配置与当前配置 • 配置文件是以文本格式保存的命令,默认配
置并不出现在配置文件中 • 配置文件的选择顺序
• 如果用户指定了启动配置文件,且配置文件存在, 则以启动配置文件进行初始化
• 如果用户指定的启动配置文件不存在,则以空配 置进行初始化
<Huawei>dir
Directory of flash:/
Idx Attr
Size(Byte) Date
Time
0 drw-
-
Apr 10 2013 09:30:35
1 -rw-
28
Apr 10 2013 09:31:38
2 -rw-
120 Apr 10 2013 09:32:38
……
32,004 KB total (30,995 KB free)
升级VRP
VRP Version 5.90
VRP Version 5.120
随着VRP版本的更新,VRP支持的特性也越来越多,可根据需求更新 VRP版本。
文件传输
RTA
FTP 服务器
VRP文件 日志文件 配置文件
网络设备可以从服务器获取VRP系统文件,也可以将日志文件、配置文 件保存到服务器作为备份。
NULL
Next startup saved-configuration file:
NULL
……
பைடு நூலகம்
VRP系统文件更新配置-重启设备
RTA
G0/0/1 10.1.1.1/24
FTP
FTP 服务器 10.1.1.2/24
<RTA>reboot Info: The system is now comparing the configuration, please wait. Warning: All the configuration will be saved to the configuration file for the next startup, Continue?[Y/N]:n System will reboot! Continue?[Y/N]:y
G0/0/1 10.1.1.1/24
FTP
FTP 服务器 10.1.1.2/24
<RTA>startup system-software ar2220-v200r003c00spc200.cc
Info: Succeeded in setting the software for booting system
文件传输协议
RTA
RTB
TCP 连接 FTP
FTP 服务器 TFTP 服务器
TFTP(UDP)
常用的文件传输协议有FTP和TFTP两种。
VRP系统文件更新配置-与FTP服务器连通
RTA
G0/0/1 10.1.1.1/24
FTP
FTP 服务器 10.1.1.2/24
<huawei>system-view [huawei]sysname RTA [RTA]interface GigabitEthernet 0/0/1 [RTA-GigabitEthernet0/0/1]ip address 10.1.1.1 24 ……
<RTA>display startup
MainBoard:
Startup system software:
sd1:/ar2220_v200r001c00spc200.cc
Next startup system software:sd1:/ar2220_v200r003c00spc200.cc
Startup saved-configuration file:
当剩余存储空间不足时,可以删除无关的VRP文件或其他文件以释放空 间。
VRP系统文件更新配置-从FTP服务器获取 VRP
RTA
G0/0/1 10.1.1.1/24
FTP
FTP 服务器 10.1.1.2/24
<RTA>ftp 10.1.1.2 Trying 10.1.1.2 ... Press CTRL+K to abort Connected to 10.1.1.2. 220 FTP service ready. User(10.1.1.2:(none)):huawei 331 Password required for huawei. Enter password: 230 User logged in. [ftp]get ar2220-v200r003c00spc200.cc
应用程序文件 起始配置文件(saved-configuration) 日志文件 运行中的操作系统 运行中的配置(current-configuration)
文件系统的操作
• 目录操作
• 创建/删除目录、显示当前工作目录以及显示指 定目录下的文件或目录的信息等
• 文件操作
• 删除文件、恢复删除的文件、彻底删除文件、显 示文件的内容、重命名文件、拷贝文件、移动文 件、显示指定的文件的信息等
VRP系统文件更新配置-从TFTP服务器获取 VRP
RTB
G0/0/1 10.1.1.1/24
TFTP
TFTP 服务器 10.1.1.2/24
<RTA>tftp 10.1.1.2 get ar2220-v200r003c00spc200.cc
VRP系统文件更新配置-指定下次启动时加载 的VRP
RTA
配置文件重置
功能 清除下次启动时加载的配置文件
命令 reset saved-configuration
<Huawei>reset saved-configuration Warning: The action will delete the saved configuration in the device. The configuration will be erased to reconfigure. Continue? [Y/N]:y Warning: Now clearing the configuration in the device. Apr 10 2013 14:43:13-08:00 Huawei %%01CFM/4/RST_CFG(l)[2]:The user chose Y when deciding whether to reset the saved configuration. Info: Succeeded in clearing the configuration in the device.
设备在重启后,将会加载新的VRP系统。
配置文件保存
功能 保存当前配置信息
命令 save
<Huawei>save The current configuration will be written to the device. Are you sure to continue? (y/n)[n]:y It will take several minutes to save configuration file, please wait............... Configuration file had been saved successfully Note: The configuration file will take effect after being activated
• 存储设备操作
• 恢复存储设备的空间、格式化存储设备等
• 设置文件系统的提示方式
文件操作
功能 删除/永久删除文件
恢复删除的文件 彻底删除回收站中的文件
命令 delete /unreserved
undelete reset recycle-bin
<Huawei>delete /unreserved flash:/huawei.txt