{"id":992,"date":"2022-02-06T21:45:11","date_gmt":"2022-02-06T13:45:11","guid":{"rendered":"https:\/\/b.yesiyu.top\/?p=992"},"modified":"2022-02-06T21:45:11","modified_gmt":"2022-02-06T13:45:11","slug":"%e5%8d%8e%e4%b8%ba%e8%b7%af%e7%94%b1%e4%ba%a4%e6%8d%a2%e6%9c%ba%e7%9a%84%e5%9f%ba%e7%a1%80%e9%85%8d%e7%bd%ae%e5%91%bd%e4%bb%a4%e5%a4%a7%e5%85%a8%e7%bb%8f%e5%85%b8%e7%ae%80%e6%b4%81%ef%bc%8c%e9%9d%9e","status":"publish","type":"post","link":"https:\/\/b.yesiyu.top\/?p=992","title":{"rendered":"\u534e\u4e3a\u8def\u7531\u4ea4\u6362\u673a\u7684\u57fa\u7840\u914d\u7f6e\u547d\u4ee4\u5927\u5168,\u7ecf\u5178\u7b80\u6d01\uff0c\u975e\u5e38\u9002\u5408\u521d\u5b66\u8005\uff01"},"content":{"rendered":"<section>\n<section>\n<section>\n<section>\n<section>\n<section>01<\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section>\n<section><strong>\u6b63\u6587<\/strong><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section data-tools=\"135\u7f16\u8f91\u5668\" data-id=\"100777\">\n<section>\n<section>\n<section><\/section>\n<section data-brushtype=\"text\">\u5355\u4ea4\u6362\u673aVLAN\u5212\u5206<\/section>\n<\/section>\n<section>\n<section>\n<section><\/section>\n<section>\n<section>\n<section><\/section>\n<\/section>\n<section>\n<section data-autoskip=\"1\">\u8fdb\u5165\u7cfb\u7edf\u89c6\u56fe<strong>\u00a0system<\/strong><\/p>\n<p>\u8fdb\u5165\u7cfb\u7edf\u89c6\u56fe<strong>\u00a0system-view<\/strong><\/p>\n<p>\u9000\u5230\u7cfb\u7edf\u89c6\u56fe<strong>\u00a0quit<\/strong><\/p>\n<p>\u5220\u9664vlan 20\u00a0<strong>undo vlan 20\u00a0<\/strong><\/p>\n<p>\u4ea4\u6362\u673a\u547d\u540d\u00a0\u00a0\u00a0<strong>sysname\u00a0<\/strong><\/p>\n<p>\u663e\u793avlan\u00a0\u00a0\u00a0\u00a0<strong>disp vlan<\/strong><\/p>\n<p>\u521b\u5efavlan(\u4e5f\u53ef\u8fdb\u5165vlan 20)\u00a0\u00a0<strong>vlan 20\u00a0<\/strong><\/p>\n<p>\u628a\u7aef\u53e31-5\u653e\u5165VLAN 20 \u4e2d\u00a0<strong>\u00a0port e1\/0\/1 to e1\/0\/5\u00a0<\/strong><\/p>\n<p>\u663e\u793avlan\u91cc\u7684\u7aef\u53e320\u00a0\u00a0<strong>disp vlan 20<\/strong><\/p>\n<p>\u8fdb\u5165\u7aef\u53e324\u00a0<strong>\u00a0int e1\/0\/24\u00a0<\/strong><\/p>\n<p>\u628a\u5f53\u524d\u7aef\u53e3\u653e\u5165vlan 20\u00a0\u00a0<strong>port access vlan 20\u00a0<\/strong><\/p>\n<p>\u8868\u793a\u5220\u9664\u5f53\u524dVLAN\u7aef\u53e310\u00a0\u00a0<strong>undo port e1\/0\/10\u00a0<\/strong><\/p>\n<p>\u67e5\u770b\u5f53\u524d\u914d\u7f6e\u00a0\u00a0<strong>disp curr\u00a0<\/strong><\/p>\n<p>\u5220\u6389\u914d\u7f6e\u7684\u547d\u4ee4<strong>\u00a0\u590d\u5236\u547d\u4ee4\u5728\u524d\u52a0undo<\/strong><\/p>\n<\/section>\n<\/section>\n<section>\n<section><\/section>\n<\/section>\n<\/section>\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section data-tools=\"135\u7f16\u8f91\u5668\" data-id=\"100777\">\n<section>\n<section>\n<section><\/section>\n<section data-brushtype=\"text\">\u8def\u7531\u5668\u57fa\u672c\u914d\u7f6e\u547d\u4ee4<\/section>\n<\/section>\n<section>\n<section>\n<section><\/section>\n<section>\n<section>\n<section><\/section>\n<\/section>\n<section>\n<section data-autoskip=\"1\">\u547d\u540d\u8def\u7531\u5668(\u6216\u4ea4\u6362\u673a)\u00a0<strong>sysname router_name<\/strong><\/p>\n<p>\u5220\u9664Flash ROM\u4e2d\u7684\u914d\u7f6e\u00a0\u00a0<strong>delete<\/strong><\/p>\n<p>\u5c06\u914d\u7f6e\u5199\u5165Flash ROM\u00a0\u00a0<strong>\u00a0save\u00a0<\/strong><\/p>\n<p>\u8fdb\u5165\u63a5\u53e3\u914d\u7f6e\u6a21\u5f0f\u00a0<strong>\u00a0interface serial 0\u00a0\u00a0<\/strong><\/p>\n<p>\u9000\u51fa\u63a5\u53e3\u6a21\u5f0f\u5230\u7cfb\u7edf\u89c6\u56fe\u00a0<strong>\u00a0quit\u00a0<\/strong><\/p>\n<p>\u5173\u95ed\/\u91cd\u542f\u63a5\u53e3\u00a0<strong>\u00a0shutdown\/undo shutdown\u00a0<\/strong><\/p>\n<p>\u4e3a\u63a5\u53e3\u914d\u7f6eIP\u5730\u5740\u548c\u5b50\u7f51\u63a9\u7801\u00a0<strong>\u00a0ip address ip_address subnet_mask\u00a0<\/strong><\/p>\n<p>\u663e\u793a\u63a5\u53e3\u914d\u7f6e\u4fe1\u606f\u00a0\u00a0<strong>display interfaces<\/strong><\/p>\n<p>\u663e\u793a\u8def\u7531\u8868\u00a0\u00a0<strong>display ip routing\u00a0<\/strong><\/p>\n<p>\u6d4b\u8bd5\u7f51\u7edc\u8fde\u901a\u6027\u00a0<strong>\u00a0ping ip_address\u00a0<\/strong><\/p>\n<p>\u6d4b\u8bd5\u6570\u636e\u5305\u4ece\u4e3b\u673a\u5230\u76ee\u7684\u5730\u6240\u7ecf\u8fc7\u7684\u7f51\u5173\u00a0\u00a0<strong>tracert ip_address\u00a0<\/strong><\/p>\n<p>\u6253\u5f00\u6240\u6709\u8c03\u8bd5\u4fe1\u606f\u00a0<strong>debug all\u00a0<\/strong><\/p>\n<p>\u5173\u95ed\u6240\u6709\u8c03\u8bd5\u4fe1\u606f\u00a0<strong>undo debug all\u00a0<\/strong><\/p>\n<p>\u5f00\u542f\u8c03\u8bd5\u4fe1\u606f\u8f93\u51fa\u529f\u80fd\u00a0<strong>info-center enable\u00a0<\/strong><\/p>\n<p>\u5c06\u8c03\u8bd5\u4fe1\u606f\u8f93\u51fa\u5230PC<strong>\u00a0info-center console dubugging\u00a0<\/strong><\/p>\n<p>\u5c06\u8c03\u8bd5\u4fe1\u606f\u8f93\u51fa\u5230Telnet\u7ec8\u7aef\u6216\u54d1\u7ec8\u7aef\u00a0<strong>info-center monitor dubugging\u00a0\u00a0<\/strong><\/p>\n<\/section>\n<\/section>\n<section>\n<section><\/section>\n<\/section>\n<\/section>\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p>&nbsp;<\/p>\n<section data-tools=\"135\u7f16\u8f91\u5668\" data-id=\"100777\">\n<section>\n<section>\n<section><\/section>\n<section data-brushtype=\"text\">\u914d\u7f6e\u4ea4\u6362\u673a\u652f\u6301TELNE<\/section>\n<\/section>\n<section>\n<section>\n<section><\/section>\n<section>\n<section>\n<section><\/section>\n<\/section>\n<section>\n<section data-autoskip=\"1\">\u8fdb\u5165\u7cfb\u7edf\u89c6\u56fe\u00a0\u00a0<strong>system<\/strong><\/p>\n<p>\u4ea4\u6362\u673a\u547d\u540d\u00a0 \u00a0<strong>\u00a0sysname<\/strong><\/p>\n<p>\u8fdb\u5165VLAN 1\u00a0 \u00a0<strong>int vlan 1\u00a0<\/strong><\/p>\n<p>\u914d\u7f6eIP\u5730\u5740<strong>ip address 192.168.3.100 255.255.255.0<\/strong><\/p>\n<p>\u8fdb\u5165\u865a\u62df\u7ec8\u7aef\u00a0<strong>user-int vty 0 4\u00a0<\/strong><\/p>\n<p>\u8bbe\u7f6e\u53e3\u4ee4\u6a21\u5f0f\u00a0<strong>authentication-mode password (aut password)\u00a0<\/strong><\/p>\n<p>\u8bbe\u7f6e\u53e3\u4ee4\u00a0<strong>set authentication password simple 222 (set aut pass sim 222)\u00a0<\/strong><\/p>\n<p>\u914d\u7f6e\u7528\u6237\u7ea7\u522b\u00a0<strong>user privilege level 3(use priv lev 3)<\/strong><\/p>\n<p>\u67e5\u770b\u5f53\u524d\u914d\u7f6e\u00a0<strong>disp current-configuration \uff08disp cur)<\/strong><\/p>\n<p>\u67e5\u770b\u4ea4\u6362\u673aVLAN IP\u914d\u7f6e\u00a0<strong>disp ip int\u00a0<\/strong><\/p>\n<p>*\u5220\u9664\u914d\u7f6e\u5fc5\u987b\u9000\u5230\u7528\u6237\u6a21\u5f0f<\/p>\n<p>\u5220\u9664\u914d\u7f6e\u00a0<strong>reset saved-configuration(reset saved)\u00a0<\/strong><\/p>\n<p>\u91cd\u542f\u4ea4\u6362\u673a\u00a0<strong>Reboot<\/strong><\/p>\n<\/section>\n<p>&nbsp;<\/p>\n<section data-tools=\"135\u7f16\u8f91\u5668\" data-id=\"100777\">\n<section>\n<section>\n<section data-brushtype=\"text\"><strong>\u4e09\u5c42\u4ea4\u6362\u673a\u914d\u7f6eVLAN-VLAN\u901a\u8baf<\/strong><\/section>\n<\/section>\n<section>\n<section>\n<section><\/section>\n<section>\n<section>\n<section><\/section>\n<\/section>\n<section>\n<section data-autoskip=\"1\">sw1(\u4e09\u5c42\u4ea4\u6362\u673a\uff09:<\/p>\n<p>\u8fdb\u5165\u89c6\u56fe\u00a0<strong>system\u00a0<\/strong><\/p>\n<p>\u547d\u540d\u00a0<strong>sysname<\/strong><\/p>\n<p>\u5efa\u7acbVLAN 10\u00a0<strong>vlan 10\u00a0<\/strong><\/p>\n<p>\u5efa\u7acbVLAN 20\u00a0<strong>vlan 20\u00a0<\/strong><\/p>\n<p>\u8fdb\u5165\u7aef\u53e320\u00a0<strong>int e1\/0\/20<\/strong><\/p>\n<p>\u628a\u7aef\u53e320\u653e\u5165VLAN 10\u00a0<strong>port access vlan 10\u00a0<\/strong><\/p>\n<p>\u8fdb\u516524\u7aef\u53e3<strong>int e1\/0\/24\u00a0<\/strong><\/p>\n<p>\u628a24\u7aef\u53e3\u8bbe\u4e3aTRUNK\u7aef\u53e3<strong>\u00a0port link-type trunk\u00a0<\/strong><\/p>\n<p><strong>port trunk permit vlan all (port trunk permit vlan 10 \u53ea\u80fd\u4e3avlan 10\u4f7f\u7528)<\/strong>24\u7aef\u53e3\u4e3a\u6240\u6709VLAN\u4f7f\u7528<\/p>\n<p>sw2:<\/p>\n<p><strong>vlan 10<\/strong><\/p>\n<p><strong>int e1\/0\/5<\/strong><\/p>\n<p><strong>port access vlan 10<\/strong><\/p>\n<p><strong>int e1\/0\/24<\/strong><\/p>\n<p>\u628a24\u7aef\u53e3\u8bbe\u4e3aTRUNK\u7aef\u53e3\u00a0port link-type trunk<\/p>\n<p>port trunk permit vlan all (port trunk permit vlan 10 \u53ea\u80fd\u4e3avlan 10\u4f7f\u7528)24\u7aef\u53e3\u4e3a\u6240\u6709VLAN\u4f7f\u7528<\/p>\n<p>sw1(\u4e09\u5c42\u4ea4\u6362\u673a\uff09:<\/p>\n<p>\u521b\u5efa\u865a\u62df\u63a5\u53e3VLAN 10\u00a0<strong>int vlan 10\u00a0<\/strong><\/p>\n<p>\u8bbe\u7f6e\u865a\u62df\u63a5\u53e3VLAN 10\u7684\u5730\u5740\u00a0<strong>ip address 192.168.10.254 255.255.255.0\u00a0<\/strong><\/p>\n<p>\u521b\u5efa\u865a\u62df\u63a5\u53e3VLAN 20<strong>\u00a0int vlan 20<\/strong><\/p>\n<p>\u8bbe\u7f6e\u865a\u62df\u63a5\u53e3IP VLAN 20\u7684\u5730\u5740<strong>\u00a0ip address 192.168.20.254 255.255.255.0\u00a0<\/strong><\/p>\n<p><strong>\u6ce8\u610f\uff1avlan 10\u91cc\u7684\u8ba1\u7b97\u673a\u7684\u7f51\u5173\u8bbe\u4e3a 192.168.10.254<\/strong><\/p>\n<p><strong>vlan 20\u91cc\u7684\u8ba1\u7b97\u673a\u7684\u7f51\u5173\u8bbe\u4e3a 192.168.20.254<\/strong><\/p>\n<\/section>\n<\/section>\n<section>\n<section><\/section>\n<\/section>\n<\/section>\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section data-tools=\"135\u7f16\u8f91\u5668\" data-id=\"100777\">\n<section>\n<section>\n<section><\/section>\n<section data-brushtype=\"text\">IP\u8bbf\u95ee\u5217\u8868<\/section>\n<\/section>\n<section>\n<section>\n<section><\/section>\n<section>\n<section>\n<section><\/section>\n<\/section>\n<section>\n<section data-autoskip=\"1\">int e1\/0<\/p>\n<p>ip address 192.168.3.1 255.255.255.0<\/p>\n<p>int e2\/0<\/p>\n<p>ip address 192.168.1.1 255.255.255.0<\/p>\n<p>int e3\/0<\/p>\n<p>ip address 192.168.2.1 255.255.255.0<\/p>\n<p>acl number 2001 \uff082001-2999\u5c5e\u4e8e\u57fa\u672c\u7684\u8bbf\u95ee\u5217\u8868\uff09<\/p>\n<p>rule 1 deny source 192.168.1.0 0.0.0.255 (\u62d2\u7edd\u5730\u5740192.168.1.0\u7f51\u6bb5\u7684\u6570\u636e\u901a\u8fc7)<\/p>\n<p>rule 2 permit source 192.168.3.0 0.0.0.255(\u5141\u8bb8\u5730\u5740192.168.3.0\u7f51\u6bb5\u7684\u6570\u636e\u901a\u8fc7)<\/p>\n<p>\u4ee5\u4e0b\u662f\u628a\u8bbf\u95ee\u63a7\u5236\u5217\u8868\u5728\u63a5\u53e3\u4e0b\u5e94\u7528\uff1a<\/p>\n<p>firewall enable<\/p>\n<p>firewall default permit<\/p>\n<p>int e3\/0<\/p>\n<p>firewall packet-filter 2001 outbound<\/p>\n<p>disp acl 2001 \u663e\u793a\u4fe1\u606f<\/p>\n<p>undo acl number 2001 \u5220\u96642001\u63a7\u5236\u5217\u8868<\/p>\n<p>\u6269\u5c55\u8bbf\u95ee\u63a7\u5236\u5217\u8868<\/p>\n<p>acl number 3001<\/p>\n<p>rule deny tcp source 192.168.3.0 0.0.0.255 destination 192.168.2.00.0.0.255 destination-port eq ftp<\/p>\n<p>\u5fc5\u987b\u5728r-acl-adv-3001\u4e0b\u624d\u80fd\u6267\u884c<\/p>\n<p>rule permit ip source an destination any (rule permit ip)<\/p>\n<p>int e3\/0<\/p>\n<p>firewall enable \u5f00\u542f\u9632\u706b\u5899<\/p>\n<p>firewall packet-filter 3001 inbound<\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>01 \u6b63\u6587 \u5355\u4ea4\u6362\u673aVLAN\u5212\u5206 \u8fdb\u5165\u7cfb\u7edf\u89c6\u56fe\u00a0system \u8fdb\u5165\u7cfb\u7edf\u89c6\u56fe\u00a0system-view \u9000\u5230\u7cfb\u7edf\u89c6 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/b.yesiyu.top\/?p=992\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201c\u534e\u4e3a\u8def\u7531\u4ea4\u6362\u673a\u7684\u57fa\u7840\u914d\u7f6e\u547d\u4ee4\u5927\u5168,\u7ecf\u5178\u7b80\u6d01\uff0c\u975e\u5e38\u9002\u5408\u521d\u5b66\u8005\uff01\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-992","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts\/992","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=992"}],"version-history":[{"count":1,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts\/992\/revisions"}],"predecessor-version":[{"id":994,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts\/992\/revisions\/994"}],"wp:attachment":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=992"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=992"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}