{"id":11857,"date":"2023-04-04T22:35:29","date_gmt":"2023-04-05T05:35:29","guid":{"rendered":"https:\/\/www.xh86.me\/?p=11857"},"modified":"2023-04-04T22:35:29","modified_gmt":"2023-04-05T05:35:29","slug":"%e6%80%9d%e7%a7%919500%e4%ba%a4%e6%8d%a2%e6%9c%baospf%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/www.xh86.me\/?p=11857","title":{"rendered":"\u601d\u79d19500\u4ea4\u6362\u673aospf\u914d\u7f6e"},"content":{"rendered":"<p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u601d\u79d19500\u4ea4\u6362\u673a\u914d\u7f6eOSPF\u7684\u793a\u4f8b\u811a\u672c\uff0c\u4f60\u9700\u8981\u6839\u636e\u4f60\u7684\u5b9e\u9645\u9700\u6c42\u8fdb\u884c\u4fee\u6539\u548c\u9002\u914d\uff1a<\/p>\n<p>! \u914d\u7f6eOSPF\u8fdb\u7a0b<br \/>\nrouter ospf 1<br \/>\nrouter-id 10.1.1.1<br \/>\npassive-interface default<br \/>\nno passive-interface TenGigabitEthernet1\/1\/1<br \/>\nnetwork 10.0.0.0 0.255.255.255 area 0<br \/>\nnetwork 192.168.1.0 0.0.0.255 area 0<\/p>\n<p>! \u914d\u7f6e\u63a5\u53e3<br \/>\ninterface TenGigabitEthernet1\/1\/1<br \/>\nip address 10.1.1.1 255.255.255.0<br \/>\n!<\/p>\n<p>! \u914d\u7f6e\u57fa\u672c\u53c2\u6570<br \/>\nhostname Switch<br \/>\nip domain-name example.com<br \/>\nusername admin secret mypassword<\/p>\n<p>! \u914d\u7f6eSSH\u8fdc\u7a0b\u7ba1\u7406<br \/>\nip ssh version 2<br \/>\nline vty 0 15<br \/>\ntransport input ssh<br \/>\nlogin local<\/p>\n<p>! \u4fdd\u5b58\u914d\u7f6e<br \/>\ncopy running-config startup-config<br \/>\n\u4ee5\u4e0a\u793a\u4f8b\u914d\u7f6e\u4e86\u4e00\u4e2aOSPF\u8fdb\u7a0b\uff0c\u5e76\u5c06router-id\u8bbe\u7f6e\u4e3a10.1.1.1\u3002\u540c\u65f6\uff0c\u914d\u7f6e\u4e86\u63a5\u53e3TenGigabitEthernet1\/1\/1\u5e76\u5c06\u5176\u8bbe\u7f6e\u4e3a\u975e\u88ab\u52a8\u63a5\u53e3\uff0c\u6307\u5b9a\u4e86IP\u5730\u5740\u548c\u5b50\u7f51\u63a9\u7801\u3002\u6700\u540e\uff0c\u8fd8\u914d\u7f6e\u4e86\u57fa\u672c\u53c2\u6570\u548cSSH\u8fdc\u7a0b\u7ba1\u7406\uff0c\u5e76\u4fdd\u5b58\u4e86\u914d\u7f6e\u3002<\/p>\n<p>\u6ce8\u610f\uff1a\u8fd9\u53ea\u662f\u4e00\u4e2a\u793a\u4f8b\uff0c\u5b9e\u9645\u7684\u914d\u7f6e\u53ef\u80fd\u56e0\u7f51\u7edc\u62d3\u6251\u548c\u5177\u4f53\u9700\u6c42\u800c\u6709\u6240\u4e0d\u540c\uff0c\u56e0\u6b64\u8bf7\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u8fdb\u884c\u4fee\u6539\u548c\u9002\u914d\u3002\u540c\u65f6\uff0c\u914d\u7f6e\u4e4b\u524d\u8bf7\u5907\u4efd\u73b0\u6709\u914d\u7f6e\uff0c\u4ee5\u514d\u610f\u5916\u4e22\u5931\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u601d\u79d19500\u4ea4\u6362\u673a\u914d\u7f6eOSPF\u7684\u793a\u4f8b\u811a\u672c\uff0c\u4f60\u9700\u8981\u6839\u636e\u4f60\u7684\u5b9e\u9645\u9700\u6c42\u8fdb\u884c\u4fee\u6539\u548c\u9002\u914d\uff1a ! \u914d\u7f6eOSPF\u8fdb [&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-11857","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\/11857","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=11857"}],"version-history":[{"count":1,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/11857\/revisions"}],"predecessor-version":[{"id":11858,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/11857\/revisions\/11858"}],"wp:attachment":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11857"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11857"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11857"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}