Site icon KerKer 的模組世界

[Juniper] Junos基本操作、root密碼設定

<p>邊做邊學,順便留個筆記,若有錯誤請不吝指教。<&sol;p>&NewLine;<p>第一次使用Juniper設備需使用console連接,Juniper遠端管理如SSH、Telnet等預設是關閉的,開啟方式可參考:<a href&equals;"https&colon;&sol;&sol;kerker&period;website&sol;juniper-junos&percnt;e9&percnt;96&percnt;8b&percnt;e5&percnt;95&percnt;9f&percnt;e9&percnt;81&percnt;a0&percnt;e7&percnt;ab&percnt;af&percnt;e7&percnt;ae&percnt;a1&percnt;e7&percnt;90&percnt;86ssh&percnt;e3&percnt;80&percnt;81telnet&percnt;e3&percnt;80&percnt;81ftp&percnt;e3&percnt;80&percnt;81web&sol;">Juniper Junos開啟遠端管理&lpar;SSH、telnet、ftp、Web&rpar;<&sol;a><&sol;p>&NewLine;<p>本篇主要說明 JunOS root 帳號之密碼設定<&sol;p>&NewLine;<p>其餘使用者之帳號設定請參考:<a href&equals;"https&colon;&sol;&sol;kerker&period;website&sol;juniper-junos&percnt;E4&percnt;BD&percnt;BF&percnt;E7&percnt;94&percnt;A8&percnt;E8&percnt;80&percnt;85&percnt;E5&percnt;B8&percnt;B3&percnt;E8&percnt;99&percnt;9F&percnt;E8&percnt;A8&percnt;AD&percnt;E5&percnt;AE&percnt;9A&sol;">Juniper Junos使用者帳號設定<&sol;a><&sol;p>&NewLine;<p>所有Juniper相關文章列表:<a href&equals;"https&colon;&sol;&sol;kerker&period;website&sol;juniper-junos-&percnt;E7&percnt;B3&percnt;BB&percnt;E5&percnt;88&percnt;97-&percnt;E6&percnt;96&percnt;87&percnt;E7&percnt;AB&percnt;A0&percnt;E5&percnt;88&percnt;97&percnt;E8&percnt;A1&percnt;A8&sol;">Juniper JunOS 系列文章列表<&sol;a><&sol;p>&NewLine;<p> <&sol;p>&NewLine;<p><&excl;--more--><&excl;--more--><&sol;p>&NewLine;<p> <&sol;p>&NewLine;<p>開啟設備後等到他跳出&&num;8221&semi;login&colon;&&num;8221&semi;時使用root帳號及空白密碼登入<br &sol;>登入後可以輸入&&num;8221&semi;cli&&num;8221&semi;來進入命令列模式<&sol;p>&NewLine;<pre>root&percnt; cli<br &sol;>root&gt&semi;<&sol;pre>&NewLine;<p>在命令列模式下可以輸入&&num;8221&semi;show configuration&&num;8221&semi;來顯示設定檔&lpar;同Cisco的&&num;8221&semi;show running-config&&num;8221&semi;&rpar;<br &sol;>在命令列模式可以輸入&&num;8221&semi;configure&&num;8221&semi;或是&&num;8221&semi;edit&&num;8221&semi;進入設定模式<&sol;p>&NewLine;<pre>cli&gt&semi; configure<br &sol;>&lbrack;edit&rsqb;root&num;<&sol;pre>&NewLine;<p>在設定模式下使用下列指令更改root密碼為plain-text-password:<&sol;p>&NewLine;<pre>root&num; set system root-authentication plain-text-password<br &sol;>New Password&colon; &lbrack;type password here&rsqb;Retype new password&colon; &lbrack;retype password here&rsqb;<&sol;pre>&NewLine;<p>在設定模式下使用下列指令更改root密碼為encrypted-password:<&sol;p>&NewLine;<pre>root&num; set root-authentication encrypted-password &lbrack;password&rsqb;<&sol;pre>&NewLine;<p>需要特別注意的是plain-text-password在config檔中是會顯示為加密內容的,而encrypted-password則會明文顯示,故除非密碼已加密,並且您輸入的是密碼的加密版本,否則請勿使用encrypted-password選項。<&sol;p>&NewLine;<p>簡單來說plain-text-password是直接輸入密碼後系統幫你加密。<br &sol;>encrypted-password的密碼要自己加密過後在輸入進去。<&sol;p>&NewLine;<p>完成設定後需要下&&num;8221&semi;commit&&num;8221&semi;來使設定生效,更多關於commit指令的內容可以參考:<a href&equals;"https&colon;&sol;&sol;kerker&period;website&sol;juniper-junos&percnt;E6&percnt;8F&percnt;90&percnt;E4&percnt;BA&percnt;A4&percnt;E8&percnt;A8&percnt;AD&percnt;E5&percnt;AE&percnt;9Acommit&sol;">Juniper Junos提交設定&lpar;commit&rpar;<&sol;a><&sol;p>&NewLine;<pre>root&num; commit<br &sol;>configuration check succeeds<br &sol;>commit complete<&sol;pre>&NewLine;&NewLine;&NewLine;<p class&equals;"wp-block-paragraph"><&sol;p>&NewLine;

Exit mobile version