您好,欢迎来到独旅网。
搜索
您的当前位置:首页路由器部分练习题

路由器部分练习题

来源:独旅网
路由器部分练习题

对如下拓扑结构图的网络进行设置:

1、设置三个路由器的名称分别为:Router1、Router2、Router3 Router>enable Router>enable Router#con t Router#con t Router(config)#hostname Router1 Router(config)#hostname Router2 Router1(config)# (成功改名) Router2(config)# (成功改名)

2、设置三个路由器的密码(password)分别为Router1、Router2、Router3,然后进行验证密码是否生效: 以Router1为例,在全局模式下设置密码为router1后,依次输入命令: Router1>enable Router2>enable Router1#con t Router2#con t Router1(config)#enable password router1 Router2(config)#enable password router2 Router1(config)# END Router2(config)# END Router1# disable Router2# disable Router1>enable Router2>enable Password:router1 Password:router2

3、再分别设置密文(加密使能密码:SECRET)分别为:R1、R2、R3,然后验证密文是否生效。(思考:此时密码是否还有用)操作过程与第2步相同。 Router1>enable Router2>enable Password:router1 Password:router2 Router1#con t Router2#con t Router1(config)#enable secret R1 Router2(config)#enable secret R2 Router1(config) #END Router2(config) #END Router1#disable Router21#disable Router1>enable Router2>enable Password:router1 Password:router2 Password:R1 (密码无效,改用密文) Password:R2 (密码无效,改用密文) Router1# (成功) Router2# (成功) 4、显示系统运行配置文件内容。 Router1#show running-config Router2#show running-config 5、删除密码,修改密文分别为1,2,3。 Router1>enable Router1(config)#enable secret 1 Password:R1 Router2>enable Router1#con t Password:R2 Router1(config)#no enable password router1 Router2#con t

Router2(config)#no enable password router2 Router2(config)#enable secret 2 6、再显示系统运行配置文件内容。 Router1#show running-config Router2#show running-config

7、三台路由器(如图)的左侧都为FA0/0接口,右侧为FA0/1接口,IP地址按照接口从左到右的顺序分别为:

1.1.1.1、2.1.1.1、2.1.1.2、3.1.1.1、3.1.1.2、4.1.1.1

请分别为各个接口设置IP地址,并根据网络连接情况设置好两台计算机的IP地址和缺省网关。 Router1>enable Router2>enable Password:1 Password:2 Router1#con t Router2#con t Router1(config)#interface fa0/0 Router2(config)#interface fa0/0 Router1(config-if)#ip address 1.1.1.1 255.0.0.0 Router2(config-if)#ip address 2.1.1.2 255.0.0.0 Router1(config-if)#no shutdown Router2(config-if)#no shutdown Router1(config-if)# interface fa0/1 Router2(config-if)# interface fa0/1 Router1(config-if)#ip address 2.1.1.1 255.0.0.0 Router2(config-if)#ip address 3.1.1.1 255.0.0.0 Router1(config-if)#no shutdown Router2(config-if)#no shutdown ------------------------------------------------------------------------------------------------------------------ Router3>enable Router3(config-if)#no shutdown Password:3 Router3(config-if)#exit Router3#con t Router3(config)#interface fa0/1 Router3(config)#interface fa0/0 Router3(config-if)#ip address 4.1.1.1 255.0.0.0 Router3(config-if)#ip address 3.1.1.2 255.0.0.0 Router3(config-if)#no shutdown ------------------------------------------------------------------------------------------------------------------- 配PC机的IP: C:>winipcfg

PC1:ip address: 1.1.1.2 PC2:ip address:4.1.1.2 Subnet mask: 255.0.0.0 Subnet mask: 255.0.0.0 Default gateway:1.1.1.1 Default gateway:4.1.1.1 8、显示各个路由器的接口 Router1#show interfaces Router2#show interfaces 9、显示运行配置文件

Router1#show running-config Router2#show running-config

10、设置三台路由器的远程登陆密码分别为:01、02、03,并且同时登陆的用户数量为5,允许登陆。 Router1>enable Router2>enable Password:1 Password:2 Router1#con t Router2#con t Router1(config)#line vty 0 4 Router2(config)#line vty 0 4 Router1(config-line)#password 01 Router2(config-line)#password 02 Router1(config-line)#login Router2(config-line)#login 12、对router2进行配置,配置静态路由。 Router2>enable Router2#con t

Router2(config)# ip route 1.0.0.0 255.0.0.0 2.1.1.1 Router2(config)# ip route 4.0.0.0 255.0.0.0 3.1.1.2

13、通过远程登陆(TELNET)方式分别配置ROUTER1的缺省路由、ROUTER3的RIP路由。 登陆Pc1

C:>telnet 1.1.1.1

Password:01 (远程登录密码) Router1>enable

Password:1 (使能密文) Router1#con t

Router1(config)# ip route 0.0.0.0 0.0.0.0 2.1.1.2 .--------------------------------------- 登陆pc2

C:>telnet 4.1.1.1

Password:03 (远程登录密码) Router3>enable

Password:3 (使能密文) Router3#con t

Router3(config)# router rip

Router3(config)#network 1.0.0.0 Router3(config)#network 2.0.0.0

14、设置ROUTER1的终端线超时时间为10分钟。(10分钟没有命令输入,自动断开连接) Router1>enable Router1# con t

Router1(config)# line 0 4

Router1(config-line)# exec-timeout 10

15、查看系统配置文件和运行配置文件,然后将运行配置文件拷贝到系统配置文件中,重新启动路由器。 Router1#show startup-config Router2#show startup-config Router1#copy running-config startup-config Router2#copy running-config startup-config 重起:

Router1# reload Router2# reload

16、进行通信测试,测试两台PC机之间是否通信成功,并进行跟踪测试。 Pc1:

C:>ping 4.1.1.2 C:>tracert 4.1.1.2 17、查看系统的路由表 Router1#show ip route Router2#show ip route Router3#show ip route 18、显示历史命令(用户已经输入过的命令) Router1#show history Router2#show history Router3#show history 19、设置系统历史记录保存的数量为5条 Router1>enable Router2>enable Router3>enable Password:1 Password:2 Password:3 Router1#terminal history size 5 Router2#terminal history size 5 Router3#terminal history size 520、对ROUTER1设置开机欢迎消息为:“HELLO,EVERYONE” Router1(config)# banner motd #HELLO,EVERYONE# 21、删除系统配置文件的内容。 Router1# erase startup-config Router2# erase startup-config Router3# erase startup-config 22、设置ROUTER3的被动接口(根据网络连接情况进行)

Router3(config)# router rip

Router3(config-router)# passive-interface fa0/1

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- dcrkj.com 版权所有 赣ICP备2024042791号-2

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务