{"id":263,"date":"2019-05-24T13:17:24","date_gmt":"2019-05-24T05:17:24","guid":{"rendered":"http:\/\/b.yesiyu.top\/?p=263"},"modified":"2019-05-24T13:17:24","modified_gmt":"2019-05-24T05:17:24","slug":"cisco%ef%bc%88%e6%80%9d%e7%a7%91%ef%bc%89%e4%b8%89%e5%b1%82%e4%ba%a4%e6%8d%a2%e6%9c%ba%e9%85%8d%e7%bd%ae%e5%ae%9e%e4%be%8b","status":"publish","type":"post","link":"https:\/\/b.yesiyu.top\/?p=263","title":{"rendered":"CISCO\uff08\u601d\u79d1\uff09\u4e09\u5c42\u4ea4\u6362\u673a\u914d\u7f6e\u5b9e\u4f8b"},"content":{"rendered":"\n<p><strong>\u914d\u7f6e\u9700\u6c42\uff1a<\/strong><\/p>\n\n\n\n<p>1.\u5b8c\u6210\u4e09\u5c42\u4ea4\u6362\u673a\u7684\u8bbe\u5907\u540d\u79f0\u548cip\u5730\u5740\u8bbe\u7f6e<\/p>\n\n\n\n<p>2.\u5b8c\u6210console\u63a7\u5236\u53f0\u5bc6\u7801\u8bbe\u7f6e<\/p>\n\n\n\n<p>3.\u5b8c\u6210telnet\u8fdc\u7a0b\u7ba1\u7406\u3002<\/p>\n\n\n\n<p>4.\u5b8c\u6210vlan\u521b\u5efa\u5e76\u5b9e\u73b0vlan\u4e92\u901a<\/p>\n\n\n\n<p>5.\u5b8c\u6210\u7f51\u53e3\u914d\u7f6e\u5e76\u5206\u914dvlan<\/p>\n\n\n\n<p><strong>\u4e00\u3001\u7f51\u7edc\u62d3\u6251\u56fe<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/cdn2.myxzy.com\/uploadfile\/201902\/5ca71551340787.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"http:\/\/cdn2.myxzy.com\/uploadfile\/201902\/5ca71551340787.png\" alt=\"96-1.png\"\/><\/a><\/figure>\n\n\n\n<p><strong>\u4e8c\u3001\u4ea4\u6362\u673a\u57fa\u7840\u914d\u7f6e<\/strong><\/p>\n\n\n\n<p>\u8bbe\u7f6e\u4ea4\u6362\u673a\u540d\u79f0\uff0c\u7279\u6743\u6a21\u5f0f\u3001\u8fdc\u7a0b\u7ba1\u7406\u548cconsole\u63a7\u5236\u53f0\u5bc6\u7801\u8bbe\u7f6e\u7b49<\/p>\n\n\n\n<p>switch(config)#hostname Switch1<\/p>\n\n\n\n<p>Switch1(config)#enable secret myxzy<\/p>\n\n\n\n<p>Switch1(config)#line vty 0 4<\/p>\n\n\n\n<p>Switch1(config-line)#password&nbsp;myxzy<\/p>\n\n\n\n<p>Switch1(config-line)#login<\/p>\n\n\n\n<p>Switch1(config-line)#exit<\/p>\n\n\n\n<p>Switch1(config)#line console 0<\/p>\n\n\n\n<p>Switch1(config-line)#password&nbsp;myxzy<\/p>\n\n\n\n<p>Switch1(config-line)#login<\/p>\n\n\n\n<p>Switch1(config-line)#exit<\/p>\n\n\n\n<p>Switch1#write<strong>\u4e09\u3001\u4ea4\u6362\u673a\u8bbe\u7f6eVlan<\/strong><\/p>\n\n\n\n<p>Switch1#vlan&nbsp;data<\/p>\n\n\n\n<p>Switch1(vlan)#vlan 2 name office<\/p>\n\n\n\n<p>Switch1(vlan)#vlan 8 name cctv<\/p>\n\n\n\n<p>Switch1(vlan)#exit<\/p>\n\n\n\n<p>Switch1#config terminal<\/p>\n\n\n\n<p>Switch1(config)#int range&nbsp;g1\/0\/1 &#8211; 8<\/p>\n\n\n\n<p>Switch1(config-if-range)#switchport mode access<\/p>\n\n\n\n<p>Switch1(config-if-range)#switchport access vlan 1&nbsp; &nbsp;<\/p>\n\n\n\n<p>Switch1(config-if-range)#exit<\/p>\n\n\n\n<p>Switch1(config)#int range&nbsp;g1\/0\/9 &#8211; 18<\/p>\n\n\n\n<p>Switch1(config-if-range)#switchport mode access<\/p>\n\n\n\n<p>Switch1(config-if-range)#switchport access vlan 2&nbsp; &nbsp;<\/p>\n\n\n\n<p>Switch1(config-if-range)#exit<\/p>\n\n\n\n<p>Switch1(config)#int range&nbsp;g1\/0\/19 &#8211; 24<\/p>\n\n\n\n<p>Switch1(config-if-range)#switchport mode access<\/p>\n\n\n\n<p>Switch1(config-if-range)#switchport access vlan 8&nbsp; &nbsp;<\/p>\n\n\n\n<p>Switch1(config-if-range)#exit<\/p>\n\n\n\n<p>Switch1(config)#int range&nbsp;g1\/1\/1-4<\/p>\n\n\n\n<p>Switch1(config-if-range)#switchport trunk encapsulation dot1q&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u4fee\u6539\u5c01\u88c5\u534f\u8bae\uff0c\u9ed8\u8ba4\u7684\u5c01\u88c5\u662fISL\u7684\uff0c\u6539\u6210802.1Q<\/p>\n\n\n\n<p>Switch1(config-if-range)#switchport mode&nbsp;trunk<\/p>\n\n\n\n<p>Switch1(config-if-range)#exitSwitch1#WriteSwitch1#show vlan&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\/\/\u67e5\u770bvlan\u5f53\u524d\u60c5\u51b5<\/p>\n\n\n\n<p><strong>\u56db\u3001Vlan\u8bbe\u7f6eIP\u548c\u4e92\u901a<\/strong><\/p>\n\n\n\n<p>Switch1(config)#ip&nbsp;routing<\/p>\n\n\n\n<p>Switch1(config)#int vlan 1&nbsp;<\/p>\n\n\n\n<p>Switch1(config-if)#ip address 192.168.0.1 255.255.255.0&nbsp;<\/p>\n\n\n\n<p>Switch1(config-if)#no shutdown<\/p>\n\n\n\n<p>Switch1(config-if)#exit<\/p>\n\n\n\n<p>Switch1(config)#int vlan 2&nbsp;<\/p>\n\n\n\n<p>Switch1(config-if)#ip address 192.168.2.1 255.255.254.0&nbsp;<\/p>\n\n\n\n<p>Switch1(config-if)#no shutdown<\/p>\n\n\n\n<p>Switch1(config-if)#exit<\/p>\n\n\n\n<p>Switch1(config)#int vlan 8<\/p>\n\n\n\n<p>Switch1(config-if)#ip address 192.168.8.1 255.255.254.0&nbsp;<\/p>\n\n\n\n<p>Switch1(config-if)#no shutdown<\/p>\n\n\n\n<p>Switch1(config-if)#exit<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u914d\u7f6e\u9700\u6c42\uff1a 1.\u5b8c\u6210\u4e09\u5c42\u4ea4\u6362\u673a\u7684\u8bbe\u5907\u540d\u79f0\u548cip\u5730\u5740\u8bbe\u7f6e 2.\u5b8c\u6210console\u63a7\u5236\u53f0\u5bc6\u7801\u8bbe\u7f6e 3.\u5b8c\u6210teln &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/b.yesiyu.top\/?p=263\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cCISCO\uff08\u601d\u79d1\uff09\u4e09\u5c42\u4ea4\u6362\u673a\u914d\u7f6e\u5b9e\u4f8b\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-263","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts\/263","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=263"}],"version-history":[{"count":1,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts\/263\/revisions"}],"predecessor-version":[{"id":264,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts\/263\/revisions\/264"}],"wp:attachment":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}