{"id":164676,"date":"2019-12-17T13:20:57","date_gmt":"2019-12-17T05:20:57","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=164676"},"modified":"2019-11-27T09:40:53","modified_gmt":"2019-11-27T01:40:53","slug":"basic-configuration-router","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/basic-configuration-router.html","title":{"rendered":"\u8def\u7531\u5668\u7684\u57fa\u672c\u914d\u7f6e"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u4f60\u662f\u67d0\u516c\u53f8\u65b0\u8fdb\u7684\u7f51\u7ba1\uff0c\u516c\u53f8\u8981\u6c42\u4f60\u719f\u6089\u7f51\u7edc\u4ea7\u54c1\uff0c\u9996\u5148\u8981\u6c42\u4f60\u767b\u5f55\u8def\u7531\u5668\uff0c\u4e86\u89e3\u3001\u638c\u63e1\u8def\u7531\u5668\u7684\u547d\u4ee4\u884c\u64cd\u4f5c\uff1b\u4f5c\u4e3a\u7f51\u7edc\u7ba1\u7406\u5458\uff0c\u4f60\u7b2c\u4e00\u6b21\u5728\u8bbe\u5907\u673a\u623f\u5bf9\u8def\u7531\u5668\u8fdb\u884c\u4e86\u521d\u6b21\u914d\u7f6e\u540e\uff0c\u5e0c\u671b\u4ee5\u540e\u5728\u529e\u516c\u5ba4\u6216\u51fa\u5dee\u65f6\u4e5f\u53ef\u4ee5\u5bf9\u8bbe\u5907\u8fdb\u884c\u8fdc\u7a0b\u7ba1\u7406\uff0c\u73b0\u8981\u5728\u8def\u7531\u5668\u4e0a\u505a\u9002\u5f53\u914d\u7f6e\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
\u6280\u672f\u539f\u7406<\/strong><\/div>\n

\u8def\u7531\u5668\u7684\u7ba1\u7406\u65b9\u5f0f\u57fa\u672c\u5206\u4e3a\u4e24\u79cd\uff1a\u5e26\u5185\u7ba1\u7406\u548c\u5e26\u5916\u7ba1\u7406\u3002\u901a\u8fc7\u8def\u7531\u5668\u7684 Console\u53e3\u7ba1\u7406\u8def\u7531\u5668\u5c5e\u4e8e\u5e26\u5916\u7ba1\u7406\uff0c\u4e0d\u5360\u7528\u8def\u7531\u5668\u7684\u7f51\u7edc\u63a5\u53e3\uff0c\u5176\u7279\u70b9\u662f\u9700\u8981\u4f7f\u7528\u914d\u7f6e\u7ebf\u7f06\uff0c\u8fd1\u8ddd\u79bb\u914d\u7f6e\u3002\u7b2c\u4e00\u6b21\u914d\u7f6e\u65f6\u5fc5\u987b\u5229\u7528 Console \u7aef\u53e3\u8fdb\u884c\u914d\u7f6e\u3002<\/p>\n

\u5b9e\u9a8c\u6b65\u9aa4<\/strong><\/div>\n

\u65b0\u5efa packet tracer \u62d3\u6251\u56fe
\n\"\"
\n\uff081\uff09\u7528\u6807\u51c6 console \u7ebf\u7f06\u7528\u4e8e\u8fde\u63a5\u8ba1\u7b97\u673a\u7684\u4e32\u53e3\u548c\u8def\u7531\u5668\u7684 console \u4e0a\u3002\u5728\u8ba1\u7b97\u673a\u4e0a\u542f\u7528\u8d85\u7ea7\u7ec8\u7aef\uff0c\u5e76\u914d\u7f6e\u8d85\u7ea7\u7ec8\u7aef\u7684\u53c2\u6570\uff0c\u662f\u8ba1\u7b97\u673a\u4e0e\u8def\u7531\u5668\u901a\u8fc7 console \u63a5\u53e3\u5efa\u7acb\u8fde\u63a5\uff1b
\n\uff082\uff09\u914d\u7f6e\u8def\u7531\u5668\u7684\u7ba1\u7406\u7684 IP \u5730\u5740\uff0c\u5e76\u4e3a Telnet \u7528\u6237\u914d\u7f6e\u7528\u6237\u540d\u548c\u767b\u5f55\u53e3\u4ee4\u3002\u914d\u7f6e\u8ba1\u7b97\u673a\u7684 IP \u5730\u5740\uff08\u4e0e\u8def\u7531\u5668\u7ba1\u7406 IP \u5730\u5740\u5728\u540c\u4e00\u4e2a\u7f51\u6bb5\uff09\uff0c\u901a\u8fc7\u7f51\u7ebf\u5c06\u8ba1\u7b97\u673a\u548c\u8def\u7531\u5668\u76f8\u8fde\uff0c\u901a\u8fc7\u8ba1\u7b97\u673a Telnet \u5230\u8def\u7531\u5668\u4e0a\u5bf9\u4ea4\u6362\u673a\u8fdb\u884c\u67e5\u770b\uff1b
\n\uff083\uff09\u66f4\u6539\u8def\u7531\u5668\u7684\u4e3b\u673a\u540d\uff1b
\n\uff084\uff09\u64e6\u9664\u914d\u7f6e\u4fe1\u606f\uff0c\u4fdd\u5b58\u914d\u7f6e\u4fe1\u606f\uff0c\u663e\u793a\u914d\u7f6e\u4fe1\u606f\uff1b
\n\uff085\uff09\u663e\u793a\u5f53\u524d\u914d\u7f6e\u4fe1\u606f\uff1b
\n\uff086\uff09\u663e\u793a\u5386\u53f2\u547d\u4ee4\u3002<\/p>\n

\u5b9e\u9a8c\u8bbe\u5907<\/strong><\/span><\/div>\n

Router_2811 1 \u53f0\uff1bPC 1 \u53f0\uff1b\u4ea4\u53c9\u7ebf\uff1b\u914d\u7f6e\u7ebf
\n\u8bf4\u660e\uff1a \u4ea4\u53c9\u7ebf\uff1a\u8def\u7531\u5668\u4e0e\u8ba1\u7b97\u673a\u76f8\u8fde \u8def\u7531\u5668\u4e0e\u4ea4\u6362\u673a\u76f8\u8fde
\n\u76f4\u8fde\u7ebf\uff1a\u8ba1\u7b97\u673a\u4e0e\u4ea4\u6362\u673a\u76f8\u8fde<\/p>\n

\r\nPC\r\nIP: 192.168.1.2\r\nSubmask: 255.255.255.0\r\nGageway:192.168.1.1\r\n\r\nRouter\r\n\u56fe\u5f62\u5316\uff1a\u754c\u9762\u5f00\u542f FastEthernet0\/0 \u7aef\u53e3\r\n\r\nPC \u7ec8\u7aef\r\nen\r\nconf t\r\nhostname R1\r\nenable secret 123456 #\u8bbe\u7f6e\u7279\u6743\u5bc6\u7801\r\nexit\r\nexit\r\nen\r\npassword:\u6b64\u65f6\u8f93\u5165\u5bc6\u7801\uff0c\u8f93\u5165\u7684\u5bc6\u7801\u4e0d\u663e\u793a\r\nconf t\r\nline vty 0 4\r\npassword jaking #\u8bbe\u7f6e telnet \u5bc6\u7801\r\nlogin #\u5141\u8bb8\u767b\u5f55\r\nexit\r\ninterface fa 0\/0\r\nip address 192.168.1.1 255.255.255.0\r\nno shut\r\nend\r\n\r\nPC CMD\r\nipconfig\r\nping 192.168.1.1\r\ntelnet 192.168.1.1\r\npassword:jaking\r\nen\r\npassword:123456\r\nshow running\r\n<\/pre>\n
\u5b9e\u6218\u6f14\u7ec3<\/strong><\/div>\n
\r\n\u914d\u7f6e\u8def\u7531\u5668\r\n\r\nRouter>en\r\nRouter#conf t\r\nEnter configuration commands, one per line. End with CNTL\/Z.\r\nRouter(config)#hostname R1\r\nR1(config)#enable secret 123456\r\nR1(config)#exit\r\nR1#\r\n%SYS-5-CONFIG_I: Configured from console by console\r\n\r\nR1#password\r\nTranslating \"password\"...domain server (255.255.255.255)\r\n% Unknown command or computer name, or unable to find computer address\r\n\r\nR1#exit\r\n\r\nR1 con0 is now available\r\n\r\nPress RETURN to get started.\r\n\r\nR1>en\r\nPassword:\r\nR1#conf t\r\nEnter configuration commands, one per line. End with CNTL\/Z.\r\nR1(config)#line vty 0 4\r\nR1(config-line)#password jaking\r\nR1(config-line)#login\r\nR1(config-line)#exit\r\nR1(config)#int fa 0\/0\r\nR1(config-if)#ip address 192.168.1.1 255.255.255.0\r\nR1(config-if)#no shut\r\n\r\n%LINK-5-CHANGED: Interface FastEthernet0\/0, changed state to up\r\nR1(config-if)#end\r\nR1#\r\n%SYS-5-CONFIG_I: Configured from console by console\r\n\r\nR1#\r\n<\/pre>\n
PC\u7aef\u6d4b\u8bd5<\/strong><\/div>\n
\r\nPC>ipconfig\r\n\r\nIP Address......................: 192.168.1.2\r\nSubnet Mask.....................: 255.255.255.0\r\nDefault Gateway.................: 192.168.1.1\r\n\r\nPC>ping 192.168.1.1\r\n\r\nPinging 192.168.1.1 with 32 bytes of data:\r\n\r\nReply from 192.168.1.1: bytes=32 time=247ms TTL=255\r\nReply from 192.168.1.1: bytes=32 time=4ms TTL=255\r\nReply from 192.168.1.1: bytes=32 time=6ms TTL=255\r\nReply from 192.168.1.1: bytes=32 time=6ms TTL=255\r\n\r\nPing statistics for 192.168.1.1:\r\nPackets: Sent = 4, Received = 4, Lost = 0 (0% loss),\r\nApproximate round trip times in milli-seconds:\r\nMinimum = 4ms, Maximum = 247ms, Average = 65ms\r\n\r\nPC>telnet 192.168.1.1\r\nTrying 192.168.1.1 ...Open\r\n\r\n\r\nUser Access Verification\r\n\r\nPassword: jaking\r\nR1>en\r\nPassword: 123456\r\nR1#show running\r\nBuilding configuration...\r\n\r\nCurrent configuration : 722 bytes\r\n!\r\nversion 12.2\r\nno service timestamps log datetime msec\r\nno service timestamps debug datetime msec\r\nno service password-encryption\r\n!\r\nhostname R1\r\n!\r\n!\r\n!\r\nenable secret 5 $1$mERr$H7PDxl7VYMqaD3id4jJVK\/\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n--More--\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"

\u8def\u7531\u5668\u7684\u7ba1\u7406\u65b9\u5f0f\u57fa\u672c\u5206\u4e3a\u4e24\u79cd\uff1a\u5e26\u5185\u7ba1\u7406\u548c\u5e26\u5916\u7ba1\u7406\u3002\u901a\u8fc7\u8def\u7531\u5668\u7684 Console\u53e3\u7ba1\u7406\u8def\u7531\u5668\u5c5e\u4e8e\u5e26\u5916\u7ba1\u7406\uff0c\u4e0d\u5360\u7528 […]<\/p>\n","protected":false},"author":63,"featured_media":164677,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-164676","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/164676","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=164676"}],"version-history":[{"count":5,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/164676\/revisions"}],"predecessor-version":[{"id":165369,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/164676\/revisions\/165369"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/164677"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=164676"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=164676"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=164676"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}