{"id":813,"date":"2016-01-15T13:46:34","date_gmt":"2016-01-15T09:46:34","guid":{"rendered":"https:\/\/www.vassiliev.me\/?p=813"},"modified":"2020-03-31T10:21:22","modified_gmt":"2020-03-31T06:21:22","slug":"813","status":"publish","type":"post","link":"https:\/\/www.vassiliev.me\/?p=813","title":{"rendered":"JunOS \u2014 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b"},"content":{"rendered":"<p>\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u0440\u0438 \u0440\u0435\u0436\u0438\u043c\u0430 \u0440\u0430\u0431\u043e\u0442\u044b:<\/p>\r\n<p>root@juniper% \u2014 shell<br \/>root@juniper&gt; \u2014 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c<br \/>root@juniper# \u2014 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c<\/p>\r\n<p><strong>\u0421\u0431\u0440\u043e\u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438:<\/strong><\/p>\r\n<p>root@srx# load factory-default<br \/><em><br \/>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f root:<\/em><\/p>\r\n<p>root@srx# set system root-authentication plain-text-password<br \/>root@srx# commit<br \/>root@srx&gt; request system reboot<\/p>\r\n<p><strong>\u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438:<\/strong><\/p>\r\n<p>root@srx&gt; request system configuration rescue save<\/p>\r\n<p><strong>\u0423\u0434\u0430\u043b\u044f\u0435\u0442 \u043d\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/strong><\/p>\r\n<p>root@srx&gt; clear system commit<\/p>\r\n<p><strong>\u0412\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f:<\/strong><\/p>\r\n<p>root@srx&gt; request system power-off<\/p>\r\n<p><strong>\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043d\u0435\u043d\u0443\u0436\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432:<\/strong><\/p>\r\n<p>root@srx&gt; request system storage cleanup<\/p>\r\n<p><strong>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043d\u0430 \u043e\u0448\u0438\u0431\u043a\u0438 \u0434\u043e commit:<\/strong><\/p>\r\n<p>root@srx# commit check<\/p>\r\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0441 \u043e\u0442\u043a\u0430\u0442\u043e\u043c \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438:<\/strong><\/p>\r\n<p>root@srx# commit confitmed 100 {\u0432\u0440\u0435\u043c\u044f \u0432 \u043c\u0438\u043d\u0443\u0442\u0430\u0445}<\/p>\r\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438:<\/strong><\/p>\r\n<p>root@srx# commit at 12:00 {\u043f\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u043c\u0443 \u0432\u0440\u0435\u043c\u0435\u043d\u0438}<\/p>\r\n<p><strong>\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0442\u0430\u0431\u043b\u0438\u0446\u044b ARP:<\/strong><\/p>\r\n<p>root@srx# show arp<\/p>\r\n<p><strong>\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 MAC\u043e\u0432:<\/strong><\/p>\r\n<p>root@srx&gt; show ethernet-switching table<br \/><span class=\"hljs-keyword\">root@srx&gt; show<\/span> ethernet-switching <span class=\"hljs-keyword\">table<\/span> | <span class=\"hljs-keyword\">match<\/span> <span class=\"hljs-number\">08<\/span>:<span class=\"hljs-number\">62<\/span>:<span class=\"hljs-number\">66<\/span>:c7:b3:<span class=\"hljs-number\">45<\/span><\/p>\r\n<p><strong>\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 MAC\u043e\u0432 \u043f\u043e \u0432\u043b\u0430\u043d\u0443:<\/strong><\/p>\r\n<p>root@srx# show ethernet-switching table vlan 666<\/p>\r\n<p><b>\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438<\/b><br \/>rroot@srx&gt; monitor traffic interface fe-0\/0\/1 {\u043a\u0430\u043a\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u0438 \u043a\u0443\u0434\u0430 \u0438\u0434\u0443\u0442 \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435}<br \/>root@srx&gt; monitor interface traffic {\u0442\u0440\u0430\u0444\u0438\u043a \u043d\u0430 \u0432\u0441\u0435\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u0445}<\/p>\r\n<p><strong>\u0414\u0435\u0431\u0430\u0433 \u043f\u0435\u0440\u0432\u043e\u0439 \u0444\u0430\u0437\u044b \u0442\u0443\u043d\u043d\u0435\u043b\u044f:<\/strong><br \/>show security ike security-associations<\/p>\r\n<p><strong>\u0414\u0435\u0431\u0430\u0433 \u0432\u0442\u043e\u0440\u043e\u0439\u00a0\u0444\u0430\u0437\u044b \u0442\u0443\u043d\u043d\u0435\u043b\u044f:<\/strong><br \/>show security ipsec security-associations | no-more<\/p>\r\n<p><strong>\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u0435\u0440\u0432\u0443\u044e \u0444\u0430\u0437\u0443 \u0442\u0443\u043d\u043d\u0435\u043b\u044f:<\/strong><br \/>clear security ike security-associations<\/p>\r\n<p><strong>\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0432\u0442\u043e\u0440\u0443\u044e \u0444\u0430\u0437\u0443 \u0442\u0443\u043d\u043d\u0435\u043b\u044f:<\/strong><br \/>clear security ipsec security-associations | no-more<\/p>\r\n<p><strong>\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043d\u0430\u0431\u043e\u0440\u0430 \u043a\u043e\u043c\u0430\u043d\u0434 \u0434\u043b\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438:<\/strong><\/p>\r\n<p>root@srx# show system services | display set<\/p>\r\n<p><strong>\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0445 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439:<\/strong><\/p>\r\n<p>root@srx# show | compare<\/p>\r\n<p><strong>\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u0438 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0439:<\/strong><\/p>\r\n<p>root@srx# show configuration | compare rollback number<\/p>\r\n<p><strong>\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438:<\/strong><\/p>\r\n<p>root@srx# rollback X<br \/>root@srx# commit<\/p>\r\n\r\n<p>&nbsp;<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u0440\u0438 \u0440\u0435\u0436\u0438\u043c\u0430 \u0440\u0430\u0431\u043e\u0442\u044b: root@juniper% \u2014 shellroot@juniper&gt; \u2014 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043croot@juniper# \u2014 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u0421\u0431\u0440\u043e\u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438: root@srx# load factory-default\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f root: root@srx# set system root-authentication plain-text-passwordroot@srx# commitroot@srx&gt; request system reboot \u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438: root@srx&gt; request system configuration rescue save \u0423\u0434\u0430\u043b\u044f\u0435\u0442 \u043d\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b: root@srx&gt; clear system commit \u0412\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f: root@srx&gt; request [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":882,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-813","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-juniper-srx"],"_links":{"self":[{"href":"https:\/\/www.vassiliev.me\/index.php?rest_route=\/wp\/v2\/posts\/813","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vassiliev.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vassiliev.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vassiliev.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vassiliev.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=813"}],"version-history":[{"count":10,"href":"https:\/\/www.vassiliev.me\/index.php?rest_route=\/wp\/v2\/posts\/813\/revisions"}],"predecessor-version":[{"id":1062,"href":"https:\/\/www.vassiliev.me\/index.php?rest_route=\/wp\/v2\/posts\/813\/revisions\/1062"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.vassiliev.me\/index.php?rest_route=\/wp\/v2\/media\/882"}],"wp:attachment":[{"href":"https:\/\/www.vassiliev.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=813"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vassiliev.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=813"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vassiliev.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=813"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}