{"id":69,"date":"2024-11-21T17:32:09","date_gmt":"2024-11-21T09:32:09","guid":{"rendered":"https:\/\/0x0.pub\/?p=69"},"modified":"2024-11-21T18:42:49","modified_gmt":"2024-11-21T10:42:49","slug":"%e6%8e%a5%e5%85%a5%e4%ba%a4%e6%8d%a2%e6%9c%ba%e5%9f%ba%e6%9c%ac%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/0x0.pub\/?p=69","title":{"rendered":"H3C\u63a5\u5165\u4ea4\u6362\u673a\u57fa\u672c\u914d\u7f6e"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-text-color has-link-color has-small-font-size wp-elements-1ff82c053ca7774b424fe410a7f573cf\"><code>#\u4fee\u6539\u8bbe\u5907\u540d\nsysn office_sw1\n\n#\u542f\u7528LLDP\nlldp global enable\n\n#\u542f\u7528NTP \u540c\u6b65\u65f6\u95f4\nclock timezone Singapore add 08:00:00\nclock protocol ntp\nsntp enable\nsntp unicast-server time.google.com\n\n#\u914d\u7f6eDNS\ndns server 8.8.8.8\n\n#\u914d\u7f6eSSH\nssh server enable\nlocal-user admin class manage\npassword simple 123456\nauth user-role network-admin\nservice-type ssh\n\nuser-int vty 0 4\nauth scheme\nprotocol inbound ssh\n\n\t\n#\u914d\u7f6eConsole\u53e3\u5bc6\u7801\nline aux 0\nauthentication-mode password\nset authentication password simple 123456\n\n#\u914d\u7f6eSNMP\nsnmp-agent\nsnmp-agent community read test-snmp\nsnmp-agent sys-info location office\nsnmp-agent sys-info version all\n\n#MSTP\u914d\u7f6ebpdu\u4fdd\u62a4\u548c\u8fb9\u7f18\u7aef\u53e3\nstp global enable\nstp bpdu-protection\nstp mode mstp\nint range g1\/0\/1 to g1\/0\/24\nstp edged-port\n\n#\uff08\u53ef\u9009\uff09\u914d\u7f6e\u63a5\u53e3\u5e7f\u64ad\u98ce\u66b4\u6291\u523630%\nint range g1\/0\/1 to g1\/0\/24\nbroadcast-suppression 30\n\n#\u914d\u7f6e\u4e0e\u6838\u5fc3\/\u6c47\u805a\u4e92\u8054\u7684\u805a\u5408\u63a5\u53e3\nint bridge-aggregation 1\nint range g1\/0\/27 to g1\/0\/28\ndesc to_core\nport link-aggregation group 1\n\nint bridge-aggregation 1\ndesc to_core\nlink-aggregation mode dynamic\nport link-type trunk\nport trunk permit vlan 10 20 30\nundo port trunk permit vlan 1\n\n#\u914d\u7f6eDHCP Snooping\u4fe1\u4efb\u63a5\u53e3\ndhcp snooping enable\nint bridge-aggregation 1\ndhcp snooping trust\n\n#\u914d\u7f6e\u63a5\u5165\u5c42Vlan\u53ca\u63cf\u8ff0\nvlan 10 20 30\n\nvlan 10 \ndesc mgmt\n\nvlan 20\ndesc office\n\nvlan 30\ndesc cctv\n\n#\u914d\u7f6e\u8bbe\u5907\u7ba1\u7406VLAN\u7684IP\u548c\u9ed8\u8ba4\u8def\u7531\nint vlan 10\nip addr 10.10.10.201 24\nip route-static 0.0.0.0 0 10.10.10.1\n\n#\u914d\u7f6e\u7ba1\u7406\u7f51\u6bb5\u8fde\u63a5AP\u7684\u63a5\u53e3\nint range g1\/0\/1 to g1\/0\/8\ndesc AP\nport link-type trunk\nport trunk permit vlan 10 20 30\nport trunk pvid vlan 10\nundo port trunk permit vlan 1\n\n#\u914d\u7f6e\u529e\u516c\u7f51\u6bb5\u63a5\u53e3\u52a0\u5165VLAN 20\nint range g1\/0\/9 to g1\/0\/16\ndesc office\nport link-type access\nport access vlan 30\n\n#\u914d\u7f6e\u8fde\u63a5CCTV\u7f51\u6bb5\u63a5\u53e3\u52a0\u5165VLAN 30\nint range g1\/0\/17 to g1\/0\/24\ndesc CCTV\nport link-type access\nport access vlan 30<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[15],"class_list":["post-69","post","type-post","status-publish","format-standard","hentry","category-note","tag-15"],"_links":{"self":[{"href":"https:\/\/0x0.pub\/index.php?rest_route=\/wp\/v2\/posts\/69","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/0x0.pub\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/0x0.pub\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/0x0.pub\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/0x0.pub\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=69"}],"version-history":[{"count":5,"href":"https:\/\/0x0.pub\/index.php?rest_route=\/wp\/v2\/posts\/69\/revisions"}],"predecessor-version":[{"id":86,"href":"https:\/\/0x0.pub\/index.php?rest_route=\/wp\/v2\/posts\/69\/revisions\/86"}],"wp:attachment":[{"href":"https:\/\/0x0.pub\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/0x0.pub\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/0x0.pub\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}