1、ccna实验CCNA实验报告目录实验一 ping 通相连路由 3实验二 配置简单CDP 7实验三 telnet远程控制 9(二) 三台路由远程控制 10实验四 静态路由 11实验五 使用默认路由 14实验六 使用rip协议 ping通全网 17实验七 使用rip v2协议 ping通全网 21实验八 rip v2汇总 23实验九 rip v2 认证 25实验十 使用eigrp协议ping通全网 27实验十一 eigrp汇总 31实验十二 eigrp认证 33实验十三 ospf 单区域 35实验十四 多区域ospf 39实验十五 配置ppp 43实验十六 vtp 45实验十七 vtp三种模式 4
2、7实验十八 单臂路由 50实验十九 标准访问控制列表 54实验二十 扩展访问控制列表 57实验二十一 telnet 服务访问控制列表的应用 60实验二十二 nat 静态 62实验二十三 nat动态 64实验二十四 pat 66实验二十五 Frame-relay动态 69实验一 ping 通相连路由实验拓扑图:一、实验要求:使R1 R2能互相ping通,使R2R3能互相ping通。二、实验步骤:(1)基本步骤Routerenable (转到特权模式)Router#configure terminal (转到全局模式)Router(config)#hostname r1 (给路由器命名)r1(co
3、nfig)#no ip domain-lookup (关闭域名查找)r1(config)#line console 0 r1(config-line)#logging synchronous (设置输入同步)r1(config-line)#exec-timeout 0 (设置执行会话时间永不超时)r1(config-line)#exitRouterenableRouter#configure terminal Router(config)#hostname r2r2(config)#no ip domain-lookup r2(config)#line console 0r2(config-l
4、ine)#logging synchronous r2(config-line)#exec-timeout 0r2 (config-line)#exitRouterenable Router#configure terminalRouter(config)#hostname r3r3(config)#no ip domain-lookupr3(config)#line console 0r3(config-line)#logging synchronous r3(config-line)#exec-timeout 0r3(config-line)#exit(2)配置接口ip地址r1(confi
5、g)#interface serial 1/1 (进入接口)r1(config-if)#no shutdown (打开接口)r1(config-if)#ip address 192.168.1.1 255.255.255.0 (配置ip地址)r2(config)#interface serial 1/0r2(config-if)#no shutdown r2(config-if)#ip address 192.168.1.2 255.255.255.0r2(config-if)#exitr2(config)#interface s1/1r2(config-if)#no shutdown r2(
6、config-if)#ip address 172.16.1.1 255.255.0.0r2(config-if)#exitr3(config)#interface serial 1/0r3(config-if)#no shutdown r3(config-if)#ip address 172.16.1.2 255.255.0.0r3(config-if)#exitr1(config)#endr1#show ip interface brief (查看接口信息)Interface IP-Address OK? Method Status ProtocolSerial1/1 192.168.1.
7、1 YES manual up up r1#ping 192.168.1.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:! (叹号表示ping通)Success rate is 100 percent (5/5), round-trip min/avg/max = 60/70/100 msr2#show ip interface brief Interface IP-Address OK? Method Status ProtocolSeria
8、l1/0 192.168.1.2 YES manual up up Serial1/1 172.16.1.1 YES manual up up r2#ping 192.168.1.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 60/70/100 msr2#ping 172.16.1.2Type escape sequence
9、 to abort.Sending 5, 100-byte ICMP Echos to 172.16.1.2, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 52/70/108 msr3#show ip interface brief Interface IP-Address OK? Method Status ProtocolSerial1/0 172.16.1.2 YES manual up r3#ping 172.16.1.1Type escape sequence to
10、 abort.Sending 5, 100-byte ICMP Echos to 172.16.1.1, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 52/61/68 ms实验二 配置简单CDP实验拓扑图与实验一相同一、实验要求:1、在R2:S1/0下关闭CDP ,使R1不能发现R2,R3却能发现R22、在R2全局模式下关闭CDP,让所有路由器都不能发现R2二、实验基本配置跟实验一相同r1#show cdp neighbors (查看邻居)Device ID Local In
11、trfce Holdtme Capability Platform Port IDr2 Ser 1/1 161 R 7206VXR Ser 1/0r2#show cdp neighbors Device ID Local Intrfce Holdtme Capability Platform Port IDr3 Ser 1/1 148 R 7206VXR Ser 1/0r1 Ser 1/0 160 R 7206VXR Ser 1/1r3#show cdp neighbors Device ID Local Intrfce Holdtme Capability Platform Port IDr
12、2 Ser 1/0 151 R 7206VXR Ser 1/1在接口下禁用CDP协议r2(config)#interface serial 1/0r2(config-if)#no shutdown r2(config-if)#no cdp enable (在接口下禁用cdp协议)r2(config-if)#exitr1#clear cdp table r1#show cdp neighbors Device ID Local Intrfce Holdtme Capability Platform Port IDr3#show cdp neighbors Device ID Local Intr
13、fce Holdtme Capability Platform Port IDr2 Ser 1/0 151 R 7206VXR Ser 1/1在全局下禁用CDP协议r2(config)#no cdp runr1#show cdp neighbors Device ID Local Intrfce Holdtme Capability Platform Port IDr3#show cdp neighbors Device ID Local Intrfce Holdtme Capability Platform Port ID实验三 telnet远程控制(一)两台路由远程控制实验拓扑图:一、实验
14、要求:1、R2上开启远程控制服务2、在R1上远程控制R2二、实验步骤:1、基本配置:Router#configure terminalRouter(config)#hostname r1r1(config)#no ip domain-lookupr1(config)#line console 0r1(config-line)#logging synchronousr1(config-line)#exec-timeout 0(R2也一样)2、配置接口ip地址r1(config)#interface serial 1/1r1(config-if)#no shutdown r1(config-if)
15、#ip address 192.168.1.1 255.255.255.0r2(config)#interface serial 1/0r2(config-if)#no shutdown r2(config-if)#ip address 192.168.1.2 255.255.255.03、在R2上开启远程控制服务r2(config)#enable password 123 (设置一个特权密码)r2(config)#line vty 0 4 r2(config-line)#password 1234 (设置虚拟端口密码)r2(config-line)#login (开启确定)r1#telnet
16、 192.168.1.2Password: r2enablePassword: r2#(二) 三台路由远程控制实验拓扑图:一、实验要求:R1远程控制R2,R2远程控制R3,实现R1远程控制R3二、实验步骤:在上面实验基本上再配置一个路由器r3Routerenable Router#configure terminalRouter(config)#hostname r3r3(config)#no ip domain-lookupr3(config)#line console 0r3(config-line)#logging synchronous r3(config-line)#exec-tim
17、eout 0r3(config-line)#exitr3(config)#interface serial 1/0r3(config-if)#no shutdown r3(config-if)#ip address 172.16.1.2 255.255.0.0r3(config-if)#exit在R1上远程控制R3r1#telnet 192.168.1.2Password: r2enablePassword: r2#r2#telnet 172.16.1.2Password: r3enablePassword: r3#实验四 静态路由实验拓扑图:一、 实验要求:使用静态路由实现全网互ping二、
18、 实验步骤:1、基本配置RouterenableRouter#configure terminal Router(config)#hostname r1r1(config)#no ip domain-lookupr1(config)#line console 0r1(config-line)#logging synchronous r1(config-line)#exec-timeout 0 0r1(config-line)#exit另外三台以此类推2、配置接口ip地址r1(config)#interface serial 1/1 (进入接口)r1(config-if)#no shutdown
19、 (打开接口)r1(config-if)#ip address 192.168.1.1 255.255.255.0 (配置ip地址)r1(config)#interface loopback 0r1(config-if)#ip address 1.1.1.1 255.0.0.0r2(config)#interface serial 1/0r2(config-if)#no shutdown r2(config-if)#ip address 192.168.1.2 255.255.255.0r2(config-if)#exitr2(config)#interface s1/1r2(config-i
20、f)#no shutdown r2(config-if)#ip address 172.16.1.1 255.255.0.0r2(config-if)#exitr3(config)#interface serial 1/0r3(config-if)#no shutdown r3(config-if)#ip address 172.16.1.2 255.255.0.0r3(config-if)#exitr3(config)#interface serial 1/1r3(config-if)#no shutdown r3(config-if)#ip address 10.1.1.1 255.0.0
21、.0r3(config-if)#exitr4(config)#interface serial 1/0r4(config-if)#no shutdown r4(config-if)#ip address 10.1.1.2 255.0.0.0r4(config-if)#exitr4(config)#int loopback 0r4(config-if)#ip address 3.3.3.3 255.0.0.0r4(config-if)#end3、配置静态路由r1 (config)#ip route 10.0.0.0 255.0.0.0 192.168.1.2r1 (config)#ip rout
22、e 172.16.0.0 255.255.0.0 192.168.1.2 r1 (config)#ip route 3.0.0.0 255.0.0.0 192.168.1.2r2 (config)#ip route 1.0.0.0 255.0.0.0 192.168.1.1r2 (config)#ip route 10.0.0.0 255.0.0.0 172.16.1.2 r2 (config)#ip route 3.0.0.0 255.0.0.0 172.16.1.2r3 (config)#ip route 1.0.0.0 255.0.0.0 172.16.1.1v3 (config)#ip
23、 route 192.168.1.0 255.255.255.0 172.16.1.1 r3 (config)#ip route 3.0.0.0 255.0.0.0 10.1.1.2r4(config)#ip route 192.168.1.0 255.255.255.0 10.1.1.1 r4(config)#ip route 172.16.0.0 255.255.0.0 10.1.1.1 r4(config)#ip route 1.0.0.0 255.0.0.0 10.1.1.1 r4(config)#end 4、查看路由表r1#show ip routeGateway of last r
24、esort is not setC 1.0.0.0/8 is directly connected, Loopback0S 3.0.0.0/8 1/0 via 192.168.1.2S 172.16.0.0/16 1/0 via 192.168.1.2S 10.0.0.0/8 1/0 via 192.168.1.2C 192.168.1.0/24 is directly connected, Serial1/1r4#show ip routeGateway of last resort is not setS 1.0.0.0/8 1/0 via 10.1.1.1C 3.0.0.0/8 is d
25、irectly connected, Loopback0S 172.16.0.0/16 1/0 via 10.1.1.1C 10.0.0.0/8 is directly connected, Serial1/0S 192.168.1.0/24 1/0 via 10.1.1.1r2#show ip routeS 1.0.0.0/8 1/0 via 192.168.1.1S 3.0.0.0/8 1/0 via 172.16.1.2C 172.16.0.0/16 is directly connected, Serial1/1S 10.0.0.0/8 1/0 via 172.16.1.2C 192.
26、168.1.0/24 is directly connected, Serial1/0r3#show ip routeGateway of last resort is not setS 1.0.0.0/8 1/0 via 172.16.1.1S 3.0.0.0/8 1/0 via 10.1.1.2C 172.16.0.0/16 is directly connected, Serial1/0C 10.0.0.0/8 is directly connected, Serial1/1S 192.168.1.0/24 1/0 via 172.16.1.1r1#ping 3.3.3.3 Type e
27、scape sequence to abort.Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 120/172/240 msr1#ping 172.16.1.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.16.1.1, timeout is 2 seconds:!Success rate is 100 p
28、ercent (5/5), round-trip min/avg/max = 48/68/92 msr1#ping 10.1.1.1 Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 72/132/180 ms实验五 使用默认路由实验拓扑一、 实验要求:1、 使用默认路由从路由1到4;2、 使用静态路由从路由4到1; PING通全网二、
29、 实验步骤:1、 基本配置和接口ip地址配置都跟静态一样2、 配置默认路由r1(config)# ip route 0.0.0.0 0.0.0.0 192.168.1.2 (默认路由配置) r1(config)#end r2 (config)# ip route 0.0.0.0 0.0.0.0 172.16.1.2 r2 (config)#end r3 (config)# ip route 0.0.0.0 0.0.0.0 10.1.1.2 r3 (config)#end r4(config)#ip route 192.168.1.0 255.255.255.0 10.1.1.1r4(confi
30、g)#ip route 1.0.0.0 255.0.0.0 10.1.1.1r4(config)#ip route 172.16.0.0 255.255.0.0 10.1.1.1r3 (config)# ip route 192.168.1.0 255.255.255.0 172.16.1.1r3 (config)# ip route 1.0.0.0 255.0.0.0 172.16.1.1r2 (config)# ip route 1.0.0.0 255.0.0.0 192.168.1.1r1#show ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area Gateway of last resort is 192.168.1.2 to network 0.0.0.0C 1.0.0.0/8 is directly connected, Loopback0C 192.168.1.0/24 is directly connected, Serial1/1S* 0.0.0.0/0 1/0
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1