{"id":11282,"date":"2023-04-01T02:14:31","date_gmt":"2023-04-01T09:14:31","guid":{"rendered":"https:\/\/www.xh86.me\/?p=11282"},"modified":"2023-04-01T02:14:31","modified_gmt":"2023-04-01T09:14:31","slug":"%e6%80%9d%e7%a7%91%e8%b7%af%e7%94%b1%e5%99%a8%e5%bc%80%e5%b1%80%e8%84%9a%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/www.xh86.me\/?p=11282","title":{"rendered":"\u601d\u79d1\u8def\u7531\u5668\u5f00\u5c40\u811a\u672c"},"content":{"rendered":"<p>! \u8bbe\u7f6e\u4e3b\u673a\u540d<br \/>\nhostname R1<\/p>\n<p>! \u7981\u7528IP\u57df\u540d\u67e5\u627e\uff0c\u52a0\u5feb\u547d\u4ee4\u6267\u884c\u901f\u5ea6<br \/>\nno ip domain-lookup<\/p>\n<p>! \u914d\u7f6e\u5bc6\u7801\u548c\u767b\u5f55\u8bbe\u7f6e<br \/>\nenable secret &lt;your_enable_password&gt;<br \/>\nusername &lt;your_username&gt; secret &lt;your_user_password&gt;<br \/>\nline vty 0 15<br \/>\nlogin local<br \/>\ntransport input ssh<br \/>\nline console 0<br \/>\nlogging synchronous<br \/>\nlogin local<br \/>\nexec-timeout 10 0<\/p>\n<p>! \u751f\u6210SSH\u5bc6\u94a5\uff0c\u542f\u7528SSH<br \/>\ncrypto key generate rsa general-keys modulus 2048<br \/>\nip ssh version 2<\/p>\n<p>! \u914d\u7f6e\u63a5\u53e3<br \/>\n! \u8bf7\u6839\u636e\u60a8\u7684\u5b9e\u9645\u9700\u6c42\u66f4\u6539\u63a5\u53e3\u7c7b\u578b\u548c\u7f16\u53f7<br \/>\ninterface GigabitEthernet0\/0<br \/>\nip address &lt;your_interface_ip&gt; &lt;your_interface_subnet_mask&gt;<br \/>\nno shutdown<\/p>\n<p>interface GigabitEthernet0\/1<br \/>\nip address &lt;your_interface_ip&gt; &lt;your_interface_subnet_mask&gt;<br \/>\nno shutdown<\/p>\n<p>! \u914d\u7f6e\u8def\u7531\u534f\u8bae<br \/>\n! \u4ee5\u4e0b\u914d\u7f6e\u662f\u57fa\u4e8eRIP\u534f\u8bae\uff0c\u60a8\u53ef\u4ee5\u6839\u636e\u9700\u8981\u66f4\u6539\u4e3a\u5176\u4ed6\u8def\u7531\u534f\u8bae<br \/>\nrouter rip<br \/>\nversion 2<br \/>\nnetwork &lt;your_network_address&gt;<br \/>\nno auto-summary<\/p>\n<p>! \u914d\u7f6eNTP<br \/>\nntp server &lt;your_ntp_server_address&gt;<\/p>\n<p>! \u4fdd\u5b58\u914d\u7f6e<br \/>\nwr<\/p>\n","protected":false},"excerpt":{"rendered":"<p>! \u8bbe\u7f6e\u4e3b\u673a\u540d hostname R1 ! \u7981\u7528IP\u57df\u540d\u67e5\u627e\uff0c\u52a0\u5feb\u547d\u4ee4\u6267\u884c\u901f\u5ea6 no ip domain-lo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,2],"tags":[],"class_list":["post-11282","post","type-post","status-publish","format-standard","hentry","category-cisco","category-network"],"_links":{"self":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/11282","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11282"}],"version-history":[{"count":1,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/11282\/revisions"}],"predecessor-version":[{"id":11283,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/11282\/revisions\/11283"}],"wp:attachment":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}