不用路由器了,怎么恢复用之前的设置?
- 提问者网友:太高姿态
- 2021-06-02 18:45
- 五星知识达人网友:独钓一江月
- 2021-06-02 19:25
拔掉电源,等1分钟,然后插上,再拿牙签查到猫后面的reset孔里,一直按着,直到前面的灯,全熄了又闪,为止、
- 1楼网友:由着我着迷
- 2021-06-02 23:07
换猫.请电信(惑网通)的换猫.
- 2楼网友:荒野風
- 2021-06-02 22:02
猫的问题。
- 3楼网友:雾月
- 2021-06-02 20:58
一般情况下,你可以使用存放于路由器NVRAM中的startup-config(起始配置),来替换running-config(当前配置)。 要这么做,你需要执行下述命令:
configure replace nvram:startup-config
不过,最后一个参数可以是任何一个有效的config文件,只要它是可接受的Cisco IOS URL格式。 比方说,这个config文件的实际存放地,可以是在某台TFTP, FTP, HTTP, RCP或者SCP服务器上。 这种情况下,命令可能就会变成下述这样:
configure replace t ftp://192.168.1.107/config-bu
附件A提供了一个使用Configure replace命令的基本示例。 首先,我关闭了我的FastEthernet4接口,然后我使用了configure replace nvram:startup-config命令,来用我的起始设置(startup-configuration)替换掉当前设置(running-configuration)。 虽然这是一个明显简化的示例,但是还是展现了命令的工作方式。
Configure replace命令是非常有用的——它常常能最小化停工时间,又能让你恢复到变化之前的起点。 附件A:
! showing the current configuration for the Fa4 interface R1-871W#sh run int fa4 Building configuration... Current configuration : 71 bytes ! interface FastEthernet4 no ip address duplex auto speed auto end ! shutting down the Fa4 interface R1-871W#conf t Enter configuration commands, one per line. End with CNTL/Z. R1-871W(config)# int fa4 R1-871W(config-if)# shutdown R1-871W(config-if)#^Z R1-871W# *Aug 10 13:06:43.269: %LINK-5-CHANGED: Interface FastEthernet4, changed state to administratively down *Aug 10 13:06:43.273: %SYS-5-CONFIG_I: Configured from console by console *Aug 10 13:06:44.269: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet4, changed state to down R1-871W# ! verifying that the Fa4 interface is shutdown R1-871W#sh run int fa4 Building configuration... Current configuration : 81 bytes ! interface FastEthernet4 no ip address shutdown duplex auto speed auto end ! replacing the current config with the saved config R1-871W# configure replace nvram:startup-config This will apply all necessary additions and deletions to replace the current running configuration with the contents of the specified configuration file, which is assumed to be a complete configuration, not a partial configuration. Enter Y if you are sure you want to proceed. ? [no]: y *Aug 10 13:06:55.189: Rollback:Acquired Configuration lock. Total number of passes: 1 Rollback Done ! notice the "rollback done" message and how the interface immediately started coming up (below) R1-871W# *Aug 10 13:06:59.245: %LINK-3-UPDOWN: Interface FastEthernet4, changed state to up *Aug 10 13:07:00.245: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet4, changed state to up R1-871W# ! verifying that the interface is now set to up R1-871W# sh run int fa4 Building configuration... Current configuration : 71 bytes ! interface FastEthernet4 no ip address duplex auto speed auto end
- 4楼网友:迷人又混蛋
- 2021-06-02 19:41