在用户视图下,执行命令reset saved-configuration,清除当前加载的配置文件的镇皮枣内容。
如果交换机当前启动与下次启动的配置文件一致,执行该命令将同时清除这两个配置文件。交换机下次启动采用缺省配置文件。
如果交换机当前启动与下次启动的配置文件不一致,执行该命令将清除当前启动的配置文件。
如御拆果交换机当前启动的配置文件为空,执行该命令后,系统将提示配置文件不存在。
配置文件被清除后,如果不使用startup saved-configuration configuration-file命令重新指定含有正确配置信息的配置文件,或者不使用save命令保存配置文件,则交换机下次启动时,将采用缺省的配握空置参数进行初始化。
具体操作如下:
Warning: The action will delete the saved configuration in the device.
The configuration will be erased to reconfigure. Continue? [Y/N]:y //这里问你确认要清除配置吗?选Y
Warning: Now clearing the configuration in the device.
Jul 26 2015 17:42:59-08:00 Huawei %%01CFM/4/RST_CFG(l)[1]:The user chose Y when deciding whether to reset the saved configuration.
Info: Succeeded in clearing the configuration in the device. //这边提示成功清除设备配置
Info: The system is now comparing the configuration, please wait.
Warning: All the configuration will be saved to the configuration file for the ne
xt startup:, Continue?[Y/N]:n //这里问你是否要在重启前保存配置文件,这边记得要选N,不然刚清除的配置又被写入。
Info: If want to reboot with saving diagnostic information, input 'N' and then ex
ecute 'reboot save diagnostic-information'.
System will reboot! Continue?[Y/N]:y //这里输入Y确认重启
重启完成后设备会加载默认配置
华袜答为s2326TP-EI恢复出厂设置方法:使用命令如胡恢复。
删除配置:reset saved-configuration和delete
出接口nat配置:
[Router]acl 1 match-order auto
[Router-acl1]rule normal permit source 10.0.0.0 0.0.0.255
[Router-acl1]rule normal deny source any
[Router]interface Ethernet0
[Router-Ethernet0]ip address 10.0.0.1 255.255.255.0
[Router]interface Ethernet1
[Router-Ethernet1]ip address 202.1.1.1 255.255.255.0
[Router-Ethernet1]nat outbound 1 interface
地址池渣好拦nat配置:
[Router]nat address-group 1 202.1.1.1 202.1.1.6 pool1
[Router]acl 101 acl 1 match-order auto
[Router-acl1] rule normal permit source 10.0.0.0 0.0.0.255
[Router-acl1]rule normal deny source any
[Router]interface Ethernet0
[Router-Ethernet0]ip address 10.0.0.1 255.255.255.0
[Router] interface Ethernet1
[Router-Ethernet1] ip address 202.1.1.1 255.255.255.0
[Router-Ethernet1]nat outbound 1 pool pool1
我从来没听说给交换机恢复出厂设置的明举?那当初你拿尺是怎么登陆进去交换机设消槐高置的呢?如果能进去就应该有恢复出厂的选项