{"id":11845,"date":"2023-04-04T22:28:33","date_gmt":"2023-04-05T05:28:33","guid":{"rendered":"https:\/\/www.xh86.me\/?p=11845"},"modified":"2023-04-04T22:28:33","modified_gmt":"2023-04-05T05:28:33","slug":"%e6%80%9d%e7%a7%91nexus%e4%ba%a4%e6%8d%a2%e6%9c%ba%e5%a0%86%e5%8f%a0%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/www.xh86.me\/?p=11845","title":{"rendered":"\u601d\u79d1Nexus\u4ea4\u6362\u673a\u5806\u53e0\u914d\u7f6e"},"content":{"rendered":"<p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u601d\u79d1Nexus\u4ea4\u6362\u673a\u5806\u53e0\u7684\u914d\u7f6e\u811a\u672c\u793a\u4f8b\uff0c\u4f60\u9700\u8981\u6839\u636e\u4f60\u7684\u5177\u4f53\u9700\u6c42\u8fdb\u884c\u4fee\u6539\u548c\u9002\u914d\uff1a<\/p>\n<p>! \u914d\u7f6e\u4e3b\u4ea4\u6362\u673a<br \/>\nswitch 1<br \/>\nswitchport mode trunk<br \/>\nswitchport trunk allowed vlan 10,20,30<br \/>\nspanning-tree port type edge trunk<br \/>\n!<br \/>\ninterface port-channel1<br \/>\nswitchport mode trunk<br \/>\nswitchport trunk allowed vlan 10,20,30<br \/>\nspanning-tree port type edge trunk<br \/>\n!<br \/>\ninterface Ethernet1\/1<br \/>\nchannel-group 1 mode active<br \/>\n!<\/p>\n<p>! \u914d\u7f6e\u5907\u4efd\u4ea4\u6362\u673a<br \/>\nswitch 2<br \/>\nswitchport mode trunk<br \/>\nswitchport trunk allowed vlan 10,20,30<br \/>\nspanning-tree port type edge trunk<br \/>\n!<br \/>\ninterface port-channel1<br \/>\nswitchport mode trunk<br \/>\nswitchport trunk allowed vlan 10,20,30<br \/>\nspanning-tree port type edge trunk<br \/>\n!<br \/>\ninterface Ethernet1\/1<br \/>\nchannel-group 1 mode active<br \/>\n!<\/p>\n<p>! \u914d\u7f6eVLAN<br \/>\nvlan 10<br \/>\nname Finance<br \/>\nvlan 20<br \/>\nname Sales<br \/>\nvlan 30<br \/>\nname Marketing<\/p>\n<p>! \u914d\u7f6e\u57fa\u672c\u53c2\u6570<br \/>\nhostname CoreSwitch<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\u4e2a\u4e24\u4e2a\u4ea4\u6362\u673a\u7684\u5806\u53e0\uff0c\u914d\u7f6e\u4e86\u4e09\u4e2aVLAN\uff0c\u5206\u522b\u662fFinance\u3001Sales\u548cMarketing\u3002\u540c\u65f6\uff0c\u8fd8\u914d\u7f6e\u4e86Uplink\u63a5\u53e3\u8fde\u63a5\u5230Distribution Switch\u548cAccess Switch\uff0c\u8bbe\u7f6e\u4e86\u63a5\u53e3\u7684\u6a21\u5f0f\u3001\u5141\u8bb8\u7684VLAN\u7b49\u53c2\u6570\u3002\u6b64\u5916\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\u7b80\u5355\u7684\u601d\u79d1Nexus\u4ea4\u6362\u673a\u5806\u53e0\u7684\u914d\u7f6e\u811a\u672c\u793a\u4f8b\uff0c\u4f60\u9700\u8981\u6839\u636e\u4f60\u7684\u5177\u4f53\u9700\u6c42\u8fdb\u884c\u4fee\u6539\u548c\u9002\u914d\uff1a ! \u914d\u7f6e\u4e3b\u4ea4\u6362 [&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-11845","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\/11845","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=11845"}],"version-history":[{"count":1,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/11845\/revisions"}],"predecessor-version":[{"id":11846,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/11845\/revisions\/11846"}],"wp:attachment":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}