位置:51电子网 » 技术资料 » 通信网络

路由器启动配置文件丢失的解决

发布时间:2008/5/29 0:00:00 访问次数:488

  在路由器启动时,如果ios加载成功,但对路由器的各个模块、各个接口不能初始化,则说明没能在nvram上成功地找到启动配置文件。启动配置文件丢失后,路由器可以正常启动,但是不能对路由器的各个模块进行具体配置。启动配置文件的重新下载是通过tftp进行的。和ios丢失的处理方法一样建立笔记本电脑和路由器之间的连接,并在笔记本电脑上启动tftp服务。登录路由器,进入管理模式后,先设置en0端口的ip地址。

  ssr(config)# interface add ip 
  en0 address-netmask 10.10.10.1/255.255.255.0

  “interface add ip”这个命令是为现有的接口配置第二个地址,因为en0这个管理接口是系统默认已经建好的回环接口。

  此处的“en0”表示的网络接口就是控制模块的“10/100m mgmt”以太网管理端口,在配置模式下,使用“copy”命令复制配置文件。

  ssr# copy tft-server to startup (在管理模式下)

  tftp server ? 10.10.10.2  (输入tftp服务器的地址)

  source filename? ssr-20030327 (输入保存在tftp服务器根目录下配置文件的文件名)

  are you sure you want to overwrite the startup configuration [no]? y

  ##################################

  %tftp-i-xferrate, received 17263 bytes in 0.0 seconds

  %config-w-startnotact, 
  warning-startup configuration commands are not active, 
  use 'copy startup to active' to make them active.

  系统提示:如果要把配置文件激活,请使用命令“copy startup to active”,也可以重启路由器。

  ssr# copy startup to active

  ……………………………………

  系统正在删除当前的活动配置,完毕后将重新加载恢复的配置文件。把tftp服务器上的配置文件复制到ssr上,除了使用“copy tftp-server to startup”命令之外,还可以使用“copy tftp-server to active”命令把配置文件复制到ssr的内存中。系统立即删除原来内存中的活动配置,并加载新的配置。例如:

  ssr# copy tftp-server to active

  tftp server? 10.10.10.1

  source filename? ssr-20030327

  are you sure you want to erase the active configuration [no]? y

  ##################################

  %tftp-i-xferrate, received 17263 bytes in 0.0 seconds

……

  系统正在删除当前的活动配置,完毕后将重新加载新的配置,但最后还得使用“copy active to startup”把活动配置文件复制到启动配置文件。这样才能在下次启动时,载入恢复的启动配置文件。



  在路由器启动时,如果ios加载成功,但对路由器的各个模块、各个接口不能初始化,则说明没能在nvram上成功地找到启动配置文件。启动配置文件丢失后,路由器可以正常启动,但是不能对路由器的各个模块进行具体配置。启动配置文件的重新下载是通过tftp进行的。和ios丢失的处理方法一样建立笔记本电脑和路由器之间的连接,并在笔记本电脑上启动tftp服务。登录路由器,进入管理模式后,先设置en0端口的ip地址。

  ssr(config)# interface add ip 
  en0 address-netmask 10.10.10.1/255.255.255.0

  “interface add ip”这个命令是为现有的接口配置第二个地址,因为en0这个管理接口是系统默认已经建好的回环接口。

  此处的“en0”表示的网络接口就是控制模块的“10/100m mgmt”以太网管理端口,在配置模式下,使用“copy”命令复制配置文件。

  ssr# copy tft-server to startup (在管理模式下)

  tftp server ? 10.10.10.2  (输入tftp服务器的地址)

  source filename? ssr-20030327 (输入保存在tftp服务器根目录下配置文件的文件名)

  are you sure you want to overwrite the startup configuration [no]? y

  ##################################

  %tftp-i-xferrate, received 17263 bytes in 0.0 seconds

  %config-w-startnotact, 
  warning-startup configuration commands are not active, 
  use 'copy startup to active' to make them active.

  系统提示:如果要把配置文件激活,请使用命令“copy startup to active”,也可以重启路由器。

  ssr# copy startup to active

  ……………………………………

  系统正在删除当前的活动配置,完毕后将重新加载恢复的配置文件。把tftp服务器上的配置文件复制到ssr上,除了使用“copy tftp-server to startup”命令之外,还可以使用“copy tftp-server to active”命令把配置文件复制到ssr的内存中。系统立即删除原来内存中的活动配置,并加载新的配置。例如:

  ssr# copy tftp-server to active

  tftp server? 10.10.10.1

  source filename? ssr-20030327

  are you sure you want to erase the active configuration [no]? y

  ##################################

  %tftp-i-xferrate, received 17263 bytes in 0.0 seconds

……

  系统正在删除当前的活动配置,完毕后将重新加载新的配置,但最后还得使用“copy active to startup”把活动配置文件复制到启动配置文件。这样才能在下次启动时,载入恢复的启动配置文件。



相关IC型号

热门点击

 

推荐技术资料

耳机的焊接
    整机电路简单,用洞洞板搭线比较方便。EM8621实际采... [详细]
版权所有:51dzw.COM
深圳服务热线:13692101218  13751165337
粤ICP备09112631号-6(miitbeian.gov.cn)
公网安备44030402000607
深圳市碧威特网络技术有限公司
付款方式


 复制成功!