用JUNOS恢复Juniper路由器原厂默认配置

juniper-routers-junos-load-factory-default-configuration
Cisco路由器上使用IOS恢复原厂默认配置一样,假如有必要,你也可以通过JUNOS CLIload factory default命令恢复Juniper路由器甚至ex交换机的原厂默认配置load factory default将清空当前JUNOS的活跃配置以及除root用户以外的所有用户帐号。另外root用户的登录密码同时被清除:无密码直接回车登录。在commit激活JUNOS原厂默认配置之前,你最好也同时设定root用户的登录密码。

[edit]
nigel@junos# load factory-default
warning: activating factory configuration

[edit]
nigel@junos# show
system {
    syslog {
        user * {
            any emergency;
        }
        file messages {
            any notice;
            authorization info;
        }
        file interactive-commands {
            interactive-commands any;
        }
    }
}

使用JUNOS的show | display set命令了解如何通过set命令实现原厂默认配置。

[edit]
nigel@junos# show | display set
set system syslog user * any emergency
set system syslog file messages any notice
set system syslog file messages authorization info
set system syslog file interactive-commands
interactive-commands any

One thought on “用JUNOS恢复Juniper路由器原厂默认配置

  1. JUNOS Rescue Configuration(救援配置) « JUNIPER JUNOS & CISCO IOS 互联路由

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s