{"id":2481,"date":"2025-05-14T11:23:03","date_gmt":"2025-05-14T03:23:03","guid":{"rendered":"https:\/\/airy.cn\/WordPress\/?p=2481"},"modified":"2025-05-14T11:23:03","modified_gmt":"2025-05-14T03:23:03","slug":"%e5%8d%8e%e4%b8%ba%e4%ba%a4%e6%8d%a2%e6%9c%ba%e5%9f%ba%e7%a1%80%e9%85%8d%e7%bd%ae%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"https:\/\/airy.cn\/WordPress\/?p=2481","title":{"rendered":"\u534e\u4e3a\u4ea4\u6362\u673a\u57fa\u7840\u914d\u7f6e\u547d\u4ee4"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>\u4e00\u3001\u534e\u4e3a\u4ea4\u6362\u673a\u57fa\u7840\u914d\u7f6e\u547d\u4ee4<\/strong><\/p>\n\n\n\n<p><strong>1\u3001\u521b\u5efavlan\uff1a<\/strong><\/p>\n\n\n\n<p>&lt;Quidway&gt;&nbsp; &nbsp; &nbsp;\/\/\u7528\u6237\u89c6\u56fe\uff0c\u4e5f\u5c31\u662f\u5728Quidway\u6a21\u5f0f\u4e0b\u8fd0\u884c\u547d\u4ee4\u3002<br>&lt;Quidway&gt;system-view&nbsp; &nbsp; &nbsp; \/\/\u8fdb\u5165\u914d\u7f6e\u89c6\u56fe&nbsp;<br>[Quidway] vlan 10&nbsp; &nbsp; &nbsp; &nbsp;\/\/\u521b\u5efavlan 10\uff0c\u5e76\u8fdb\u5165vlan10\u914d\u7f6e\u89c6\u56fe\uff0c\u5982\u679cvlan10\u5b58\u5728\u5c31\u76f4\u63a5\u8fdb\u5165vlan10\u914d\u7f6e\u89c6\u56fe&nbsp;<br>[Quidway-vlan10] quit&nbsp; &nbsp; &nbsp;\/\/\u56de\u5230\u914d\u7f6e\u89c6\u56fe&nbsp;<br>[Quidway] vlan 100&nbsp; &nbsp; &nbsp;\/\/\u521b\u5efavlan 100\uff0c\u5e76\u8fdb\u5165vlan100\u914d\u7f6e\u89c6\u56fe\uff0c\u5982\u679cvlan10\u5b58\u5728\u5c31\u76f4\u63a5\u8fdb\u5165vlan100\u914d\u7f6e\u89c6\u56fe<\/p>\n\n\n\n<p>[Quidway-vlan100] quit&nbsp; &nbsp; &nbsp;\/\/\u56de\u5230\u914d\u7f6e\u89c6\u56fe<\/p>\n\n\n\n<p><strong>2\u3001\u5c06\u7aef\u53e3\u52a0\u5165\u5230vlan\u4e2d\uff1a<\/strong><\/p>\n\n\n\n<p>[Quidway] interface GigabitEthernet2\/0\/1&nbsp; &nbsp; (10G\u5149\u53e3)&nbsp;<br>[Quidway- GigabitEthernet2\/0\/1] port link-type access&nbsp; &nbsp; \/\/\u5b9a\u4e49\u7aef\u53e3\u4f20\u8f93\u6a21\u5f0f&nbsp;<br>[Quidway- GigabitEthernet2\/0\/1] port default vlan 100&nbsp; &nbsp;\/\/\u5c06\u7aef\u53e3\u52a0\u5165vlan100&nbsp;<br>[Quidway- GigabitEthernet2\/0\/1] quit&nbsp; &nbsp; &nbsp; &nbsp;\/\/\u56de\u5230\u914d\u7f6e\u89c6\u56fe&nbsp;<\/p>\n\n\n\n<p>[Quidway] interface GigabitEthernet1\/0\/0&nbsp; &nbsp; &nbsp; &nbsp;\/\/\u8fdb\u51651\u53f7\u63d2\u69fd\u4e0a\u7684\u7b2c\u4e00\u4e2a\u5343\u5146\u7f51\u53e3\u914d\u7f6e\u89c6\u56fe\u4e2d\u30020\u4ee3\u88681\u53f7\u53e3&nbsp;<br>[Quidway- GigabitEthernet1\/0\/0] port link-type access&nbsp; &nbsp;\/\/\u5b9a\u4e49\u7aef\u53e3\u4f20\u8f93\u6a21\u5f0f&nbsp;<br>[Quidway- GigabitEthernet2\/0\/1] port default vlan 10&nbsp; &nbsp;\/\/\u5c06\u8fd9\u4e2a\u7aef\u53e3\u52a0\u5165\u5230vlan10\u4e2d&nbsp;<br>[Quidway- GigabitEthernet2\/0\/1] quit&nbsp;<br><br>3\u3001\u5c06\u591a\u4e2a\u7aef\u53e3\u52a0\u5165\u5230VLAN\u4e2d<\/p>\n\n\n\n<p>&lt;Quidway&gt;system-view&nbsp;<br>[Quidway]vlan 10&nbsp;<br>[Quidway-vlan10]port GigabitEthernet 1\/0\/0 to 1\/0\/29&nbsp; &nbsp;\/\/\u5c060\u523029\u53f7\u53e3\u52a0\u5165\u5230vlan10\u4e2d&nbsp;<br>[Quidway-vlan10]quit<\/p>\n\n\n\n<p>4\u3001<a href=\"https:\/\/so.csdn.net\/so\/search?q=%E4%BA%A4%E6%8D%A2%E6%9C%BA%E9%85%8D%E7%BD%AE&amp;spm=1001.2101.3001.7020\" target=\"_blank\" rel=\"noreferrer noopener\">\u4ea4\u6362\u673a\u914d\u7f6e<\/a>IP\u5730\u5740<\/p>\n\n\n\n<p>[Quidway] interface Vlanif100&nbsp; &nbsp; &nbsp;\/\/ \u8fdb\u5165vlan100\u63a5\u53e3\u89c6\u56fe\u4e0evlan 100\u547d\u4ee4\u8fdb\u5165\u7684\u5730\u65b9\u4e0d\u540c&nbsp;<br>[Quidway-Vlanif100] ip&nbsp;address&nbsp;119.167.200.90 255.255.255.252&nbsp; &nbsp; &nbsp; \/\/ \u5b9a\u4e49vlan100\u7ba1\u7406IP\u4e09\u5c42&nbsp;\u4ea4\u6362\u7f51\u5173\u8def\u7531&nbsp;<br>[Quidway-Vlanif100] quit&nbsp; &nbsp; &nbsp; &nbsp;\/\/\u8fd4\u56de\u89c6\u56fe<br>[Quidway] interface Vlanif10&nbsp; &nbsp; \/\/ \u8fdb\u5165vlan10\u63a5\u53e3\u89c6\u56fe\u4e0evlan 10\u547d\u4ee4\u8fdb\u5165\u7684\u5730\u65b9\u4e0d\u540c&nbsp;<br>[Quidway-Vlanif10] ip address 119.167.206.129 255.255.255.128&nbsp; &nbsp; \/\/ \u5b9a\u4e49vlan10\u7ba1\u7406IP\u4e09\u5c42\u4ea4\u6362\u7f51\u5173\u8def\u7531<\/p>\n\n\n\n<p>[Quidway-Vlanif10] quit<\/p>\n\n\n\n<p>5\u3001\u914d\u7f6e\u9ed8\u8ba4\u7f51\u5173\uff1a<\/p>\n\n\n\n<p>[Quidway]ip route-static 0.0.0.0 0.0.0.0 119.167.200.89&nbsp;\/\/\u914d\u7f6e\u9ed8\u8ba4\u7f51\u5173\u3002<\/p>\n\n\n\n<p>6\u3001 \u4ea4\u6362\u673a\u4fdd\u5b58\u8bbe\u7f6e\u548c\u91cd\u7f6e\u547d\u4ee4<\/p>\n\n\n\n<p>&lt;Quidway&gt;save&nbsp; &nbsp; &nbsp; &nbsp; \/\/\u4fdd\u5b58\u914d\u7f6e\u4fe1\u606f&nbsp;<br>&lt;Quidway&gt;reset saved-configuration&nbsp; &nbsp; &nbsp;\/\/\u91cd\u7f6e\u4ea4\u6362\u673a\u7684\u914d\u7f6e&nbsp;<br>&lt;Quidway&gt;reboot&nbsp; &nbsp; &nbsp; \/\/\u91cd\u65b0\u542f\u52a8\u4ea4\u6362\u673a<\/p>\n\n\n\n<p>7\u3001\u4ea4\u6362\u673a\u5e38\u7528\u7684\u663e\u793a\u547d\u4ee4<\/p>\n\n\n\n<p>\u7528\u6237\u89c6\u56fe\u6a21\u5f0f\u4e0b\uff1a<br>&lt;Quidway&gt;display current-configuration&nbsp; &nbsp;&nbsp; \/\/\u663e\u793a\u73b0\u5728\u4ea4\u6362\u673a\u6b63\u5728\u8fd0\u884c\u7684\u914d\u7f6e\u660e\u7ec6&nbsp;<br>&lt;Quidway&gt;display device&nbsp; &nbsp; &nbsp;&nbsp; \/\/\u663e\u793a\u5404\u8bbe\u5907\u72b6\u6001&nbsp;<br>&lt;Quidway&gt;display interface \uff1f&nbsp; &nbsp;&nbsp;\/\/\u663e\u793a\u4e2a\u7aef\u53e3\u72b6\u6001\uff0c\u7528\uff1f\u53ef\u4ee5\u67e5\u770b\u540e\u8fb9\u8ddf\u7684\u9009\u9879&nbsp;<br>&lt;Quidway&gt;display version&nbsp; &nbsp; &nbsp; \/\/\u67e5\u770b\u4ea4\u6362\u673a\u56fa\u4ef6\u7248\u672c\u4fe1\u606f&nbsp;<br>&lt;Quidway&gt;display vlan \uff1f&nbsp; &nbsp; &nbsp;&nbsp;\/\/ \u67e5\u770bvlan\u7684\u914d\u7f6e\u4fe1\u606f<\/p>\n\n\n\n<p>8\u3001\u6062\u590d\u4ea4\u6362\u673a\u51fa\u5382\u8bbe\u7f6e<\/p>\n\n\n\n<p>&lt;Quidway&gt;reset saved-configuration&nbsp; &nbsp; \/\/\u91cd\u7f6e\u4ea4\u6362\u673a\u7684\u914d\u7f6e<\/p>\n\n\n\n<p><strong>\u4e8c\u3001H3C\u4ea4\u6362\u673a\u7684\u57fa\u672c\u914d\u7f6e<\/strong><\/p>\n\n\n\n<p>\u6211\u4eec\u5148\u6765\u4e86\u89e3\u4e0bh3c\u7684\u914d\u7f6e\u547d\u4ee4\u4e0e\u529f\u80fd\uff0c\u90fd\u662f\u5e38\u7528\u7684\uff0c\u57fa\u672c\u4e0a\u5927\u90e8\u5206\u7f51\u7edc\u914d\u7f6e\u90fd\u5c11\u4e0d\u4e86\u8fd9\u4e9b\u547d\u4ee4\u3002<\/p>\n\n\n\n<p>1\u3001\u57fa\u672c\u914d\u7f6e&lt;H3C&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; \/\/\u7528\u6237\u76f4\u884c\u6a21\u5f0f\u63d0\u793a\u7b26,\u7528\u6237\u89c6\u56fe&nbsp;&lt;H3C&gt;system-view&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/\/<strong>\u8fdb\u5165\u914d\u7f6e\u89c6\u56fe&nbsp;<\/strong><br>[H3C] sysname xxx&nbsp; &nbsp; &nbsp;\/\/\u8bbe\u7f6e\u4e3b\u673a\u540d\u6210\u4e3axxx\u8fd9\u91cc\u4f7f\u7528\u4fee\u6539\u7279\u6743\u7528\u6237\u5bc6\u7801<\/p>\n\n\n\n<p>2\u3001\u7528\u6237\u914d\u7f6e<\/p>\n\n\n\n<p>&lt;H3C&gt;system-view<\/p>\n\n\n\n<p>[H3C]super password H3C&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; \/\/\u8bbe\u7f6e\u7528\u6237\u5206\u7ea7\u5bc6\u7801<\/p>\n\n\n\n<p>[H3C]undo superpassword&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; \/\/\u5220\u9664\u7528\u6237\u5206\u7ea7\u5bc6\u7801<\/p>\n\n\n\n<p>[H3C]localuser bigheap 1234561&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; \/\/Web\u7f51\u7ba1\u7528\u6237\u8bbe\u7f6e,1\u4e3a\u7ba1\u7406\u7ea7\u7528\u6237<\/p>\n\n\n\n<p>[H3C]undo localuser bigheap&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; \/\/\u5220\u9664Web\u7f51\u7ba1\u7528\u6237<\/p>\n\n\n\n<p>[H3C]user-interface aux 0&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; \/\/\u53ea\u652f\u63010<\/p>\n\n\n\n<p>[H3C-Aux]idle-timeout 250&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; \/\/\u8bbe\u7f6e\u8d85\u65f6\u4e3a2\u520650\u79d2,\u82e5\u4e3a0\u5219\u8868\u793a\u4e0d\u8d85\u65f6,\u9ed8\u8ba4\u4e3a5\u5206\u949f<\/p>\n\n\n\n<p>[H3C-Aux]undoidle-timeout&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; \/\/\u6062\u590d\u9ed8\u8ba4\u503c<\/p>\n\n\n\n<p>[H3C]user-interface vty 0&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; \/\/\u53ea\u652f\u63010\u548c1<\/p>\n\n\n\n<p>[H3C-vty]idle-timeout 250&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; \/\/\u8bbe\u7f6e\u8d85\u65f6\u4e3a2\u520650\u79d2,\u82e5\u4e3a0\u5219\u8868\u793a\u4e0d\u8d85\u65f6,\u9ed8\u8ba4\u4e3a5\u5206\u949f<\/p>\n\n\n\n<p>[H3C-vty]undoidle-timeout&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; \/\/\u6062\u590d\u9ed8\u8ba4\u503c<\/p>\n\n\n\n<p>[H3C-vty]set authentication password123456&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; \/\/\u8bbe\u7f6etelnet\u5bc6\u7801,\u5fc5\u987b\u8bbe\u7f6e<\/p>\n\n\n\n<p>[H3C-vty]undo set authenticationpassword&nbsp; &nbsp; &nbsp;&nbsp;\/\/\u53d6\u6d88\u5bc6\u7801<\/p>\n\n\n\n<p>[H3C]displayusers&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; \/\/\u663e\u793a\u7528\u6237<\/p>\n\n\n\n<p>[H3C]displayuser-interface&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; \/\/\u7528\u6237\u754c\u9762\u72b6\u6001<\/p>\n\n\n\n<p><br>3\u3001vlan\u914d\u7f6e<\/p>\n\n\n\n<p>[H3C]vlan 2&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<strong>&nbsp;&nbsp; &nbsp; &nbsp;\/\/\u521b\u5efaVLAN2<\/strong><\/p>\n\n\n\n<p>[H3C]undo vlanall&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; \/\/\u5220\u9664\u9664\u7f3a\u7701VLAN\u5916\u7684\u6240\u6709VLAN,\u7f3a\u7701VLAN\u4e0d\u80fd\u88ab\u5220\u9664<\/p>\n\n\n\n<p>[H3C-vlan2]port&nbsp;Ethernet&nbsp;0\/4 to Ethernet0\/7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; \/\/\u5c064\u52307\u53f7\u7aef\u53e3\u52a0\u5165\u5230VLAN2\u4e2d,\u6b64\u547d\u4ee4\u53ea\u80fd\u7528\u6765\u52a0access\u7aef\u53e3,\u4e0d\u80fd\u7528\u6765\u589e\u52a0trunk\u6216\u8005hybrid\u7aef\u53e3<\/p>\n\n\n\n<p>[H3C-vlan2]port-isolate enable&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u6253\u5f00VLAN\u5185\u7aef\u53e3\u9694\u79bb\u7279\u6027\uff0c\u4e0d\u80fd\u4e8c\u5c42\u8f6c\u53d1,<strong>\u9ed8\u8ba4\u4e0d\u542f\u7528\u8be5\u529f\u80fd<\/strong><\/p>\n\n\n\n<p>[H3C-Ethernet0\/4]port-isolate uplink-portvlan 2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/\/\u8bbe\u7f6e4\u4e3aVLAN2\u7684<strong>\u9694\u79bb\u4e0a\u884c\u7aef\u53e3<\/strong>\uff0c\u7528\u4e8e\u8f6c\u53d1\u4e8c\u5c42\u6570\u636e,\u53ea\u80fd\u914d\u7f6e\u4e00\u4e2a\u4e0a\u884c\u7aef\u53e3,\u82e5\u4e3atrunk,\u5219\u5efa\u8bae\u5141\u8bb8\u6240\u6709VLAN\u901a\u8fc7,\u9694\u79bb\u4e0d\u80fd\u4e0e\u6c47\u805a\u540c\u65f6\u914d\u7f6e<\/p>\n\n\n\n<p>[H3C]display vlan all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;\/\/<strong>\u663e\u793a\u6240\u6709VLAN\u7684\u8be6\u7ec6\u4fe1\u606f<\/strong><\/p>\n\n\n\n<p>[H3C]user-group 20&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;\/\/\u521b\u5efauser-group 20\uff0c\u9ed8\u8ba4\u53ea\u5b58\u5728user-group 1<\/p>\n\n\n\n<p>[H3C-UserGroup20]port Ethernet 0\/4 toEthernet 0\/7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;\/\/<strong>\u5c064\u52307\u53f7\u7aef\u53e3\u52a0\u5165\u5230VLAN20\u4e2d\uff0c<\/strong>\u521d\u59cb\u65f6\u90fd\u5c5e\u4e8euser-group 1\u4e2d<\/p>\n\n\n\n<p>[H3C]display user-group 20&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;\/\/\u663e\u793auser-group 20\u7684\u76f8\u5173\u4fe1\u606f<\/p>\n\n\n\n<p>\u56db\u3001\u4ea4\u6362\u673aip\u914d\u7f6e<\/p>\n\n\n\n<p>[H3C]vlan 20&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/\/<strong>\u521b\u5efavlan<\/strong><\/p>\n\n\n\n<p>[H3C]management-vlan 20&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;\/\/\u7ba1\u7406vlan<\/p>\n\n\n\n<p>[H3C]interface vlan-interface 20&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/<strong>\u8fdb\u5165\u5e76\u7ba1\u7406vlan20<\/strong><\/p>\n\n\n\n<p>[H3C]undo interface vlan-interface 20&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/\u5220\u9664\u7ba1\u7406VLAN\u7aef\u53e3<\/p>\n\n\n\n<p>[H3C-Vlan-interface20]ip address192.168.1.2 255.255.255.0&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;\/\/<strong>\u914d\u7f6e\u7ba1\u7406VLAN\u63a5\u53e3\u9759\u6001IP\u5730\u5740<\/strong><\/p>\n\n\n\n<p>[H3C-Vlan-interface20]undo ipaddress&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/\u5220\u9664IP\u5730\u5740<\/p>\n\n\n\n<p>[H3C-Vlan-interface20]ip&nbsp;gateway&nbsp;192.168.1.1&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/\u6307\u5b9a\u7f3a\u7701\u7f51\u5173(\u9ed8\u8ba4\u65e0\u7f51\u5173\u5730\u5740)<\/p>\n\n\n\n<p>[H3C-Vlan-interface20]undo ip gateway<\/p>\n\n\n\n<p>[H3C-Vlan-interface20]shutdown&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;\/\/<strong>\u5173\u95ed\u63a5\u53e3<\/strong><\/p>\n\n\n\n<p>[H3C-Vlan-interface20]undo shutdown&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/\u5f00\u542f<\/p>\n\n\n\n<p>[H3C]display ip&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/\u663e\u793a\u7ba1\u7406VLAN\u63a5\u53e3IP\u7684\u76f8\u5173\u4fe1\u606f<\/p>\n\n\n\n<p>[H3C]display interface vlan-interface20&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/\u67e5\u770b\u7ba1\u7406VLAN\u7684\u63a5\u53e3\u4fe1\u606f<\/p>\n\n\n\n<p>&lt;H3C&gt;debugging ip&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/\u5f00\u542fIP\u8c03\u8bd5\u529f\u80fd<\/p>\n\n\n\n<p>&lt;H3C&gt;undo debugging ip<\/p>\n\n\n\n<p>5\u3001DHCP\u5ba2\u6237\u7aef\u914d\u7f6e<\/p>\n\n\n\n<p>[H3C-Vlan-interface20]ip address dhcp-alloc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;\/\/ \u7ba1\u7406VLAN\u63a5\u53e3<strong>\u901a\u8fc7DHCP\u65b9\u5f0f\u83b7\u53d6IP\u5730\u5740<\/strong><\/p>\n\n\n\n<p>[H3C-Vlan-interface20]undo ip address dhcp-alloc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;\/\/ \u53d6\u6d88<\/p>\n\n\n\n<p>[H3C]display dhcp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;\/\/\u663e\u793aDHCP\u5ba2\u6237\u4fe1\u606f<\/p>\n\n\n\n<p>&lt;H3C&gt;debugging dhcp-alloc&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/\u5f00\u542fDHCP\u8c03\u8bd5\u529f\u80fd<\/p>\n\n\n\n<p>&lt;H3C&gt;undo debugging dhcp-alloc<\/p>\n\n\n\n<p>6\u3001\u7aef\u53e3\u914d\u7f6e<\/p>\n\n\n\n<p>[H3C]interface Ethernet0\/3&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\/\/\u8fdb\u5165\u7aef\u53e3<\/p>\n\n\n\n<p>[H3C-Ethernet0\/3]shutdown&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\/\/\u5173\u95ed\u7aef\u53e3<\/p>\n\n\n\n<p>[H3C-Ethernet0\/3]speed 100&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/\u901f\u7387\u53ef\u4e3a10,100,1000\u548cauto(\u7f3a\u7701)<\/p>\n\n\n\n<p>[H3C-Ethernet0\/3]duplexfull&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/<strong>\u53cc\u5de5,\u53ef<\/strong>\u4e3ahalf,full\u548cauto\uff0c\u5149\u53e3\u548c\u6c47\u805a\u540e\u4e0d\u80fd\u914d\u7f6e<\/p>\n\n\n\n<p>[H3C-Ethernet0\/3]flow-control&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;\/\/<strong>\u5f00\u542f\u6d41\u63a7\uff0c\u9ed8\u8ba4\u4e3a\u5173\u95ed<\/strong><\/p>\n\n\n\n<p>[H3C-Ethernet0\/3]broadcast-suppression 20&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/\u8bbe\u7f6e\u6291\u5236\u5e7f\u64ad\u767e\u5206\u6bd4\u4e3a20%,\u53ef\u53d65,10,20,100,\u7f3a\u7701\u4e3a100,\u540c\u65f6\u7ec4\u64ad\u548c\u672a\u77e5\u5355\u64ad\u4e5f\u53d7\u6b64\u5f71\u54cd<\/p>\n\n\n\n<p>[H3C-Ethernet0\/3]loopback internal&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/\u5185\u73af\u6d4b\u8bd5<\/p>\n\n\n\n<p>[H3C-Ethernet0\/3]port link-type trunk&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/\u8bbe\u7f6e\u94fe\u8def\u7684<strong>\u7c7b\u578b\u4e3atrunk<\/strong><\/p>\n\n\n\n<p>[H3C-Ethernet0\/3]port trunk pvid vlan 20&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/\u8bbe\u7f6e20\u4e3a\u8be5trunk\u7684\u7f3a\u7701VLAN\uff0c\u9ed8\u8ba4\u4e3a1(trunk\u7ebf\u8def\u4e24\u7aef\u7684PVID\u5fc5\u987b\u4e00\u81f4)<\/p>\n\n\n\n<p>[H3C-Ethernet0\/3]port access vlan 20&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/\u5c06\u5f53\u524d<strong>access\u7aef\u53e3\u52a0\u5165\u6307\u5b9a\u7684VLAN<\/strong><\/p>\n\n\n\n<p>[H3C-Ethernet0\/3]port trunk permit vlanall&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/\u5141\u8bb8<strong>\u6240\u6709\u7684VLAN\u901a\u8fc7\u5f53\u524d\u7684trunk\u7aef\u53e3,<\/strong>\u53ef\u591a\u6b21\u4f7f\u7528\u8be5\u547d\u4ee4<\/p>\n\n\n\n<p>[H3C-Ethernet0\/3]mdiauto&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/\u8bbe\u7f6e\u4ee5\u592a\u7aef\u53e3\u4e3a\u81ea\u52a8\u76d1\u6d4b,normal\u4e3a\u76f4\u901a\u7ebf,across\u4e3a\u4ea4\u53c9\u7ebf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/p>\n\n\n\n<p>[H3C]link-aggregation Ethernet 0\/1 toEthernet 0\/4&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/<strong>\u5c061-4\u53e3\u52a0\u5165\u6c47\u805a\u7ec4,<\/strong>1\u4e3a\u4e3b\u7aef\u53e3,\u4e24\u7aef\u9700\u8981\u540c\u65f6\u914d\u7f6e,\u8bbe\u7f6e\u4e86\u7aef\u53e3\u955c\u50cf\u4ee5\u53ca\u7aef\u53e3\u9694\u79bb\u7684\u7aef\u53e3\u65e0\u6cd5\u6c47\u805a<\/p>\n\n\n\n<p>[H3C]undo link-aggregation Ethernet 0\/1&nbsp;&nbsp;&nbsp; &nbsp;\/\/\u5220\u9664\u8be5\u6c47\u805a\u7ec4<\/p>\n\n\n\n<p>[H3C]link-aggregation mode egress&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/\u914d\u7f6e\u7aef\u53e3\u6c47\u805a\u6a21\u5f0f\u4e3a\u6839\u636e\u76ee\u7684MAC\u5730\u5740\u8fdb\u884c\u8d1f\u8377\u5206\u62c5,\u53ef\u9009\u4e3a&nbsp; ingress,egress\u548cboth,\u7f3a\u7701\u4e3aboth<\/p>\n\n\n\n<p>[H3C]monitor-port Ethernet 0\/2&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/<strong>\u5c06\u8be5\u7aef\u53e3\u8bbe\u7f6e\u4e3a\u955c\u50cf\u7aef\u53e3<\/strong>,\u5fc5\u987b\u5148\u8bbe\u7f6e\u955c\u50cf\u7aef\u53e3,\u5220\u9664\u65f6\u5fc5\u987b\u5148\u5220\u9664\u88ab\u955c\u50cf\u7aef\u53e3,\u800c\u4e14\u5b83\u4eec\u4e0d\u80fd\u540c\u5728\u4e00\u4e2a\u7aef\u53e3,\u8be5\u7aef\u53e3\u4e0d\u80fd\u5728\u6c47\u805a\u7ec4\u4e2d,\u8bbe\u7f6e\u65b0\u955c\u50cf\u7aef\u53e3\u65f6,\u65b0\u53d6\u4ee3\u65e7,\u88ab\u955c\u50cf\u4e0d\u53d8<\/p>\n\n\n\n<p>[H3C]mirroring-port Ethernet 0\/3 toEthernet 0\/4 both&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/\u5c06<strong>\u7aef\u53e33\u548c4\u8bbe\u7f6e\u4e3a\u88ab\u955c\u50cf\u7aef\u53e3<\/strong>,both\u4e3a\u540c\u65f6\u76d1\u63a7\u63a5\u6536\u548c\u53d1\u9001\u7684\u62a5\u6587,inbound\u8868\u793a\u4ec5\u76d1\u63a7\u63a5\u6536\u7684\u62a5\u6587,outbound\u8868\u793a\u4ec5\u76d1\u63a7\u53d1\u9001\u7684\u62a5\u6587<\/p>\n\n\n\n<p>[H3C]display mirror<\/p>\n\n\n\n<p>[H3C]display interface Ethernet 0\/3<\/p>\n\n\n\n<p>&lt;H3C&gt;resetcounters&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/<strong>\u6e05\u9664\u6240\u6709\u7aef\u53e3\u7684\u7edf\u8ba1\u4fe1\u606f<\/strong><\/p>\n\n\n\n<p>[H3C]display link-aggregation Ethernet0\/3&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/<strong>\u663e\u793a\u7aef\u53e3<\/strong>\u6c47\u805a\u4fe1\u606f<\/p>\n\n\n\n<p>[H3C-Ethernet0\/3]virtual-cable-test&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;\/\/\u8bca\u65ad\u8be5\u7aef\u53e3\u7684\u7535\u8def\u72b6\u51b5<\/p>\n\n\n\n<p>7\u3001qos\u4f18\u5148\u7ea7\u914d\u7f6e<\/p>\n\n\n\n<p>&nbsp; QoS\u914d\u7f6e\u6b65\u9aa4\uff1a\u8bbe\u7f6e\u7aef\u53e3\u7684\u4f18\u5148\u7ea7,\u8bbe\u7f6e\u4ea4\u6362\u673a\u4fe1\u4efb\u62a5\u6587\u7684\u4f18\u5148\u7ea7\u65b9\u5f0f,\u961f\u5217\u8c03\u5ea6,\u7aef\u53e3\u9650\u901f<\/p>\n\n\n\n<p>[H3C-Ethernet0\/3]priority 7&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/\u8bbe\u7f6e\u7aef\u53e3<strong>\u4f18\u5148\u7ea7\u4e3a7<\/strong>\uff0c\u9ed8\u8ba4\u4e3a0<\/p>\n\n\n\n<p>[H3C]priority-trustcos&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/\u8bbe\u7f6e\u4ea4\u6362\u673a\u4fe1\u4efb\u62a5\u6587\u7684\u4f18\u5148\u7ea7\u65b9\u5f0f\u4e3acos(802.1p\u4f18\u5148\u7ea7,\u7f3a\u7701\u503c),\u8fd8\u53ef\u4ee5\u8bbe\u4e3adscp\u65b9\u5f0f<\/p>\n\n\n\n<p>[H3C]queue-scheduler hq-wrr 2 4 6 8&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/\u8bbe\u7f6e\u961f\u5217\u8c03\u5ea6\u7b97\u6cd5\u4e3aHQ-WRR(\u9ed8\u8ba4\u4e3aWRR),\u6743\u91cd\u4e3a2,4,6,8<\/p>\n\n\n\n<p>[H3C-Ethernet0\/3]line-rate inbound 29 &nbsp;&nbsp;&nbsp; &nbsp;\/\/\u5c06<strong>\u7aef\u53e3\u8fdb\u53e3\u901f\u7387\u9650\u5236<\/strong>\u4e3a2Mbps,\u53d61-28\u65f6,\u901f\u7387\u4e3arate*8*1024\/125,\u537364,128,192&#8230;1.792M\uff1b<\/p>\n\n\n\n<p>29-127\u65f6,\u901f\u7387\u4e3a(rate-27)*1024,\u53732M,3M,4M&#8230;100M\u3002<\/p>\n\n\n\n<p>[H3C]displayqueue-scheduler&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/\u663e\u793a\u961f\u5217\u8c03\u5ea6\u6a21\u5f0f\u53ca\u53c2\u6570<\/p>\n\n\n\n<p>[H3C]displaypriority-trust&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/<strong>\u663e\u793a\u4f18\u5148\u7ea7\u4fe1\u4efb\u6a21\u5f0f<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u534e\u4e3a\u4ea4\u6362\u673a\u57fa\u7840\u914d\u7f6e\u547d\u4ee4 1\u3001\u521b\u5efavlan\uff1a &lt;Quidway&gt;&nbsp; &nbsp; &#038;n &#8230; <a title=\"\u534e\u4e3a\u4ea4\u6362\u673a\u57fa\u7840\u914d\u7f6e\u547d\u4ee4\" class=\"read-more\" href=\"https:\/\/airy.cn\/WordPress\/?p=2481\" aria-label=\"\u9605\u8bfb \u534e\u4e3a\u4ea4\u6362\u673a\u57fa\u7840\u914d\u7f6e\u547d\u4ee4\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kadence_starter_templates_imported_post":false,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-2481","post","type-post","status-publish","format-standard","hentry","category-airy-tech"],"_links":{"self":[{"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/posts\/2481","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2481"}],"version-history":[{"count":1,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/posts\/2481\/revisions"}],"predecessor-version":[{"id":2482,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/posts\/2481\/revisions\/2482"}],"wp:attachment":[{"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}