• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

NE16E/08E/05系列路由器配置文件的保存路径说明

2007-01-24 发表
  • 0关注
  • 0收藏 915浏览
粉丝: 关注:

NE16E/08E/05系列路由器配置文件的保存路径说明

 

 

NE16E/08E/05系列路由器由于存储介质既有硬盘(hda1),也有闪存(flash),配置文件缺省到底是保存在硬盘中还是闪存中呢?要是当前目录在硬盘下,敲save命令的话,它会自动更新放在闪存目录下的配置文件吗?还是另外建一个新的配置文件?结论如下,在系统或者用户视图下,敲display startup命令:

1)如果Startup saved-configuration file后边指定的文件为NULL或者已经被删除,则在用户视图下第一次执行save命令时,会提示输入保存文件名,如果文件名前不加绝对路径符的话,缺省保存在flash中;如果输入“hda1:/文件名”,则保存在硬盘中。并且自动把Startup saved-configuration fileNext startup saved-configuration file设为刚刚保存的文件。

2)如果Startup saved-configuration file后边指定的文件存在,则不管在硬盘还是闪存目录下执行save命令,都会直接更新Startup saved-configuration file后边指定的文件,并且不会提示输入保存文件名。

附录:具体实验现象

系统加载完成后,先看一下启动文件及配置文件信息

<Quidway>display startup                                                           

MainBoard:                                                                     

  Configed startup system software:          hda1:/***.***                     

  Startup system software:                   hda1:/***.***                     

  Next startup system software:              hda1:/***.***                     

  Startup saved-configuration file:          flash:/1.zip                             

  Next startup saved-configuration file:     flash:/1.zip

当启动文件已经被不存在时,                                                                

<Quidway>dir                                                                    

Directory of flash:/                                                           

   0   -rw-     10859  Dec 29 2006 09:09:13   paf.txt                          

   1   -rw-      5426  Dec 29 2006 09:09:33   license.txt                      

   2   -rw-     12274  Dec 14 2002 06:17:37   paf.txt.bak                      

   3   -rw-         4  Jan 19 2007 10:24:45   snmpboots                        

   4   -rw-      1448  Jan 09 2007 15:43:28   test.cfg                                                  

7493 KB total (7451 KB free)  

可以看到flash:/1.zip已经被删除了,这时候进行保存操作

<Quidway>save                                                                  

The router configurations will be written to the device.                        

Are you sure?[Y/N]y                                                            

 Please input the file name(*.cfg,*.zip)[vrpcfg.zip]:2.cfg                    

Now saving current configuration to the device.                                

Please wait for a while...                                                     

...................................

会提示敲入保存文件名,保存后,可以看到保存在flash里边

<Quidway>dir                                                                   

Directory of flash:/                                                            

   0   -rw-     10859  Dec 29 2006 09:09:13   paf.txt                          

   1   -rw-      5426  Dec 29 2006 09:09:33   license.txt                      

   2   -rw-     12274  Dec 14 2002 06:17:37   paf.txt.bak                      

   3   -rw-         4  Jan 19 2007 10:24:45   snmpboots                        

   4   -rw-      1448  Jan 09 2007 15:43:28   test.cfg                         

   5   -rw-       590  Jan 24 2007 16:13:56   2.cfg                           

7493 KB total (7451 KB free)                                                   

这时候启动文件信息也自动变化,可以看到配置文件信息已经修改                                            

<Quidway>dis startup                                                            

MainBoard:                                                                     

  Configed startup system software:          hda1:/***.***                     

  Startup system software:                   hda1:/***.***                     

  Next startup system software:              hda1:/***.***                     

  Startup saved-configuration file:          flash:/2.cfg                     

  Next startup saved-configuration file:     flash:/2.cfg    

要是清空配置文件信息了

<Quidway>reset saved-configuration                                             

This will delete the configuration in the flash memory.                        

The router configurations will be erased to reconfigure.                       

Are you sure?[Y/N]y                                                            

Now clearing the configuration in the device.                                  

Please wait for a while...

<Quidway>display startup                                                            

MainBoard:                                                                     

  Configed startup system software:          hda1:/***.***                     

  Startup system software:                   hda1:/***.***                      

  Next startup system software:              hda1:/***.***                     

  Startup saved-configuration file:          NULL                              

  Next startup saved-configuration file:     flash:/2.zip

再执行save操作

<Quidway>save                                                                   

The router configurations will be written to the device.                       

Are you sure?[Y/N]y                                                            

 Please input the file name(*.cfg,*.zip)[vrpcfg.zip]:hda1:/3.cfg               

Now saving current configuration to the device.                                

Please wait for a while...                                                     

....................                                                           

 Saved the current config to mainboard device successfully

<Quidway>display startup                                                           

MainBoard:                                                                      

  Configed startup system software:          hda1:/***.***                     

  Startup system software:                   hda1:/***.***                     

  Next startup system software:              hda1:/***.***                     

  Startup saved-configuration file:          hda1:/3.cfg                       

  Next startup saved-configuration file:     hda1:/3.cfg

<Quidway>dir                                                                   

Directory of hda1:/  

   0   -rw-    121696  Jan 17 2002 08:47:10   matnlog.dat                      

   1   drw-         -  Jan 14 2002 05:38:44   logfile                          

   2   -rw-  10681500  Jun 16 2000 07:08:52   ***.***                          

   3   -rw-   7120036  May 14 2001 09:27:00   ***.***                          

   4   -rw-  10102748  Oct 10 2001 10:02:44   ***.***

   5   -rw-        28  Jan 14 2002 05:53:06   private-data.txt                 

   6   -rw-   7178964  Oct 12 2001 04:43:54   ***.***                          

   7   -rw-  10317588  Nov 22 2001 00:57:12   ***.***  

   8   -rw-  14694354  Nov 26 2001 06:34:00   ***.***

   9   -rw-  14463428  Jan 14 2002 00:04:44   ***.***                 

   10  -rw-         0  Jan 14 2002 00:29:26   ntuser.dat                        

   11  -rw-   7120036  Jan 17 2002 08:37:24   ***.***                  

   12  -rw-   7233020  Jan 17 2002 08:48:48   ***.***                     

   13  drw-         -  Dec 31 2002 07:00:52   backup                           

   14  -rw-       590  Jan 24 2007 16:38:20   3.cfg   

19525472 KB total (19417616 KB free)

要是配置文件存在并且没有被清空的情况下,执行save命令

<Quidway>save                                                                  

The router configurations will be written to the device.                       

Are you sure?[Y/N]y                                                             

Now saving current configuration to the device.                                

Please wait for a while...                                                     

.....................................................                           

 Saved the current config to mainboard device successfully     

可以看到并不会提示输入存储文件名,而是直接更新在display startup中看到的Startup saved-configuration file后边指定的文件,与在哪个目录下操作没有关系。

若您有关于案例的建议,请反馈:

作者在2007-01-29对此案例进行了修订
0 个评论

该案例暂时没有网友评论

编辑评论

举报

×

侵犯我的权益 >
对根叔知了社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 pub.zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔知了社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作