{"id":324,"date":"2020-07-11T21:01:55","date_gmt":"2020-07-11T13:01:55","guid":{"rendered":"http:\/\/b.yesiyu.top\/?p=324"},"modified":"2020-07-11T21:01:56","modified_gmt":"2020-07-11T13:01:56","slug":"huawei%e4%ba%a4%e6%8d%a2%e6%9c%bavrp%e9%85%8d%e7%bd%ae%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/b.yesiyu.top\/?p=324","title":{"rendered":"Huawei\u4ea4\u6362\u673aVRP\u914d\u7f6e\u4ecb\u7ecd"},"content":{"rendered":"\n<p>\u4e00\u3001\u547d\u4ee4\u89c6\u56fe<br>\u2022 \u7528\u6237\u89c6\u56fe&lt;Huawei&gt;<br>\u2022 \u7cfb\u7edf\u89c6\u56fe [Huawei]<br>\u2022 \u63a5\u53e3\u89c6\u56fe [Huawei-GigabitEthernet0\/0\/1]<br>\u2022 \u534f\u8bae\u89c6\u56fe [Huawei-rip-1]<br>\u2022 \u7528\u6237\u754c\u9762\uff08User-interface\uff09\u89c6\u56fe [Huawei-ui-vty0-4]<br>\u2022 \u7b49<br>VRP\u5206\u5c42\u7684\u547d\u4ee4\u7ed3\u6784\u5b9a\u4e49\u4e86\u5f88\u591a\u547d\u4ee4\u884c\u89c6\u56fe\uff0c\u6bcf\u6761\u547d\u4ee4\u53ea\u80fd\u5728\u7279\u5b9a\u7684\u89c6<br>\u56fe\u4e2d\u6267\u884c\u3002\u672c\u4f8b\u4ecb\u7ecd\u4e86\u5e38\u89c1\u7684\u547d\u4ee4\u884c\u89c6\u56fe\u3002\u6bcf\u4e2a\u547d\u4ee4\u90fd\u6ce8\u518c\u5728\u4e00\u4e2a\u6216\u591a<br>\u4e2a\u547d\u4ee4\u89c6\u56fe\u4e0b\uff0c\u7528\u6237\u53ea\u6709\u5148\u8fdb\u5165\u8fd9\u4e2a\u547d\u4ee4\u6240\u5728\u7684\u89c6\u56fe\uff0c\u624d\u80fd\u8fd0\u884c\u76f8\u5e94\u7684<br>\u547d\u4ee4\u3002\u8fdb\u5165\u5230VRP\u7cfb\u7edf\u7684\u914d\u7f6e\u754c\u9762\u540e\uff0cVRP\u4e0a\u6700\u5148\u51fa\u73b0\u7684\u89c6\u56fe\u662f\u7528\u6237\u89c6<br>\u56fe\u3002\u5728\u8be5\u89c6\u56fe\u4e0b\uff0c\u7528\u6237\u53ef\u4ee5\u67e5\u770b\u8bbe\u5907\u7684\u8fd0\u884c\u72b6\u6001\u548c\u7edf\u8ba1\u4fe1\u606f\u3002\u82e5\u8981\u4fee\u6539\u7cfb\u7edf\u53c2\u6570\uff0c\u7528\u6237\u5fc5\u987b\u8fdb\u5165\u7cfb\u7edf\u89c6\u56fe\u3002\u7528\u6237\u8fd8\u53ef\u4ee5\u901a\u8fc7\u7cfb\u7edf\u89c6\u56fe\u8fdb\u5165\u5176\u4ed6\u7684\u529f\u80fd\u914d\u7f6e\u89c6\u56fe\uff0c\u5982\u63a5\u53e3\u89c6\u56fe\u548c\u534f\u8bae\u89c6\u56fe\u3002\u901a\u8fc7\u63d0\u793a\u7b26\u53ef\u4ee5\u5224\u65ad\u5f53\u524d\u6240\u5904\u7684\u89c6\u56fe\uff0c\u4f8b\u5982\uff1a\u201c&lt; &gt;\u201d\u8868\u793a\u7528\u6237\u89c6\u56fe\uff0c\u201c[]\u201d\u8868\u793a\u9664\u7528\u6237\u89c6\u56fe\u4ee5\u5916\u7684\u5176\u5b83\u89c6\u56fe\u3002<br>\u4e8c\u3001\u57fa\u672cVRP\u547d\u4ee4\u7ed3\u6784<br>\u534e\u4e3a\u7f51\u7edc\u8bbe\u5907\u529f\u80fd\u7684\u914d\u7f6e\u548c\u4e1a\u52a1\u7684\u90e8\u7f72\u90fd\u662f\u901a\u8fc7VRP\u547d\u4ee4\u884c\u6765\u914d\u7f6e\uff0c\u547d\u4ee4\u884c\u662f\u5728\u8bbe\u5907\u5185\u90e8\u6ce8\u518c\u7684\uff0c\u5177\u6709\u4e00\u5b9a\u683c\u5f0f\u548c\u529f\u80fd\u7684\u5b57\u7b26\u4e32\u3002\u4e00\u6761\u547d\u4ee4\u884c\u7531\u5173\u952e\u5b57\u548c\u53c2\u6570\u7ec4\u6210\uff0c\u5173\u952e\u5b57\u53ef\u4ee5\u552f\u4e00\u786e\u5b9a\u4e00\u6761\u547d\u4ee4\u884c\uff0c\u53c2\u6570\u662f\u5b8c\u5584\u547d\u4ee4\u884c\u7684\u683c\u5f0f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/images2017.cnblogs.com\/blog\/1273933\/201712\/1273933-20171226162031088-499770393.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u4e09\u3001\u547d\u4ee4\u7ea7\u522b\u4e0e\u7528\u6237\u6743\u9650\u7ea7\u522b<br>\u7cfb\u7edf\u5c06\u547d\u4ee4\u8fdb\u884c\u5206\u7ea7\u7ba1\u7406\uff0c\u4ee5\u589e\u52a0\u8bbe\u5907\u7684\u5b89\u5168\u6027\u3002\u8bbe\u5907\u7ba1\u7406\u5458\u53ef\u4ee5\u8bbe\u7f6e<br>\u7528\u6237\u7ea7\u522b\uff0c\u4e00\u5b9a\u7ea7\u522b\u7684\u7528\u6237\u53ef\u4ee5\u4f7f\u7528\u5bf9\u5e94\u7ea7\u522b\u7684\u547d\u4ee4\u884c\u3002\u7f3a\u7701\u60c5\u51b5\u4e0b\u547d<br>\u4ee4\u7ea7\u522b\u5206\u4e3a0\uff5e3\u7ea7\uff0c\u7528\u6237\u7ea7\u522b\u5206\u4e3a0\uff5e15\u7ea7\u3002\u7528\u62370\u7ea7\u4e3a\u8bbf\u95ee\u7ea7\u522b\uff0c\u5bf9\u5e94<br>\u7f51\u7edc\u8bca\u65ad\u5de5\u5177\u547d\u4ee4\uff08ping\u3001tracert\uff09\u3001\u4ece\u672c\u8bbe\u5907\u51fa\u53d1\u8bbf\u95ee\u5916\u90e8\u8bbe\u5907\u7684\u547d<br>\u4ee4\uff08Telnet\u5ba2\u6237\u7aef\uff09\u3001\u90e8\u5206display\u547d\u4ee4\u7b49\u3002\u7528\u62371\u7ea7\u4e3a\u76d1\u63a7\u7ea7\u522b\uff0c\u5bf9\u5e94<br>\u547d\u4ee4\u7ea70\u30011\u7ea7\uff0c\u5305\u62ec\u7528\u4e8e\u7cfb\u7edf\u7ef4\u62a4\u7684\u547d\u4ee4\u4ee5\u53cadisplay\u7b49\u547d\u4ee4\u3002\u7528\u62372\u7ea7<br>\u662f\u914d\u7f6e\u7ea7\u522b\uff0c\u5305\u62ec\u5411\u7528\u6237\u63d0\u4f9b\u76f4\u63a5\u7f51\u7edc\u670d\u52a1\uff0c\u5305\u62ec\u8def\u7531\u3001\u5404\u4e2a\u7f51\u7edc\u5c42\u6b21<br>\u7684\u547d\u4ee4\u3002\u7528\u62373-15\u7ea7\u662f\u7ba1\u7406\u7ea7\u522b\uff0c\u5bf9\u5e94\u547d\u4ee43\u7ea7\uff0c\u8be5\u7ea7\u522b\u4e3b\u8981\u662f\u7528\u4e8e\u7cfb<br>\u7edf\u8fd0\u884c\u7684\u547d\u4ee4\uff0c\u5bf9\u4e1a\u52a1\u63d0\u4f9b\u652f\u6491\u4f5c\u7528\uff0c\u5305\u62ec\u6587\u4ef6\u7cfb\u7edf\u3001FTP\u3001TFTP\u4e0b\u8f7d<br>\u3001\u6587\u4ef6\u4ea4\u6362\u914d\u7f6e\u3001\u7535\u6e90\u4f9b\u5e94\u63a7\u5236\uff0c\u5907\u4efd\u677f\u63a7\u5236\u3001\u7528\u6237\u7ba1\u7406\u3001\u547d\u4ee4\u7ea7\u522b\u8bbe<br>\u7f6e\u3001\u7cfb\u7edf\u5185\u90e8\u53c2\u6570\u8bbe\u7f6e\u4ee5\u53ca\u7528\u4e8e\u4e1a\u52a1\u6545\u969c\u8bca\u65ad\u7684debugging\u547d\u4ee4\u3002<br>\u5728\u5177\u4f53\u4f7f\u7528\u4e2d\uff0c\u5982\u679c\u6211\u4eec\u6709\u591a\u4e2a\u7ba1\u7406\u5458\u5e10\u53f7\uff0c\u4f46\u53ea\u5141\u8bb8\u67d0\u4e00\u4e2a\u7ba1\u7406\u5458\u4fdd<br>\u5b58\u7cfb\u7edf\u914d\u7f6e\uff0c\u5219\u53ef\u4ee5\u5c06save\u547d\u4ee4\u7684\u7ea7\u522b\u63d0\u9ad8\u52304\u7ea7\uff0c\u5e76\u5b9a\u4e49\u53ea\u6709\u8be5\u7ba1\u7406<br>\u5458\u67094\u7ea7\u6743\u9650\u3002\u8fd9\u6837\uff0c\u5728\u4e0d\u5f71\u54cd\u5176\u4ed6\u7528\u6237\u7684\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u5b9e\u73b0\u5bf9\u547d\u4ee4\u7684<br>\u4f7f\u7528\u63a7\u5236\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b3\u7ea7\u7528\u6237\u5c31\u53ef\u4ee5\u64cd\u4f5cVRP\u7cfb\u7edf\u7684\u6240\u6709\u547d\u4ee4\u3002<\/p>\n\n\n\n<p><img decoding=\"async\" src=\"https:\/\/images2017.cnblogs.com\/blog\/1273933\/201712\/1273933-20171226162129541-646632091.png\" alt=\"\"><br><br>\u56db\u3001\u7528\u6237\u754c\u9762<br>\u6bcf\u7c7b\u7528\u6237\u754c\u9762\u90fd\u6709\u5bf9\u5e94\u7684\u7528\u6237\u754c\u9762\u89c6\u56fe\u3002\u7528\u6237\u754c\u9762\uff08User-interface\uff09\u89c6<br>\u56fe\u662f\u7cfb\u7edf\u63d0\u4f9b\u7684\u4e00\u79cd\u547d\u4ee4\u884c\u89c6\u56fe\uff0c\u7528\u6765\u914d\u7f6e\u548c\u7ba1\u7406\u6240\u6709\u5de5\u4f5c\u5728\u5f02\u6b65\u4ea4\u4e92<br>\u65b9\u5f0f\u4e0b\u7684\u7269\u7406\u63a5\u53e3\u548c\u903b\u8f91\u63a5\u53e3\uff0c\u4ece\u800c\u8fbe\u5230\u7edf\u4e00\u7ba1\u7406\u5404\u79cd\u7528\u6237\u754c\u9762\u7684\u76ee\u7684<br>\u3002\u5728\u8fde\u63a5\u5230\u8bbe\u5907\u524d\uff0c\u7528\u6237\u8981\u8bbe\u7f6e\u7528\u6237\u754c\u9762\u53c2\u6570\u3002\u7cfb\u7edf\u652f\u6301\u7684\u7528\u6237\u754c\u9762\u5305<br>\u62ecConsole\u7528\u6237\u754c\u9762\u548cVTY\u7528\u6237\u754c\u9762\u3002\u63a7\u5236\u53e3\uff08Console Port\uff09\u662f\u4e00\u79cd<br>\u901a\u4fe1\u4e32\u884c\u7aef\u53e3\uff0c\u7531\u8bbe\u5907\u7684\u4e3b\u63a7\u677f\u63d0\u4f9b\u3002\u865a\u62df\u7c7b\u578b\u7ec8\u7aef\uff08Virtual Type<br>Terminal\uff09\u662f\u4e00\u79cd\u865a\u62df\u7ebf\u8def\u7aef\u53e3\uff0c\u7528\u6237\u901a\u8fc7\u7ec8\u7aef\u4e0e\u8bbe\u5907\u5efa\u7acbTelnet\u6216<br>SSH\u8fde\u63a5\u540e\uff0c\u4e5f\u5c31\u5efa\u7acb\u4e86\u4e00\u6761VTY\uff0c\u5373\u7528\u6237\u53ef\u4ee5\u901a\u8fc7VTY\u65b9\u5f0f\u767b\u5f55\u8bbe\u5907<br>\u3002\u8bbe\u5907\u4e00\u822c\u6700\u591a\u652f\u630115\u4e2a\u7528\u6237\u540c\u65f6\u901a\u8fc7VTY\u65b9\u5f0f\u8bbf\u95ee\u3002\u6267\u884cuserinterface<br>maximum-vty number \u547d\u4ee4\u53ef\u4ee5\u914d\u7f6e\u540c\u65f6\u767b\u5f55\u5230\u8bbe\u5907\u7684VTY\u7c7b\u578b\u7528\u6237\u754c\u9762\u7684\u6700\u5927\u4e2a\u6570\u3002\u5982\u679c\u5c06\u6700\u5927\u767b\u5f55\u7528\u6237\u6570\u8bbe\u4e3a0\uff0c\u5219\u4efb\u4f55\u7528\u6237\u90fd\u4e0d\u80fd\u901a\u8fc7Telnet\u6216\u8005SSH\u767b\u5f55\u5230\u8def\u7531\u5668\u3002display user-interface \u547d\u4ee4\u7528\u6765\u67e5\u770b\u7528\u6237\u754c\u9762\u4fe1\u606f\u3002<br>\u4e0d\u540c\u7684\u8bbe\u5907\uff0c\u6216\u4f7f\u7528\u4e0d\u540c\u7248\u672c\u7684VRP\u8f6f\u4ef6\u7cfb\u7edf\uff0c\u5177\u4f53\u53ef\u4ee5\u88ab\u4f7f\u7528\u7684VTY\u63a5\u53e3\u7684\u6700\u5927\u6570\u91cf\u53ef\u80fd\u4e0d\u540c\u3002<\/p>\n\n\n\n<p><img decoding=\"async\" src=\"https:\/\/images2017.cnblogs.com\/blog\/1273933\/201712\/1273933-20171226162234245-1289531019.png\" alt=\"\"><br><br>\u4e94\u3001\u914d\u7f6e\u767b\u5f55\u6743\u9650<br>\u5982\u679c\u6ca1\u6709\u6743\u9650\u9650\u5236\uff0c\u672a\u6388\u6743\u7684\u7528\u6237\u5c31\u53ef\u4ee5\u4f7f\u7528\u8bbe\u5907\u83b7\u53d6\u4fe1\u606f\u5e76\u66f4\u6539\u914d\u7f6e<br>\u3002\u4ece\u8bbe\u5907\u5b89\u5168\u7684\u89d2\u5ea6\u8003\u8651\uff0c\u9650\u5236\u7528\u6237\u7684\u8bbf\u95ee\u548c\u64cd\u4f5c\u6743\u9650\u662f\u5f88\u6709\u5fc5\u8981\u7684\u3002<br>\u7528\u6237\u6743\u9650\u548c\u7528\u6237\u8ba4\u8bc1\u662f\u63d0\u5347\u7ec8\u7aef\u5b89\u5168\u7684\u4e24\u79cd\u65b9\u5f0f\u3002\u7528\u6237\u6743\u9650\u8981\u6c42\u89c4\u5b9a\u7528<br>\u6237\u7684\u7ea7\u522b\uff0c\u4e00\u5b9a\u7ea7\u522b\u7684\u7528\u6237\u53ea\u80fd\u6267\u884c\u7279\u5b9a\u7ea7\u522b\u7684\u547d\u4ee4\u3002<br>\u914d\u7f6e\u7528\u6237\u754c\u9762\u7684\u7528\u6237\u8ba4\u8bc1\u65b9\u5f0f\u540e\uff0c\u7528\u6237\u767b\u5f55\u8bbe\u5907\u65f6\uff0c\u9700\u8981\u8f93\u5165\u5bc6\u7801\u8fdb\u884c<br>\u8ba4\u8bc1\uff0c\u8fd9\u6837\u5c31\u9650\u5236\u4e86\u7528\u6237\u8bbf\u95ee\u8bbe\u5907\u7684\u6743\u9650\u3002\u5728\u901a\u8fc7VTY\u8fdb\u884cTelnet\u8fde\u63a5<br>\u65f6\uff0c\u6240\u6709\u63a5\u5165\u8bbe\u5907\u7684\u7528\u6237\u90fd\u5fc5\u987b\u8981\u7ecf\u8fc7\u8ba4\u8bc1\u3002<br>\u8bbe\u5907\u63d0\u4f9b\u4e09\u79cd\u8ba4\u8bc1\u6a21\u5f0f\uff0cAAA\u6a21\u5f0f\u3001\u5bc6\u7801\u8ba4\u8bc1\u6a21\u5f0f\u548c\u4e0d\u8ba4\u8bc1\u6a21\u5f0f\u3002AAA<br>\u8ba4\u8bc1\u6a21\u5f0f\u5177\u6709\u5f88\u9ad8\u7684\u5b89\u5168\u6027\uff0c\u56e0\u4e3a\u767b\u5f55\u65f6\u5fc5\u987b\u8f93\u5165\u7528\u6237\u540d\u548c\u5bc6\u7801\u3002\u5bc6\u7801<br>\u8ba4\u8bc1\u53ea\u9700\u8981\u8f93\u5165\u767b\u5f55\u5bc6\u7801\u5373\u53ef\uff0c\u6240\u4ee5\u6240\u6709\u7684\u7528\u6237\u4f7f\u7528\u7684\u90fd\u662f\u540c\u4e00\u4e2a\u5bc6\u7801<br>\u3002\u4f7f\u7528\u4e0d\u8ba4\u8bc1\u6a21\u5f0f\u5c31\u662f\u4e0d\u9700\u8981\u5bf9\u7528\u6237\u8ba4\u8bc1\u76f4\u63a5\u767b\u9646\u5230\u8bbe\u5907\u3002\u9700\u8981\u6ce8\u610f\u7684<br>\u662f\uff0cConsole\u754c\u9762\u9ed8\u8ba4\u4f7f\u7528\u4e0d\u8ba4\u8bc1\u6a21\u5f0f\u3002<br>\u5bf9\u4e8eTelnet\u767b\u5f55\u7528\u6237\uff0c\u6388\u6743\u662f\u975e\u5e38\u5fc5\u8981\u7684\uff0c\u6700\u597d\u8bbe\u7f6e\u7528\u6237\u540d\u3001\u5bc6\u7801\u548c\u6307<br>\u5b9a\u548c\u5e10\u53f7\u76f8\u5173\u8054\u7684\u6743\u9650\u3002<br>\u6ce8\uff1a\u4e0d\u540cVRP\u7248\u672c\u6267\u884cset authentication password cipher\u547d\u4ee4\u6709\u5dee\u5f02<br>\uff1a\u6709\u4e9b\u5e73\u53f0\u9700\u8981\u56de\u8f66\u540e\u8f93\u5165\u5bc6\u7801\uff0c\u53e6\u5916\u4e00\u4e9b\u5e73\u53f0\u53ef\u76f4\u63a5\u5728\u547d\u4ee4\u540e\u8f93\u5165\u5bc6<br>\u7801\u3002\u6545\u5728\u64cd\u4f5c\u5177\u4f53\u4ea7\u54c1\u65f6\u8bf7\u67e5\u9605\u76f8\u5e94VRP\u4ea7\u54c1\u6587\u6863\u3002<br>\u516d\u3001\u76f8\u5173\u914d\u7f6e<br>1\u3001 \u8fdb\u5165\u7528\u6237\u89c6\u56fe\uff0c\u547d\u4ee4\u63d0\u793a\u7b26\u662f&lt;&gt;\u53f7\uff08\u6b63\u5e38\u767b\u9646\u8bbe\u5907CLI\uff08command-line interface\uff0c\u547d\u4ee4\u884c\u754c\u9762\uff09\u540e\u7684\u7b2c\u4e00\u4e2a\u89c6\u56fe\uff0c\u67e5\u770b\u8fd0\u884c\u72b6\u6001\u6216\u5176\u4ed6\u53c2\u6570\uff09<br>&lt;Huawei&gt;&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; #Huawei\u9ed8\u8ba4\u7684\u4e3b\u673a\u540d<br>&lt;Huawei&gt;?<br>User view commands:<br>cd Change current directory<br>check Check information<br>clear Clear information<br>clock Specify the system clock<br>cluster Run cluster command<br>cluster-ftp FTP command of cluster<br>compare Compare function<br>configuration Configuration interlock<br>copy Copy from one file to another<br>debugging Enable system debugging functions<br>delete Delete a file<br>dir List files on a file system<br>display Display current system information<br>fixdisk Recover lost chains in storage device<br>format Format the device<br>ftp Establish an FTP connection<br>hwtacacs-user<br>kill Release a user terminal interface<br>language-mode Specify the language environment<br>lldp Link Layer Discovery Protocol<br>local-user Add\/Delete\/Set user(s)<br>lock Lock the current user terminal interface<br>mkdir Create a new directory<br>more Display the contents of a file<br>move Move the file<br>&#8212;- More &#8212;-<br>2\u3001 \u8f93\u5165system-view\u8fdb\u5165\u7cfb\u7edf\u89c6\u56fe\uff0c\u547d\u4ee4\u63d0\u793a\u7b26\u662f[ ]\u53f7\uff08\u4ece\u7528\u6237\u89c6\u56fe\u8fdb\u5165\uff0c\u914d\u7f6e\u8bbe\u5907\u7684\u7cfb\u7edf\u53c2\u6570\u7b49\uff09<br>&lt;Huawei&gt;system-view<br>[Huawei]<br>[Huawei]?<br>System view commands:<br>aaa AAA<br>acl Specify ACL configuration information<br>alarm Enter the alarm view<br>anti-attack Specify anti-attack configurations<br>application-apperceive Set application-apperceive information<br>arp ARP module<br>arp-miss Specify ARP MISS configuration information<br>arp-suppress Specify arp suppress configuration information,<br>default is disabled<br>authentication Authentication<br>autoconfig AutoConfig configuration information<br>bfd Bidirectional Forwarding Detection<br>bgp Border Gateway Protocol(BGP)<br>bootrom BootRom<br>bpdu BPDU message<br>btv Btv view<br>bulk-file Specify the file name of bulk statistics<br>bulk-stat Set bulk statistics<br>capture-packet Capture-packet<br>ccc Circuit cross connection<br>cfm Connectivity fault management<br>clear Cancel current configuration<br>cluster Specify the information for cluster configuration<br>command-privilege Specify the command level<br>&#8212;- More &#8212;-<br><br>3\u3001 \u8f93\u5165quit\u4ece\u7cfb\u7edf\u89c6\u56fe\u9000\u5230\u7528\u6237\u89c6\u56fe<br>[Huawei]quit<br>&lt;Huawei&gt;<\/p>\n\n\n\n<p>4\u3001\u8fdb\u5165\u67d0\u4e2a\u63a5\u53e3\u89c6\u56fe<br>[Huawei]interface GigabitEthernet 0\/0\/1<br>[Huawei-GigabitEthernet0\/0\/1]<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/images2017.cnblogs.com\/blog\/1273933\/201712\/1273933-20171226162355948-135163949.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>5\u3001\u73b0\u5728\u5f00\u59cb\u914d\u7f6evlan 100 \u7684\u7ba1\u7406ip \u548c\u5b50\u7f51\u63a9\u7801<br>[Huawei-Vlanif100]ip address 192.168.2.100 255.255.255.0<br>[Huawei-Vlanif100]<\/p>\n\n\n\n<p>6\u3001\u914d\u7f6eConsole\u7528\u6237\u754c\u9762\uff08\u7528\u4e8e\u9650\u5236\u4eba\u5458\u901a\u8fc7\u63a7\u5236\u53f0\uff08Console\uff09\u8fde\u63a5\u8bbf\u95ee\u8bbe\u5907\uff09<br>[Huawei]user-interface console 0&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;#\u8fdb\u5165Console\u7528\u6237\u754c\u9762<br>[Huawei-ui-console0]authentication-mode password<br>#\u914d\u7f6e\u7528\u6237\u754c\u9762\u7528\u6237\u9a8c\u8bc1\u65b9\u5f0f\u4e3a\u5bc6\u7801\u8ba4\u8bc1<br>[Huawei-ui-console0]set authentication password cipher 1234<br>#\u914d\u7f6e\u5bc6\u6587\u5bc6\u7801\u4e3a1234<\/p>\n\n\n\n<p>7\u3001\u914d\u7f6eVTY\u7528\u6237\u754c\u9762\uff08\u7528\u6237\u53ef\u4ee5\u4e0e\u8bbe\u5907\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u4ea4\u4e92\uff0c\u4e0d\u540c\u7684\u7528\u6237\u62e5\u6709\u5404\u81ea\u4e0d\u540c\u7684\u7528\u6237\u754c\u9762\uff0c\u4f8bConsole\u3001AUX \u6216VTY\u7b49\u8fde\u63a5\u65b9\u5f0f\uff0c\u8fd9\u91ccVTY(Virtual Type Terminal) \u662f\u865a\u62df\u7ec8\u7aef\u7684\u610f\u601d\uff09<br>[Huawei]user-interface vty 0 4&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; #\u8fdb\u5165vty\u7528\u6237\u754c\u9762<br>[Huawei-ui-vty0-4]user privilege level 3&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#\u914d\u7f6e\u7528\u6237\u7ea7\u522b\u4e3a3<br>[Huawei-ui-vty0-4]authentication-mode aaa<br>#\u914d\u7f6e\u7528\u6237\u754c\u9762\u7528\u6237\u9a8c\u8bc1\u65b9\u5f0f\u4e3aaaa<br>[Huawei-ui-vty0-4]quit<br>[Huawei]aaa&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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#\u8fdb\u5165aaa\u89c6\u56fe<br>[Huawei-aaa]local-user admin12 password cipher 1234<br>#\u914d\u7f6e\u7528\u6237\u540d\u4e3aadmin12 \u5bc6\u6587\u5bc6\u7801\u4e3a1234<br>[Huawei-aaa]local-user admin12 service-type telnet<br>#\u914d\u7f6e\u7528\u6237\u7684\u63a5\u5165\u7c7b\u578b\u4e3atelnet<br>[Huawei-aaa]quit<br>[Huawei]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u547d\u4ee4\u89c6\u56fe\u2022 \u7528\u6237\u89c6\u56fe&lt;Huawei&gt;\u2022 \u7cfb\u7edf\u89c6\u56fe [Huawei]\u2022 \u63a5\u53e3\u89c6\u56fe [Huawei &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/b.yesiyu.top\/?p=324\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cHuawei\u4ea4\u6362\u673aVRP\u914d\u7f6e\u4ecb\u7ecd\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-324","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts\/324","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=324"}],"version-history":[{"count":1,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts\/324\/revisions"}],"predecessor-version":[{"id":325,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts\/324\/revisions\/325"}],"wp:attachment":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}