{"id":11886,"date":"2023-09-05T15:53:48","date_gmt":"2023-09-05T22:53:48","guid":{"rendered":"https:\/\/www.xh86.me\/?p=11886"},"modified":"2023-09-05T15:53:48","modified_gmt":"2023-09-05T22:53:48","slug":"%e6%80%9d%e7%a7%91c9800%e6%8e%a7%e5%88%b6%e5%99%a8%e5%a0%86%e5%8f%a0%e8%84%9a%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/www.xh86.me\/?p=11886","title":{"rendered":"\u601d\u79d1C9800\u63a7\u5236\u5668\u5806\u53e0\u811a\u672c"},"content":{"rendered":"<p><strong>\u5728 Controller1 \u4e0a\u7684\u914d\u7f6e\uff1a<\/strong><\/p>\n<p>enable<br \/>\nconfigure terminal<\/p>\n<p># \u914d\u7f6e\u4e3b\u673a\u540d<br \/>\nhostname Controller1<\/p>\n<p># \u914d\u7f6e\u7ba1\u7406\u63a5\u53e3<br \/>\ninterface GigabitEthernet1<br \/>\nip address 192.168.1.2 255.255.255.0<br \/>\nno shutdown<\/p>\n<p># \u914d\u7f6eSSH\u8bbf\u95ee<br \/>\nip domain-name yourdomain.com<br \/>\ncrypto key generate rsa general-keys modulus 2048<br \/>\naaa new-model<br \/>\naaa authentication login default local<br \/>\naaa authorization exec default local<br \/>\nusername admin privilege 15 secret YourStrongPassword<br \/>\nline vty 0 15<br \/>\ntransport input ssh<br \/>\nlogin local<br \/>\nexit<\/p>\n<p># \u914d\u7f6eNTP\u670d\u52a1\u5668<br \/>\nntp server pool.ntp.org<\/p>\n<p># \u914d\u7f6e\u65f6\u95f4\u533a\u57df<br \/>\nclock timezone PST -8<\/p>\n<p># \u914d\u7f6eSNMP<br \/>\nsnmp-server community YourSNMPCommunity RO<br \/>\nsnmp-server host 192.168.1.10 version 2c YourSNMPCommunity<\/p>\n<p># \u914d\u7f6e\u65e5\u5fd7<br \/>\nlogging host 192.168.1.20<br \/>\nlogging trap informational<\/p>\n<p># \u4fdd\u5b58\u914d\u7f6e<br \/>\nend<br \/>\nwrite memory<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u5728 Controller2 \u4e0a\u7684\u914d\u7f6e\uff1a<\/strong><\/p>\n<p>enable<br \/>\nconfigure terminal<\/p>\n<p># \u914d\u7f6e\u4e3b\u673a\u540d<br \/>\nhostname Controller2<\/p>\n<p># \u914d\u7f6e\u7ba1\u7406\u63a5\u53e3<br \/>\ninterface GigabitEthernet1<br \/>\nip address 192.168.1.3 255.255.255.0<br \/>\nno shutdown<\/p>\n<p># \u914d\u7f6eSSH\u8bbf\u95ee<br \/>\nip domain-name yourdomain.com<br \/>\ncrypto key generate rsa general-keys modulus 2048<br \/>\naaa new-model<br \/>\naaa authentication login default local<br \/>\naaa authorization exec default local<br \/>\nusername admin privilege 15 secret YourStrongPassword<br \/>\nline vty 0 15<br \/>\ntransport input ssh<br \/>\nlogin local<br \/>\nexit<\/p>\n<p># \u914d\u7f6eNTP\u670d\u52a1\u5668<br \/>\nntp server pool.ntp.org<\/p>\n<p># \u914d\u7f6e\u65f6\u95f4\u533a\u57df<br \/>\nclock timezone PST -8<\/p>\n<p># \u914d\u7f6eSNMP<br \/>\nsnmp-server community YourSNMPCommunity RO<br \/>\nsnmp-server host 192.168.1.10 version 2c YourSNMPCommunity<\/p>\n<p># \u914d\u7f6e\u65e5\u5fd7<br \/>\nlogging host 192.168.1.20<br \/>\nlogging trap informational<\/p>\n<p># \u4fdd\u5b58\u914d\u7f6e<br \/>\nend<br \/>\nwrite memory<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 Controller1 \u4e0a\u7684\u914d\u7f6e\uff1a enable configure terminal # \u914d\u7f6e\u4e3b\u673a\u540d h [&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-11886","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\/11886","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=11886"}],"version-history":[{"count":1,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/11886\/revisions"}],"predecessor-version":[{"id":11887,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/11886\/revisions\/11887"}],"wp:attachment":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11886"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11886"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}