{"id":1044,"date":"2022-03-04T18:30:02","date_gmt":"2022-03-04T10:30:02","guid":{"rendered":"https:\/\/b.yesiyu.top\/?p=1044"},"modified":"2022-03-04T18:52:31","modified_gmt":"2022-03-04T10:52:31","slug":"h3c%e4%ba%a4%e6%8d%a2%e6%9c%ba%e5%b8%b8%e7%94%a8%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/b.yesiyu.top\/?p=1044","title":{"rendered":"H3C\u4ea4\u6362\u673a\u5e38\u7528\u914d\u7f6e"},"content":{"rendered":"<p>H3C\u4ea4\u6362\u673a\u5e38\u7528\u914d\u7f6e<br \/>\n\u5806\u53e0\u914d\u7f6e<br \/>\n<strong>SWB<\/strong><\/p>\n<p>irf member 1 renumber 2<br \/>\nreboot<br \/>\n<strong>SWA<\/strong><\/p>\n<p>#\u4f18\u5148\u7ea7\u9ad8\u4e3a\u4e3b\u8bbe\u5907<br \/>\nirf member 1 priority 32<br \/>\n#\u914d\u7f6e\u524d\u9700\u5148\u5173\u95ed\u7aef\u53e3<br \/>\nint rang FortyGigE 1\/0\/53 to FortyGigE 1\/0\/54<br \/>\nshutdown<br \/>\n#\u628a\u5806\u53e0\u7aef\u53e3\u5212\u5165\u5806\u53e0\u53e3<br \/>\nirf-port 1\/1<br \/>\nport group interface FortyGigE1\/0\/53<br \/>\nport group interface FortyGigE1\/0\/54<br \/>\n#\u5f00\u542f\u7aef\u53e3<br \/>\nint rang FortyGigE 1\/0\/53 to FortyGigE 1\/0\/54<br \/>\nundo shutdown<br \/>\n#\u6fc0\u6d3b\u5806\u53e0\u914d\u7f6e<br \/>\nirf-port-configuration active<br \/>\nsave<br \/>\n<strong>SWB<\/strong><\/p>\n<p>int rang FortyGigE 2\/0\/53 to FortyGigE 2\/0\/54<br \/>\nshutdown<br \/>\n#\u8fd9\u91cc\u914d\u7f6e\u5806\u53e0\u7aef\u53e3\u8981\u4e0eSWA\u533a\u5206\uff0c\u4e0d\u80fd\u914d\u7f6e\u7a0b2\/1<br \/>\nirf-port 2\/2<br \/>\nport group interface FortyGigE2\/0\/53<br \/>\nport group interface FortyGigE2\/0\/54<br \/>\nint rang FortyGigE 2\/0\/53 to FortyGigE 2\/0\/54<br \/>\nundo shutdown<br \/>\nsave<br \/>\nirf-port-configuration active<br \/>\n#\u914d\u7f6e\u6210\u529fSWB\u4f1a\u81ea\u52a8\u91cd\u542f\u52a0\u5165\u5806\u53e0<\/p>\n<p><strong>\u98ce\u6247\u914d\u7f6e<\/strong><br \/>\nfan prefer-direction slot 1 port-to-power<br \/>\nfan prefer-direction slot 2 port-to-power<\/p>\n<p>\u8bbe\u5907\u547d\u540d<br \/>\nsysname xxx-xxx-xxx<\/p>\n<p><strong>\u914d\u7f6e\u767b\u5f55\u540d<\/strong><br \/>\n#\u914d\u7f6e\u672c\u5730\u7ba1\u7406\u8d26\u6237<br \/>\nlocal-user admin class manage<br \/>\n#\u914d\u7f6e\u5bc6\u7801<br \/>\npassword \uff08\u56de\u8f66\uff09<br \/>\nadmin<br \/>\n#\u6307\u5b9a\u7528\u6237\u670d\u52a1\u7c7b\u578b<br \/>\nservice-type ssh terminal<br \/>\n#\u6307\u5b9a\u7528\u6237\u4f7f\u7528\u89d2\u8272\u6743\u9650level-1<br \/>\nauthorization-attribute user-role level-1<br \/>\n#\u5220\u9664\u9ed8\u8ba4\u6743\u9650 network-operator<br \/>\nundo authorization-attribute user-role network-operator<\/p>\n<p>#\u914d\u7f6esuper\u5bc6\u7801<br \/>\nsuper password role network-admin\uff08\u56de\u8f66\uff09<br \/>\nadmin<br \/>\n\u6743\u9650\u8865\u5145\u8bf4\u660e<\/p>\n<p>\u9ed8\u8ba4\u89d2\u8272\u7684\u6743\u9650\u7ea7\u522b\u5982\u4e0b\uff1a<\/p>\n<p>network-admin\uff1a\u5177\u6709\u6700\u9ad8\u6743\u9650\uff0c\u53ef\u64cd\u4f5c\u7cfb\u7edf\u6240\u6709\u529f\u80fd\u548c\u8d44\u6e90(\u9664\u5b89\u5168\u65e5\u5fd7\u6587\u4ef6\u7ba1\u7406\u76f8\u5173\u547d\u4ee4\u5916)\uff0c\u914d\u7f6e\u6b64\u6743\u9650\u9ed8\u8ba4\u4f1a\u7ed9network-operator\u6743\u9650\u3002<br \/>\nnetwork-operator\uff1a\u53ef\u6267\u884c\u7cfb\u7edf\u6240\u6709\u529f\u80fd\u548c\u8d44\u6e90\u7684\u76f8\u5173display\u547d\u4ee4\uff08\u9664\u5b89\u5168\u65e5\u5fd7\u7b49\u67e5\u770b\u547d\u4ee4\u5916\uff0c\u5177\u4f53\u5927\u5bb6\u53ef\u4ee5\u81ea\u884c\u67e5\u770b\uff09\u3002<br \/>\nLevel-n(0-15):\u6570\u503c\u8d8a\u5927\uff0c\u6743\u9650\u8d8a\u5927\u3002level-15\u76f8\u5f53\u4e8enetwork-admin\u6743\u9650\u3002<br \/>\nsecurity-audit\uff1a\u5b89\u5168\u65e5\u5fd7\u7ba1\u7406\u5458\u6743\u9650\uff0c\u4ec5\u5177\u6709\u5b89\u5168\u65e5\u5fd7\u7684\u8bfb\u3001\u5199\u3001\u6267\u884c\u6743\u9650\u3002<\/p>\n<p><strong>\u914d\u7f6eSSH AAA\u767b\u5f55<\/strong><br \/>\n\u914d\u7f6eHWTACACS<\/p>\n<p>radius scheme h3c<br \/>\n#\u914d\u7f6e\u4e3b\u8ba4\u8bc1\/\u6388\u6743\u670d\u52a1\u5668\u7684IP \u5730\u5740\u4e3a192.168.1.100<br \/>\nprimary authentication 192.168.1.100<br \/>\nprimary accounting 192.168.1.100<br \/>\n#\u914d\u7f6e\u4e0e\u8ba4\u8bc1\u670d\u52a1\u5668\u4ea4\u4e92\u62a5\u6587\u65f6\u7684\u5171\u4eab\u5bc6\u94a5<br \/>\nkey authentication cipher $c$3$BBufRo18awo09z3IxgNBsClQBQwnOAxZ6w==<br \/>\n#\u914d\u7f6e\u4e0e\u5ba1\u8ba1\u670d\u52a1\u5668\u4ea4\u4e92\u62a5\u6587\u65f6\u7684\u5171\u4eab\u5bc6\u94a5<br \/>\nkey accounting cipher $c$3$f0ULDv1OtVbdXaUOtSMTR8SMbd6h00xIGQ==<br \/>\n#\u914d\u7f6e\u5411\u670d\u52a1\u5668\u53d1\u9001\u7684\u7528\u6237\u540d\u4e0d\u643a\u5e26\u57df\u540d<br \/>\nuser-name-format without-domain<br \/>\n# \u914d\u7f6e\u53d1\u9001RADIUS \u62a5\u6587\u4f7f\u7528\u7684\u6e90\u5730\u5740\u4e3a<br \/>\nnas-ip xxx.xxx.xxx.xxx(\u672c\u8bbe\u5907\u5730\u5740\uff09<\/p>\n<p>\u8865\u5145\uff1a<br \/>\n\u4e3a\u4fdd\u8bc1\u8ba4\u8bc1\u548c\u8ba1\u8d39\u62a5\u6587\u53ef\u88ab\u670d\u52a1\u5668\u6b63\u5e38\u63a5\u6536\u5e76\u5904\u7406\uff0c\u63a5\u5165\u8bbe\u5907\u4e0a\u53d1\u9001RADIUS \u62a5\u6587\u4f7f\u7528\u7684\u6e90\u5730\u5740\u5fc5\u987b\u4e0eRADIUS \u670d\u52a1\u5668\u4e0a\u6307\u5b9a\u7684\u63a5\u5165\u8bbe\u5907\u7684IP \u5730\u5740\u4fdd\u6301\u4e00\u81f4\u3002<\/p>\n<p><strong>\u8bbe\u7f6e\u767b\u5f55\u57df<\/strong><\/p>\n<p>domain h3c<br \/>\n#\u8ba4\u8bc1\u6388\u6743\u987a\u5e8fcams-&gt;local<br \/>\nauthentication login radius-scheme h3c local<br \/>\nauthorization login radius-scheme h3c local<br \/>\n#\u5ba1\u8ba1\u65e0<br \/>\naccounting default none<br \/>\ndomain default enable system h3c<\/p>\n<p><strong>\u542f\u7528SSH \u670d\u52a1<\/strong><\/p>\n<p>public-key local create rsa<br \/>\n#\u751f\u6210\u5bc6\u94a5<br \/>\nssh server enable<br \/>\n#\u8bbe\u7f6e\u767b\u5f55\u9650\u5236<br \/>\nssh server acl 3999<br \/>\n#\u5173\u95ed\u517c\u5bb9SSH1\u7248\u672c<br \/>\nundo ssh server compatible-ssh1x enable<br \/>\n\u8bbe\u7f6e\u767b\u5f55\u8ba4\u8bc1<\/p>\n<p>line vty 0 63<br \/>\n#\u8bbe\u7f6e\u7528\u6237\u767b\u5f55\u91c7\u7528AAA\u8ba4\u8bc1<br \/>\nauthentication-mode scheme<br \/>\nuser-role level-1<br \/>\n#\u8bbe\u7f6e\u81ea\u52a8\u9000\u51fa\u65f6\u95f45\u5206\u949f<br \/>\nidle-timeout 5 0<\/p>\n<p>line class aux<br \/>\nauthentication-mode scheme<br \/>\nuser-role level-1<\/p>\n<p>line class vty<br \/>\nauthentication-mode scheme<br \/>\nuser-role level-1<\/p>\n<p>line aux 0 1<br \/>\nauthentication-mode scheme<br \/>\nuser-role level-1<\/p>\n<p><strong>\u65f6\u533a\u914d\u7f6e<\/strong><br \/>\nclock timezone beijing add 08:00:00<br \/>\nNTP\u670d\u52a1\u5668\u8bbe\u7f6e<\/p>\n<p>ntp-service enable<br \/>\nntp-service unicast-server 192.168.1.1<br \/>\nntp-service unicast-server 192.168.1.2<br \/>\nntp-service unicast-server 192.168.1.3<br \/>\nsnmp\u8bbe\u7f6e<br \/>\nsnmp-agent<br \/>\nsnmp-agent community read PUBLIC<br \/>\nsnmp-agent sys-info version all<br \/>\nsnmp-agent target-host trap address udp-domain xxx.xxx.xxx.xxx params securityname PUBLIC v2c<\/p>\n<p><strong>stp\u76f8\u5173\u8bbe\u7f6e<\/strong><\/p>\n<p>#\u8bbe\u7f6e\u6839<br \/>\nstp enable<br \/>\nstp instance 0 root primary<\/p>\n<p>#\u8bbe\u7f6e\u8fb9\u7f18\u7aef\u53e3<br \/>\ninterface GigabitEthernet1\/0\/1<br \/>\nstp edged-port enable<\/p>\n<p>#\u7aef\u53e3\u6839\u4fdd\u62a4<br \/>\ninterface GigabitEthernet1\/0\/1<br \/>\nstp root-protection<br \/>\nDHCP\u8bbe\u7f6e<br \/>\ndhcp \u670d\u52a1\u5668\u914d\u7f6e<\/p>\n<p>#\u542f\u7528dhcp\u670d\u52a1<br \/>\ndhcp enable<\/p>\n<p>int vlan 1<br \/>\n#\u9ed8\u8ba4\u662fserver<br \/>\ndhcp select server<br \/>\nip address 192.168.100.254 255.255.255.0<\/p>\n<p>#\u914d\u7f6e\u4e0d\u53c2\u4e0e\u81ea\u52a8\u5206\u914d\u7684IP \u5730\u5740<br \/>\ndhcp server forbidden-ip 192.168.100.200<\/p>\n<p>#\u914d\u7f6edhcp\u5730\u5740\u6c60<br \/>\ndhcp server ip-pool 1<br \/>\n#\u914d\u7f6e\u4e3aDHCP\u5ba2\u6237\u7aef\u5206\u914d\u7684\u7f51\u5173\u5730<br \/>\ngateway-list 192.168.100.254<br \/>\n#\u5206\u914d\u7f51\u6bb5<br \/>\nnetwork 192.168.100.0 mask 255.255.255.0<br \/>\n#\u914d\u7f6e\u4e3aDHCP\u5ba2\u6237\u7aef\u5206\u914d\u7684DNS\u670d\u52a1\u5668\u5730\u5740<br \/>\ndns-list 8.8.8.8<br \/>\ndhcp\u4e2d\u7ee7\u914d\u7f6e<\/p>\n<p>#\u542f\u7528dhcp\u670d\u52a1<br \/>\ndhcp enable<\/p>\n<p>int vlan 1<br \/>\nip address 192.168.100.254 255.255.255.0<br \/>\ndhcp select relay<br \/>\ndhcp relay server-address xxx.xxx.xxx.xxx<br \/>\nTrack\u4e0eNQA\u8054\u52a8<br \/>\n\u914d\u7f6eNQA\u6d4b\u8bd5\u7ec4<\/p>\n<p>\u521b\u5efa\u7ba1\u7406\u5458\u540d\u4e3aadmin \u64cd\u4f5c\u6807\u7b7e\u4e3atest\u7684NQA\u6d4b\u8bd5\u7ec4<br \/>\ntype\u4e3a\uff1aicmp-echo<br \/>\n\u76ee\u6807\u5730\u5740\uff1a10.88.40.174<br \/>\n\u6d4b\u8bd5\u9891\u7387\uff1a1000ms<br \/>\n\u914d\u7f6e\u8054\u52a8\u98791\uff1a\u8fde\u7eed\u5931\u8d252\u6b21\u89e6\u53d1\u8054\u52a8<\/p>\n<p>nqa entry admin test<br \/>\ntype icmp-echo<br \/>\ndestination ip 10.88.40.174<br \/>\nfrequency 1000<br \/>\nreaction 1 checked-element probe-fail threshold-type consecutive 2 action-type trigger-only<\/p>\n<p><strong>\u542f\u52a8\u63a2\u6d4b<\/strong><\/p>\n<p>nqa schedule admin test start-time now lifetime forever<br \/>\n\u521b\u5efa\u4e0eNQA\u6d4b\u8bd5\u7ec4\u4e2d\u6307\u5b9a\u8054\u52a8\u9879\u5173\u8054\u7684Track\u9879<\/p>\n<p>track 1 nqa entry admin test reaction 1<br \/>\n\u5e94\u7528track 1<\/p>\n<p>#track1\u76d1\u63a7\u76ee\u7684\u5730\u5740\u4e0d\u53ef\u8fbe\u5219\u5c06\u9759\u6001\u8def\u7531\u7f6e\u4e3a\u65e0\u6548<br \/>\nip route-static 0.0.0.0 0.0.0.0 10.88.200.38 track 1<br \/>\nQOS<br \/>\n#\u5b9a\u4e49ACL<br \/>\nacl number 3999<br \/>\nrule 0 permit ip destination 10.88.1.8 0<\/p>\n<p>#\u5b9a\u4e49\u7c7b<br \/>\ntraffic classifier FTP operator and<br \/>\nif-match acl 3999<\/p>\n<p>#\u5b9a\u4e49\u6d41\u884c\u4e3a<br \/>\ntraffic behavior FTP<br \/>\ncar cir 64 cbs 4000 ebs 0 green pass red remark-dscp-pass cs1 yellow pass<\/p>\n<p>#\u5b9a\u4e49\u7b56\u7565<br \/>\nqos policy FTP<br \/>\nclassifier FTP behavior FTP<\/p>\n<p>#\u5e94\u7528\u7b56\u7565<br \/>\ninterface GigabitEthernet1\/0\/20<br \/>\nqos apply policy FTP outbound<br \/>\n\u4f18\u5316<br \/>\n#\u5173\u95edhttp<br \/>\nundo ip http enable<\/p>\n<p>#\u5173\u95ed\u8bbe\u5907\u7684ICMP\u8d85\u65f6\u62a5\u6587\u7684\u53d1\u9001\u529f\u80fd\u3002<br \/>\nundo ip ttl-expires<\/p>\n<p>#log\u670d\u52a1\u5668\u8bbe\u7f6e<br \/>\ninfo-center loghost 10.88.2.153<\/p>\n<p>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<br \/>\n\u7248\u6743\u58f0\u660e\uff1a\u672c\u6587\u4e3aCSDN\u535a\u4e3b\u300ceighteenxu\u300d\u7684\u539f\u521b\u6587\u7ae0\uff0c\u9075\u5faaCC 4.0 BY-SA\u7248\u6743\u534f\u8bae\uff0c\u8f6c\u8f7d\u8bf7\u9644\u4e0a\u539f\u6587\u51fa\u5904\u94fe\u63a5\u53ca\u672c\u58f0\u660e\u3002<br \/>\n\u539f\u6587\u94fe\u63a5\uff1ahttps:\/\/blog.csdn.net\/eighteenxu\/article\/details\/80992130<\/p>\n","protected":false},"excerpt":{"rendered":"<p>H3C\u4ea4\u6362\u673a\u5e38\u7528\u914d\u7f6e \u5806\u53e0\u914d\u7f6e SWB irf member 1 renumber 2 reboot SWA  &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/b.yesiyu.top\/?p=1044\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cH3C\u4ea4\u6362\u673a\u5e38\u7528\u914d\u7f6e\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1044","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts\/1044","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1044"}],"version-history":[{"count":1,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts\/1044\/revisions"}],"predecessor-version":[{"id":1045,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts\/1044\/revisions\/1045"}],"wp:attachment":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1044"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1044"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1044"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}