|  | 
 
| 一,实验拓扑 
 二,实验步骤
 (1)配置路由器
 Router>enable //进入路由器特权模式
 Router#conf t //进入路由器配置模式
 Enter configuration commands, one per line. End with CNTL/Z.
 Router(config)#int f0/0 //进入路由器的以太网f0/0接口
 Router(config-if)#ip add 192.168.1.1 255.255.255.0 //配置F0/0接口IP地址
 Router(config-if)#no sh //激活接口,路由接口默认是关闭的
 %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
 %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
 Router(config-if)#exit
 Router(config)#line vty 0 4 //进入路由器的 VTY 虚拟终端下, “vty 0 4”表示vty 0 到vty 4,共5 个虚拟终端
 Router(config-line)#password cisco
 Router(config-line)#login
 //以上是配置 vty 的密码CISCO,即 telnet 密码
 Router(config-line)#exit
 Router(config)#enable password cisco
 Router(config)#end
 //以上是配置进入到路由器特权模式的密码
 (2)配置telnet PC
 PC要配置IP地址,否则telnet不上的
 进入CMD
 PC>telnet 192.168.1.1
 Trying 192.168.1.1 ...Open
 
 User Access Verification
 Password: //输入telnet密码
 Router>en
 Password: //输入进入特权模式密码
 Router#conf t
 Enter configuration commands, one per line. End with CNTL/Z.
 Router(config)#exit
 Router#sh int f0/0
 FastEthernet0/0 is up, line protocol is up (connected)
 Hardware is Lance, address is 0004.9a71.4901 (bia 0004.9a71.4901)
 Internet address is 192.168.1.1/24
 MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
 reliability 255/255, txload 1/255, rxload 1/255
 Encapsulation ARPA, loopback not set
 ARP type: ARPA, ARP Timeout 04:00:00,
 Last input 00:00:08, output 00:00:05, output hang never
 Last clearing of "show interface" counters never
 Input queue: 0/75/0 (size/max/drops); Total output drops: 0
 Queueing strategy: fifo
 Output queue :0/40 (size/max)
 5 minute input rate 52 bits/sec, 0 packets/sec
 5 minute output rate 50 bits/sec, 0 packets/sec
 185 packets input, 7558 bytes, 0 no buffer
 Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
 0 input packets with dribble condition detected
 157 packets output, 6673 bytes, 0 underruns
 0 output errors, 0 collisions, 1 interface resets
 0 babbles, 0 late collision, 0 deferred
 0 lost carrier, 0 no carrier
 0 output buffer failures, 0 output buffers swapped out
 注 :如果无法从计算机上 ping 通路由器,依照以下步骤进行
 (1) 检查计算机、交换机、路由器之间的连接是否松动;
 (2) 检查连接线应该是否是直通线;
 (3) 检查计算机的网卡和 IP地址是否正常;
 (4) 在路由器上,检查以太网接口是否正常
 | 
 | 
| 
 |