《计算机网络》实验指导书:路由器的基本配置命令.doc_第1页
《计算机网络》实验指导书:路由器的基本配置命令.doc_第2页
《计算机网络》实验指导书:路由器的基本配置命令.doc_第3页
《计算机网络》实验指导书:路由器的基本配置命令.doc_第4页
《计算机网络》实验指导书:路由器的基本配置命令.doc_第5页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

海量资料 超值下载路由器的基本配置命令一、实验目的掌握路由器的基本配置命令二、实验描述主要实验内容如下:1.配置路由器的名字2.配置路由器的enable、secret、console、vty的密码3.接口IP地址的配置及时钟三、实验拓扑四、实验设备1.R2801 1台2.PC 1台3.console线 1根五、实验步骤第1步:配置主机名RouterenableRouter#config terminalRoute(config)#hostname R1配置路由器名字为R1第2步:配置路由器的密码R1(config)#enable password jsj1修改特权模式密码为jinghua1(密码明文显示)R1(config)#enalbe secret jsj2修改特权模式密码为jinghua2(密码加密显示)R1(config)#line console 0进入线路配置模式R1(config-line)#password jsj3配置控制台的密码jinghua3R1(config-line)#login开启密码检查R1(config-line)#exitR1(config)#line vty 0 4R1(config-line)#password jsj4配telnet密码R1(config-line)#loginR1(config-line)#exitR1(config)#service password-encryption第3步:配置banner信息R1(config)#banner motd #Enter TEXT message. End with the character #.Welcome to jsj414 R1 -Authorized users only.#验证配置:Press RETURN to get started!Welcome to jsj414 R1 -Authorized users only.User Access VerificationPassword:第4步:配置接口IP,接口描述及串口时钟R1(config)#int s1/0R1(config-if)#ip add 11.1.1.1 255.255.255.0R1(config-if)#description s1/0 is DCER1(config-if)#clock rate 64000R1(config-if)#no shutdown验证配置:R1#show interfaces serial 1/0显示接口的详细信息Serial1/0 is down, line protocol is down (disabled) Hardware is HD64570 Description: s1/0 is DCE Internet address is 11.1.1.1/24 MTU 1500 bytes, BW 128 Kbit, DLY 20000 usec, rely 255/255, load 1/255 Encapsulation HDLC, loopback not set, keepalive set (10 sec) Last input never, output never, output hang never Last clearing of show interface counters never Input queue: 0/75/0 (size/max/drops); Total output drops: 0 Queueing strategy: weighted fair Output queue: 0/1000/64/0 (size/max total/threshold/drops) Conversations 0/0/256 (active/max active/max total) Reserved Conversations 0/0 (allocated/max allocated) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 0 packets input, 0 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 packets output, 0 bytes, 0 underruns 0 output errors, 0 collisions, 2 interface resets 0 output buffer failures, 0 output buffers swapped out 0 carrier transitions DCD=down DSR=down DTR=down RTS=down CTS=down第5步:配置一个环回接口R1(config)#int loopback 0R1(config-if)#ip add 11.2.2.2 255.255.255.0第6步:保存配置文件R1#copy running-config startup-config (或R1#write memory)Destination filename startup-config? Building configuration.OK第7步:常用的show命令R1#show ip interface brief显示接口的概况R1#show interfaces显示接口的详细信息R1#show running-config显示内存信息R1#show startup-config显示NVRAM配置信息R1#show veision显示系统硬件和软件状态信息六、注意事项1.配置接口地址的时候,一定要注意接口地址的掩码要配置正确,否则无法通信.2.查看接口状态,如果接口是DOWN,通常是线缆故障,如果协议是DOWN,通常是DCE端的时钟频率没有配置.七、参考配置R1#show running-config Building configuration.Current configuration : 868 bytes!version 12.4service password-encryption!hostname R1!enable secret 5 $1$mERr$xQMW9Xa.dxFYe82Wun9dv.enable password 7 082B45400E11101643!ip ssh version 1!interface Loopback0 ip address 11.2.2.2 255.255.255.0!interface FastEthernet0/0 no ip address duplex auto speed auto shutdown!interface FastEthernet0/1 no ip address duplex auto speed auto shutdown!interface Serial1/0 description s1/0 is DCE ip address 11.1.1.1 255.255.255.0 clock rate 64000!interface Serial1/1 no ip address shutdown!interface Serial1/2 no ip address shutdown!interface Serial1/3 no ip address shutdown!interface Vlan1 no ip address shutd

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论