{"id":5462,"date":"2013-08-21T11:49:36","date_gmt":"2013-08-21T03:49:36","guid":{"rendered":"http:\/\/jpuyy.com\/?p=5462"},"modified":"2015-01-15T14:31:28","modified_gmt":"2015-01-15T06:31:28","slug":"cisco-2960s-configuration","status":"publish","type":"post","link":"https:\/\/jpuyy.com\/?p=5462","title":{"rendered":"cisco 2960s\u5e38\u7528\u547d\u4ee4"},"content":{"rendered":"<p>\u67e5\u770b\u8fd0\u884c\u4e2d\u7684\u914d\u7f6e<\/p>\n<pre>show running-config<\/pre>\n<p>\u8bbe\u5907\u7684\u578b\u53f7\uff0c\u8fd0\u884c\u65f6\u95f4\uff0c\u56fa\u4ef6<\/p>\n<pre>show version<\/pre>\n<p>\u5176\u4e2d<\/p>\n<p class=\"p1\">Processor board ID \u6216 System serial number\u00a0\u4e3a\u8bbe\u5907\u51fa\u5382\u65f6\u5019\u7684\u5e8f\u5217\u53f7<\/p>\n<pre class=\"p1\">show version | in uptime<\/pre>\n<pre class=\"p1\">uptime is 12 weeks, 3 days, 20 hours, 17 minutes<\/pre>\n<p>\u67e5\u770bmac\u5730\u5740\u8868<\/p>\n<pre>show mac address-table<\/pre>\n<p>\u67e5\u770b\u5177\u4f53\u7684mac\u5730\u5740<\/p>\n<pre class=\"p1\">show mac address-table address 0008.00ff.fc04<\/pre>\n<p>\u8bbe\u7f6e\u4ea4\u6362\u673a\u7684vlan ip\u4fe1\u606f\uff0c\u5728configure terminal\u6a21\u5f0f\u4e0b<\/p>\n<pre>ip address 192.168.8.222 255.255.255.0\r\nip default-gateway 192.168.8.1<\/pre>\n<p>\u67e5\u770b\u5f53\u524d\u8def\u7531\u5668\u7684\u65f6\u95f4<\/p>\n<pre>show clock<\/pre>\n<p>\u67e5\u770b\u65e5\u5fd7\u4fe1\u606f<\/p>\n<pre>show log<\/pre>\n<p>\u67e5\u770b\u63a5\u53e3\u7684\u4fe1\u606f\uff0c\u5f88\u5168\uff0c\u540e\u9762\u53ef\u4ee5\u63a5\u5177\u4f53\u7684\u9879<\/p>\n<pre>show interfaces<\/pre>\n<pre>show interfaces description\u67e5\u770b\u63a5\u53e3up or down<\/pre>\n<pre>show interfaces status \u5feb\u901f\u67e5\u770b\u63a5\u53e3<\/pre>\n<p>\u67e5\u770bcdp\u90bb\u5c45<\/p>\n<pre>show cdp neighbors<\/pre>\n<p>\u67e5\u770bvlan\u4fe1\u606f<\/p>\n<pre>show vlan<\/pre>\n<p>\u8bbe\u7f6e\u65f6\u95f4<\/p>\n<pre>clock set 16:51:00 20 Aug 2013<\/pre>\n<p>\u67e5\u770b\u5b66\u4e60\u5230\u7684arp\u8868<\/p>\n<pre>show ip arp<\/pre>\n<p>\u8fc7\u6ee4\uff0c\u7c7b\u4f3c\u4e8egrep<\/p>\n<pre>show arp | include 0010.d1aa.0224<\/pre>\n<p>\u67e5\u770b\u5185\u5b58\u60c5\u51b5\uff0c\u53ef\u4ee5\u770b\u5230\u5185\u5b58\u670970MB<\/p>\n<pre>show processes memory\r\n\r\nProcessor Pool Total: \u00a0 73922040 Used: \u00a0 26257284 Free: \u00a0 47664756\r\n\r\nI\/O Pool Total: \u00a0 14680064 Used: \u00a0 12235212 Free:\u00a0 \u00a0 2444852\r\n\r\nDriver te Pool Total:\u00a0 \u00a0 1048576 Used: \u00a0 \u00a0 \u00a0 \u00a0 40 Free:\u00a0 \u00a0 1048536\r\n<\/pre>\n<p class=\"p1\">\u67e5\u770b cpu \u4f7f\u7528\u60c5\u51b5<\/p>\n<pre>show processes cpu sorted\r\nCPU utilization for five seconds: 9%\/0%; one minute: 9%; five minutes: 9%<\/pre>\n<p>\u8f93\u51fa\u8fc7\u591a\u65f6\uff0c\u53ef\u4ee5\u4e0d\u6298\u53e0<\/p>\n<pre>terminal length 0<\/pre>\n<p>\u6e05\u7406\u5355\u6761arp\u4fe1\u606f<\/p>\n<pre>clear arp 10.10.0.249<\/pre>\n<pre>#clear arp ?\r\n A.B.C.D IP address \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 # \u6e05\u7406\u5355\u6761\u8bb0\u5f55\r\n counters Clear ARP counters \u00a0 \u00a0 \u00a0 \u00a0 \uff03\u91cd\u7f6e\u8ba1\u6570\u5668\r\n interface Clear the entire ARP cache on the interface \u00a0# \u6e05\u7a7a\u6574\u4e2aarp\u7f13\u5b58\r\n vrf Clear entries for a VPN Routing\/Forwarding instance<\/pre>\n<p>\u914d\u7f6eTelnet\u5bc6\u7801\u7684\u8fc7\u7a0b\u5982\u4e0b.copy\u81ea\uff1ahttp:\/\/network.51cto.com\/art\/201007\/212927.htm<\/p>\n<p>\u7b2c1\u6b65,\u8fdb\u5165\u5168\u5c40\u914d\u7f6e\u6a21\u5f0f.<\/p>\n<pre>Cisco# configure terminal<\/pre>\n<p>\u7b2c2\u6b65,\u8f93\u5165Telnet\u8fdb\u7a0b\u53f7,\u8fdb\u5165Line\u914d\u7f6e\u6a21\u5f0f.\u5728\u4e00\u53f0\u4ea4\u6362\u673a\u548c\u8def\u7531\u5668\u4e0a,\u6700\u591a\u53ef\u4ee5\u5b9e\u73b016\u4e2aTelnet\u8fdb\u7a0b,\u65b9\u4fbf\u591a\u4e2a\u7528\u6237\u540c\u65f6\u67e5\u770b\u548c\u7ba1\u7406.&#8221;0 15&#8243;\u8868\u660e\u914d\u7f6e\u6240\u6709\u53ef\u80fd\u768416\u4e2a\u8fdb\u7a0b.<\/p>\n<pre>Cisco(config)# line vty 0 15<\/pre>\n<p>\u7b2c3\u6b65,\u6307\u5b9aTelnet\u5bc6\u7801.Telnet\u5bc6\u7801\u8bbe\u7f6e\u8981\u6c42\u4e0eEnable\u76f8\u540c.<\/p>\n<pre>Cisco(config)# password password<\/pre>\n<p>\u7b2c4\u6b65,\u8fd4\u56de\u7279\u6743\u6a21\u5f0f.<\/p>\n<pre>Cisco(config)# end<\/pre>\n<p>\u7b2c5\u6b65,\u4fdd\u5b58\u914d\u7f6eTelnet\u5bc6\u7801\u6700\u540e\u7684\u4fee\u6539.<\/p>\n<pre>Cisco# copy running-config startup-config<\/pre>\n<p>\u6539\u4e3b\u673a\u540d\u4e5f\u5728configure terminal\u91cc<\/p>\n<pre>hostname yourhostname<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u67e5\u770b\u8fd0\u884c\u4e2d\u7684\u914d\u7f6e show running-config \u8bbe\u5907\u7684\u578b\u53f7\uff0c\u8fd0\u884c\u65f6\u95f4\uff0c\u56fa\u4ef6 show version \u5176\u4e2d Processor board ID \u6216 System serial number\u00a0\u4e3a\u8bbe\u5907\u51fa\u5382\u65f6\u5019\u7684\u5e8f\u5217\u53f7 show version | in uptime uptime is 12 weeks, 3 days, 20 hours, 17 minutes \u67e5\u770bmac\u5730\u5740\u8868 show mac address-table \u67e5\u770b\u5177\u4f53\u7684mac\u5730\u5740 show mac address-table address 0008.00ff.fc04 \u8bbe\u7f6e\u4ea4\u6362\u673a\u7684vlan ip\u4fe1\u606f\uff0c\u5728configure terminal\u6a21\u5f0f\u4e0b ip address 192.168.8.222 255.255.255.0 ip default-gateway 192.168.8.1 \u67e5\u770b\u5f53\u524d\u8def\u7531\u5668\u7684\u65f6\u95f4 show clock \u67e5\u770b\u65e5\u5fd7\u4fe1\u606f show log [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[159],"tags":[153],"class_list":["post-5462","post","type-post","status-publish","format-standard","hentry","category-network","tag-cisco"],"_links":{"self":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/5462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5462"}],"version-history":[{"count":37,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/5462\/revisions"}],"predecessor-version":[{"id":7073,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/5462\/revisions\/7073"}],"wp:attachment":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}