uniper NetScreen防火墙配置回退方法 保存之前先查看一下保存在flash中的文件:
netscreen_isg1000-> get file
    flash:/$NSBOOT$.BIN              10154256
    flash:/envar.rec                      142
    flash:/license.key                    364
    flash:/ns_sys_config               108242
    flash:/dhcpservl.txt                    0
先保存一个last-known-good文件到flash中:
netscreen_isg1000-> save config to last-known-good
netscreen_isg1000-> get file
    flash:/$NSBOOT$.BIN              10154256
    flash:/envar.rec                      142
    flash:/license.key                    364
    flash:/ns_sys_config               108242
    flash:/dhcpservl.txt                    0
    flash:/$lkg$.cfg                   108245
当做出了错误修改希望回退到最初的状态,可以执行:
netscreen_isg1000-> exec config rollback
删除保存在flash中的last-known-good文件:
netscreen_isg1000-> delete file flash:/$lkg$.cfg
通过以下命令查看到已成功删除last-known-good文件:
netscreen_isg1000-> get file
    flash:/$NSBOOT$.BIN              10154256
    flash:/envar.rec                      142
    flash:/license.key                    364
    flash:/ns_sys_config               108242
    flash:/dhcpservl.txt                    0