路由器基本操作.doc_第1页
路由器基本操作.doc_第2页
路由器基本操作.doc_第3页
路由器基本操作.doc_第4页
免费预览已结束,剩余1页可下载查看

下载本文档

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

文档简介

路由器的基本操作1. 实验要求:(1) 最基本配置:? 重命名路由器分别为:R1、R2和R3? 关闭域名查找(解释)? 设置输入同步? 设置执行会话时间为20分钟(2) 设置路由器的时区、日期和时钟(3) 设置路由器接口的IP地址(4) 设置路由器的描述信息? 设置登陆描述信息? 设置接口描述信息(5) 设置密码? 设置访问路由器的端口(AUX、Console和VTY密码)? 使用明文方式对特权模式进行加密设置? 使用service password-encryption命令把明文密码隐藏起来? 使用MD5算法对特权模式进行加密设置? 实现对直连的路由器进行telnet访问设置(6) 创建静态hostname表,然后使用该表对直连的路由器进行telnet访问设置2. 实验步骤:(1) 使用show version查看路由器IOS版本、IOS映像文件、存储器大小、接口类型及配置登记值等相关信息,可以使我们对设备有初步的了解Routershow versionR1:Routerenable /进入特权模式Router#configure terminal /进入全局配置模式Router(config)#hostname r1 /重命名为r1r1(config)#no ip domain-lookup /关闭域名查找r1(config)#line console 0 /进入线路配置模式r1(config-line)#exec-timeout 20 00 /设置会话时间为20分钟r1(config-line)#logging synchronous /设置输入同步r1(config-line)#endR2:RouterenRouter#conf tRouter(config)#ho r2r2(config)#no ip domain-loor2(config)#line con 0r2(config-line)#logg sr2(config-line)#exec-timeout 20 00r2(config-line)#endR3:RouterenRouter#conf tEnter configuration commands, one per line.End with CNTL/Z.Router(config)#ho r3r3(config)#no ip domain-loor3(config)#line con 0r3(config-line)#logg sr3(config-line)#exec-timeout 20 00r3(config-line)#end(2) 设置路由器的时区、日期和时钟R1:r1#show clock /查看时区、日期和时钟*17:28:05.643 UTC Tue Oct 21 2008r1#conf tr1(config)#clock timezone Beijing +8 /设置时区r1(config)#endr1#clock set 17:28:48 Oct 21 2008 /设置时钟和日期r1#show clock17:28:52.403 Beijing Tue Oct 21 2008R2和R3同上(3) 设置路由器接口的IP地址R1:r1#conf tr1(config)#int fa0/0 /进入接口r1(config-if)#ip address 10.1.1.1 255.255.255.0 /配置IP地址r1(config-if)#no shutdown /激活该接口r1(config-if)#endr1#show running-config interface fastethernet 0/0 /查看该接口当前运行的所有信息r1#show interfaces fastethernet 0/0 /查看该接口的完整信息r1#show ip interface brief /查看接口状态的摘要信息R2:r2#conf tr2(config)#int fa 0/0r2(config-if)#ip add 10.1.1.2 255.255.255.0r2(config-if)#no shr2(config-if)#exitr2(config)#intr2(config)#int s1/1r2(config-if)#ip add 10.2.2.2 255.255.255.0r2(config-if)#clock rate 64000 /设置DCE时钟频率r2(config-if)#no shr2(config-if)#endr2#show running-conf int fa0/0r2#show int fa0/0r2#show int s1/1r2#show ip int br2#ping 10.1.1.1 /测试连通性R3:r3#conf tr3(config)#int s1/0r3(config-if)#ip add 10.2.2.3 255.255.255.0r3(config-if)#no shr3(config-if)#endr3#show running-conf int s1/0r3#show int s1/0r3#how ip int br3#ping 10.2.2.2R2:(测试连通性)r2#ping 10.1.1.1r2#ping 10.2.2.3(4) 设置路由器的描述信息R1:r1#conf tr1(config)#banner motd# /设置登陆描述信息Welcome to Guangzh CCNA club # /输入描述内容后以#结束r1(config)#int fa0/0r1(config-if)#description link to Beijing CCNA club /description后面内容为接口描述信息r1(config-if)#no shr1(config-if)#endr1#exitR2:r2#conf tr2(config)#banner motd #Welcome to Beijing CCNA club #r2(config)#int fa0/0r2(config-if)#desc link to Guangzhou CCNA clubr2(config-if)#no shr2(config-if)#exitr2(config)#int s1/1r2(config-if)#desc link to Shanghai CCNA clubr2(config-if)#no shr2(config)#endR3:r3#conf tr3(config)#banner motd#Welcome to Shanghai CCNA club#r3(config)#int s1/0r3(config-if)#desc link to Beijing CCNA clubr3(config-if)#no shr3(config-if)#end(5) 设置密码R1:r1#conf tr1(config)#line aux 0 /设置aux 0的密码r1(config-line)#password cisco /密码为ciscor1(config-line)#login /设置登陆提示密码r1(config-line)#exitr1(config)#line con 0 /设置console的密码r1(config-line)#password ciscor1(config-line)#loginr1(config-line)#exitr1(config)#line vty 0 4 /设置vty的密码r1(config-line)#password ciscor1(config-line)#loginr1(config-line)#exitr1(config)#enable password cisco /设置特权模式密码(明文方式)r1(config)#service password-encryption /对所有明文密码进行加密r1(config)#enable secret cisco 使用MD5算法对特权模式进行加密r1(config)#exitr1#show running-config /查看所配置的密码显示R2和R3配置同上R2:r2#telnet 10.1.1.1 /从r2向r1发起telnetTrying 10.1.1.1 . OpenPassword: /密码不会显示出来,输完后直接按回车r1enablePassword: /同上r1#show running-config fa0/0 /已经显示登陆到r1其他同上。满足telnet的最低3个条件:1 必须确保telnet与被telnet设备能够通信;2 必须配置vty密码;3 必须配置enable密码(6) 创建静态hostname表,然后使用该表对直连的路由器进行telnet访问设置R1:r1#conf tr1(config)#ip host Beijing 10.1.1.2r1(config)#endR2:r2#conf tr2(config)#ip host Guangzhou 10.1.1.1r2(config)#ip host Shanghai 10.2.2.3r2(config)#endR3:r3#conf tr3(config)#ip host Beijing 10.2.2.2r3(config)#end分别运行show host命令可以查看到各自的hostname表测试:r1#telnet Beijing /r1 telnet r2Trying Beijing (10.1.1.2). OpenPassword: r2enPassword:r2#r2#telnet Guangzhou /r2 telnet r1Trying Guangzhou (10.1.

温馨提示

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

评论

0/150

提交评论