Tuesday, 18 September 2012

Junos: automatic rollback How To

From your telnet session on JUNOS, delete the telnet statement under system services level and commit in a way that if you lose your connection to JUNOS, the configuration is automatically rolled back after 1 minute.

Exit both configuration and operational modes to go back to JUNOS. Try to telnet again to 192.168.1.2; this should not work. Wait about 2 minutes (take a coffee break) and try again. This time it should work as your previous commit should have been rolled back.

Solution

[edit]
 junuser@JUNOS2# delete system services telnet
[edit]
 junuser@JUNOS2# commit confirmed 1
 commit confirmed will be automatically rolled back in 1 minutes unless confirmed
 commit complete
# commit confirmed will be rolled back in 1 minute
 [edit]
 junuser@JUNOS2# exit
 Exiting configuration mode
# commit confirmed will be rolled back in 1 minute
 junuser@JUNOS2> exit

No comments:

Post a Comment

loading...