我正在通过telnet(实际上是PuTTY)使用Cisco路由器,而且我是ios的新手。
我正在慢慢掌握它,但有一个非常基本的问题:
我已经发出了show running-config命令并将结果保存到一个文本文件中。 我以后可以通过将此文件粘贴到telnet来恢复路由器configuration吗? 它是否会接受整个configuration并返回到目前的状态?
对不起,我知道这是一个非常愚蠢的问题:-)
这样做你会错过一些事情。 最好的select是将configuration复制到tftp服务器,并在必要时从那里恢复
复制running-config tftp:
恢复
configurationreplacetftp:// servername / config
从备份恢复configuration文件的正确方法是:
copy tftp://path/to/config startup-config reload
如果你复制到运行configuration,你会实际上合并运行configuration。 你会select一些你不想要的元素。
一些较新的路由器有一个命令来replace运行configuration批发与外部configuration,但确切的命令转义我此刻。