为了正常的体验网站,请在浏览器设置里面开启Javascript功能!

思科网络实验报告6 ospf

2017-10-31 27页 doc 188KB 101阅读

用户头像

is_729658

暂无简介

举报
思科网络实验报告6 ospf思科网络实验报告6 ospf OSPF配置 实验名称 计算机网络 课程名称 班级 计算0814 组号 F组 日期 2010/6/19 地点 陆大316 成绩 教师 颜庆茁 组员列表 姓名 学号 郭苏强 2008810108 曾强 2008810099 刘凯 2008810097 杨天柱 2008810106 景朝辉 2008810095 评语: 一、 实验目的 1、按照指定要求创建有效的 VLSM 设计 2、为接口分配适当的地址并记录下来 3、根据拓扑图完成网络电缆连接 4、删除路由器启动配置并...
思科网络实验报告6 ospf
思科网络实验报告6 ospf OSPF配置 实验名称 计算机网络 课程名称 班级 计算0814 组号 F组 日期 2010/6/19 地点 陆大316 成绩 教师 颜庆茁 组员列表 姓名 学号 郭苏强 2008810108 曾强 2008810099 刘凯 2008810097 杨天柱 2008810106 景朝辉 2008810095 评语: 一、 实验目的 1、按照指定要求创建有效的 VLSM 2、为接口分配适当的地址并记录下来 3、根据拓扑图完成网络电缆连接 4、删除路由器启动配置并将其重新加载到默认状态 5、在路由器上配置 OSPF 及其它设置 6、配置并传播静态默认路由 7、检验 OSPF 的运行情况 8、测试和检完全连通性 二、实验场景 在本实验中,将对网络地址使用 VLSM 来为该网络划分子网,从而根据拓扑图完成网络地址 分配。将需要组合使用 OSPF 路由和静态路由,以使网络中未直接连接的主机能相互通信。 在所有 OSPF 配置中将使用 0 作为 OSPF 区域 ID,采用 1 作为进程 ID。 实践拓扑图: 三、实验器材 (1)直通以太网电缆 6条 (2)PC机 3台 (3)路由器 3台 (4)交换器 3台 四、实验 任务 1:为地址空间划分子网。 步骤 1:检查网络要求。 具有下列网络地址要求: • 必须为网络 172.20.0.0/16 划分子网,从而为 LAN 串行链路提供地址。 • HQ LAN 需要 8000 个地址 • Branch1 LAN 需要 4000 个地址 • Branch2 LAN 需要 2000 个地址 • 路由器之间的每条链路需要两个地址 • 代表路由器 HQ 和 ISP 之间链路的环回地址将使用网络 10.10.10.0/30。 步骤 2:创建网络设计时请考虑下列问。 需要为网络 172.20.0.0/16 划分多少个子网, __6___ 网络 172.20.0.0/16 总共需要提供多少个 IP 地址, _14000_ HQ LAN 子网将使用什么子网掩码,__255.255.224.0___ 此子网内可用的最大主机地址数是多少, __8190___ Branch1 LAN 子网将使用什么子网掩码,__255.255.240.0___ 此子网内可用的最大主机地址数是多少, __4094___ Branch2 LAN 子网将使用什么子网掩码,__255.255.248.0___ 此子网内可用的最大主机地址数是多少, __2046___ 这三台路由器间的链路将使用什么子网掩码,__255.255.255.252___ 这些子网中的每个子网内可用的最大主机地址数是多少, __2___ 步骤 3:为拓扑图分配子网地址。 1. 将网络172.20.0.0/16的子网0分配给HQ LAN子网。此子网的网络地址是什么, __172.20.0.0/19__ 2. 将网络172.20.0.0/16的子网1分配给Branch1 LAN子网。此子网的网络地址是什么, __172.20.32.0/20__ 3. 将网络172.20.0.0/16的子网2分配给Branch2 LAN子网。此子网的网络地址是什么, __172.20.48.0/21__ 4. 将网络172.20.0.0/16的子网3分配给路由器 HQ 与 Branch1 之间的链路。此子网的网络 地址是什么, __172.20.56.0/30___ 5. 将网络172.20.0.0/16的子网4分配给路由器 HQ 与 Branch2 之间的链路。此子网的网络 地址是什么, __172.20.56.4/30___ 6. 将网络172.20.0.0/16的子网5分配给路由器Branch1 与Branch2 之间的链路。此子网的 网络地址是什么, __172.20.56.8/30___ 任务 2:确定接口地址 为设备接口分配合适的地址 1. 将网络10.10.10.0/30中的第一个有效的主机地址分配给路由器HQ的Loopback 1接口。 2. 将HQ LAN网络中的第一个有效的IP地址分配给路由器 HQ 的 LAN 接口。 3. 将HQ LAN网络中的最后一个有效的IP地址分配给 PC2。 4. 将Branch1 LAN网络中的第一个有效的IP地址分配给路由器 Branch1 的 LAN 接口。 5. 将Branch1 LAN网络中的最后一个有效的IP地址分配给 PC1。 6. 将Branch2 LAN网络中的第一个有效的IP地址分配给路由器 Branch2 的 LAN 接口。 7. 将Branch2 LAN网络中的最后一个有效的IP地址分配给 PC3。 8. 将HQ与Branch1之间链路网络中的第一个有效的IP地址分配给路由器HQ的Serial0/0/0 接口。 9. 将HQ与Branch1之间链路网络中的最后一个有效的IP地址分配给路由器Branch1的Serial 0/0/0 接口。 10.将HQ与Branch2之间链路网络中的第一个有效的IP地址分配给路由器HQ的 Serial0/0/1 接口。 11.将HQ与Branch2之间链路网络中的最后一个有效的IP地址分配给路由器Branch2的Serial 0/0/1 接口。 12.将Branch1与Branch2之间链路网络中的第一个有效的IP地址分配给路由器 Branch1 的 Serial 0/0/1 接口。 13.将Branch1与Branch2之间链路网络中的最后一个有效的IP地址分配给路由器Branch2的 Serial 0/0/0 接口。 地址表如下: 任务 3:准备网络 步骤 1:构建一个类似拓扑图所示的网络。 您可以在实验中使用任何路由器,只要它具备拓扑图中所要求的接口即可。 步骤 2:清除路由器中的现有配置。 Router>enable Branch# erase startup-config Erasing the nvram filesystem will remove all configuration files! Continue? [confirm][OK] Erase of nvram: complete Router#reload 任务 4:执行基本路由器配置 根据以下对 BRANCH1、HQ 和 BRANCH2 路由器进行基本配置: 1. 配置路由器主机名。 2. 禁用 DNS 查找。 3. 配置执行模式口令。 4. 配置当日消息标语。 5. 配置控制台连接的口令。 6. 配置 VTY 连接的口令。 7. 将自动提供的消息和调试输出与所请求的输出以及控制台和虚拟终端线路提示符同步。 8. 将执行超时配置为 15 分钟。 ********************BRANCH1、HQ、BRANCH2路由器的基本配置******************** Router#configure terminal Router(config)#hostname 路由器名 HQ(config)#no ip domain-lookup HQ(config)#enable secret class HQ(config)#banner motd & ****************************** !!!AUTHORIZED ACCESS ONLY!!! ****************************** & HQ(config)#line console 0 HQ(config-line)#password cisco HQ(config-line)#login HQ(config-line)#logging synchronous HQ(config-line)#exec-timeout 15 HQ(config-line)#exit HQ(config)#line vty 0 4 HQ(config-line)#password cisco HQ(config-line)#login HQ(config-line)#logging synchronous HQ(config-line)#exec-timeout 15 任务 5:配置并激活串行地址和以太网地址 步骤 1:配置 BRANCH1、HQ 和 BRANCH2 路由器。 使用拓扑图下方地址表中的 IP 地址配置 BRANCH1、HQ 和 BRANCH2 上的接口。 ********************************* BRANCH1 ********************************** BRANCH1#show ip int b Interface IP-Address OK? Method Status Protocol FastEthernet0/0 172.20.32.1 YES manual up up Serial0/0 172.20.56.2 YES manual up up Serial0/1 172.20.56.9 YES manual up up Ethernet1/0 unassigned YES unset administratively down down Ethernet1/1 unassigned YES unset administratively down down Ethernet1/2 unassigned YES unset administratively down down Ethernet1/3 unassigned YES unset administratively down down ********************************* HQ ************************************ HQ#show ip int b Interface IP-Address OK? Method Status Protocol ATM0/0 unassigned YES unset administratively down down FastEthernet0/0 172.20.0.1 YES manual up up Serial1/1 172.20.56.1 YES manual up up Serial1/0 172.20.56.5 YES manual up up Loopback1 10.10.10.1 YES manual up up ******************************** BRABCH2 *********************************** Branch2#show ip int b Interface IP-Address OK? Method Status Protocol FastEthernet0/0 172.20.48.1 YES manual up up Serial0/0 172.20.56.10 YES manual up up FastEthernet0/1 unassigned YES unset administratively down down Serial0/1 172.20.56.6 YES manual up up 步骤 2:使用拓扑图下方的表格中的 IP 地址配置 PC1、PC2 和 PC3 的以太网接口。 步骤 3:在路由器 Branch1 上为串行接口配置正确的带宽。 此操作需要使用什么命令, Branch1(config)#int s0/0 Branch1(config-if)#bandwidth 128 Branch1(config-if)#int s0/1 Branch1(config-if)# bandwidth 64 步骤 4:在路由器 Branch2 上为串行接口配置正确的带宽。 此操作需要使用什么命令, BRANCH2(config-if)#int s0/0 BRANCH2(config-if)#bandwidth 64 BRANCH2(config-if)#int s0/1 BRANCH2(config-if)#bandwidth 256 步骤 5:在路由器 HQ 上为串行接口配置正确的带宽。 此操作需要使用什么命令, HQ(config-if)#int s1/0 HQ(config-if)#bandwidth 256 HQ(config-if)#int s1/1 HQ(config-if)#bandwidth 128 任务 6:检验与下一跳设备的连通性 步骤 1:检验路由器的连通性。 BRANCH1—>HQ: HQ—> BRABCH2: 步骤 2:检验 PC1、PC2 和 PC3 是否可以 ping 通各自的默认网关。 任务 7:在路由器 Branch1 上配置 OSPF 路由 步骤 1:考虑哪些网络需要包括在由路由器 Branch1 发出的 OSPF 更新中。 Branch1 的路由表中有哪些直连网络, ___172.20.32.0/20____________________ ___172.20.56.0/30____________________ ___172.20.56.8/30____________________ 要启用 OSPF 并将所连接的网络包括在路由更新中,需要使用什么命令, BRANCH1(config)#router ospf 1 BRANCH1(config-router)#net 172.20.32.0 0.0.15.255 area 0 BRANCH1(config-router)#net 172.20.56.0 0.0.0.3 area 0 BRANCH1(config-router)#net 172.20.56.8 0.0.0.3 area 0 是否有不需要发送 OSPF 更新的路由器接口,__是___ 要在这些接口上禁用 OSPF 更新,需要使用什么命令, _____ BRANCH1(config-router)#passive-interface f0/0__________________________ 任务 8:在路由器 HQ 上配置 OSPF 路由和静态路由 步骤 1:考虑 HQ 上所需的静态路由类型。 需要配置一个静态默认路由,以将目标地址不在路由表中的数据包发往环回地址,该环回地 址代表路由器 HQ 和 ISP 之间的链路。此操作需要使用什么命令, ______ HQ(config)#ip route 0.0.0.0 0.0.0.0 loopback1 ________________________ HQ 的路由表中有哪些直连网络, ___172.20.0.0/19_____________________ ___172.20.56.0/30____________________ ___172.20.56.4/30____________________ ___10.10.10.0/30_____________________ 对于 HQ LAN 网络和路由器 Branch1 与 Branch2 之间的链路,需要在 network 语句中包 含子网掩码信息吗,__是____ 要启用 OSPF 并将相应的网络包括在路由更新中,需要使用什么命令, HQ(config)#router ospf 1 HQ(config-router)#net 172.20.56.0 0.0.0.3 area 0 HQ(config-router)#net 172.20.56.4 0.0.0.3 area 0 HQ(config-router)#net 172.20.0.0 0.0.31.255 area 0 HQ(config-router)#net 10.10.10.0 0.0.0.3 area 0 是否有路由器接口不需要发出 OSPF 更新,__是____ 要在这些接口上禁用 OSPF 更新,需要使用什么命令, ___ HQ(config-router)#passive-interface f0/0 _______________________________ ___ HQ(config-router)#passive-interface loopback1 __________________________ 路由器 HQ 需要在 OSPF 更新中将默认路由信息发给路由器 Branch1 和 Branch2。 完成此配置需要使用什么命令, ___ HQ(config-router)#default-information originate ________________________ 任务 9:在路由器 Branch2 上配置 OSPF 路由 步骤 1:考虑哪些网络需要包括在由路由器 Branch2 发出的 OSPF 更新中。 Branch2 的路由表中有哪些直连网络, ___172.20.48.0/21____________________ ___172.20.56.8/30____________________ ___172.20.56.4/30____________________ 要启用 OSPF 并将所连接的网络包括在路由更新中,需要使用什么命令, BRANCH2(config)#router ospf 1 BRANCH2(config-router)#net 172.20.48.0 0.0.7.255 area 0 BRANCH2(config-router)#net 172.20.56.8 0.0.0.3 area 0 BRANCH2(config-router)#net 172.20.56.4 0.0.0.3 area 0 是否有路由器接口不需要发出 OSPF 更新,__是___ 要在这些接口上禁用 OSPF 更新,需要使用什么命令, ____BRANCH2(config-router)#passive-interface f0/0___________________________ 任务 10:检验配置 从 PC1 可以 ping 通 PC2 从 PC1 可以 ping 通 PC3 ************************** BRANCH1的路由表 *************************** Gateway of last resort is 172.20.56.1 to network 0.0.0.0 172.20.0.0/16 is variably subnetted, 6 subnets, 4 masks C 172.20.56.0/30 is directly connected, Serial0/0 O 172.20.56.4/30 [110/1171] via 172.20.56.1, 00:02:49, Serial0/0 C 172.20.56.8/30 is directly connected, Serial0/1 O 172.20.48.0/21 [110/1172] via 172.20.56.1, 00:02:49, Serial0/0 C 172.20.32.0/20 is directly connected, FastEthernet0/0 O 172.20.0.0/19 [110/782] via 172.20.56.1, 00:02:49, Serial0/0 10.0.0.0/32 is subnetted, 1 subnets O 10.10.10.1 [110/782] via 172.20.56.1, 00:02:50, Serial0/0 O*E2 0.0.0.0/0 [110/1] via 172.20.56.1, 00:02:50, Serial0/0 **************************** HQ的路由表 **************************** Gateway of last resort is 0.0.0.0 to network 0.0.0.0 172.21.0.0/16 is variably subnetted, 3 subnets, 3 masks C 172.21.0.0/23 is directly connected, FastEthernet0/0 D 172.21.3.0/25 [90/2172416] via 192.168.1.22, 00:00:02, Serial1/0 D 172.21.2.0/24 [90/2172416] via 192.168.1.18, 00:00:02, Serial1/1 209.165.200.0/30 is subnetted, 1 subnets C 209.165.200.224 is directly connected, Loopback1 192.168.1.0/30 is subnetted, 3 subnets D 192.168.1.24 [90/2681856] via 192.168.1.22, 00:00:02, Serial1/0 [90/2681856] via 192.168.1.18, 00:00:03, Serial1/1 C 192.168.1.16 is directly connected, Serial1/1 C 192.168.1.20 is directly connected, Serial1/0 S* 0.0.0.0/0 is directly connected, Loopback1 ************************** BRANCH2的路由表 ************************** Gateway of last resort is 172.20.56.5 to network 0.0.0.0 172.20.0.0/16 is variably subnetted, 6 subnets, 4 masks O 172.20.56.0/30 [110/1171] via 172.20.56.5, 00:02:56, Serial0/1 C 172.20.56.4/30 is directly connected, Serial0/1 C 172.20.56.8/30 is directly connected, Serial0/0 C 172.20.48.0/21 is directly connected, FastEthernet0/0 O 172.20.32.0/20 [110/1172] via 172.20.56.5, 00:02:56, Serial0/1 O 172.20.0.0/19 [110/391] via 172.20.56.5, 00:02:56, Serial0/1 10.0.0.0/32 is subnetted, 1 subnets O 10.10.10.1 [110/391] via 172.20.56.5, 00:02:57, Serial0/1 O*E2 0.0.0.0/0 [110/1] via 172.20.56.5, 00:02:57, Serial0/1 任务 11:思考 在 PC1 上,使用tracert 命令检查 PC1 和 PC3 之间所用的路由。 在通向 PC3 的该路由中有哪些跳, 这是通向 PC3 的最少跳数吗,___否______ 如果答案为否,那为什么使用的不是最少跳数的路径呢, OSPF的开销由不是由条数决定的,而是由路由器到目的网络沿途的传出接口的累积带宽决 定,等于100000000/带宽。从BRANCH1到HQ再到BRANCH2的开销小于直接从BRANCH1到BRANCH2 的开销,所以采用前者。 任务 12:OSPF 故障排除 拓扑图: 地址表: 步骤 1:将下列脚本加载到路由器 Branch1 中: hostname Branch1 ! no ip domain-lookup ! interface FastEthernet0/0 ip address 10.10.4.1 255.255.254.0 duplex auto speed auto no shutdown ! interface Serial0/0/0 ip address 172.16.7.2 255.255.255.252 clock rate 64000 no shutdown ! interface Serial0/0/1 ip address 172.16.7.9 255.255.255.252 no shutdown ! router ospf 1 passive-interface FastEthernet0/0 network 10.10.4.0 0.0.1.255 area 0 network 172.16.7.0 0.0.0.3 area 0 network 172.16.7.8 0.0.0.3 area 0 ! ip classless ! line con 0 line vty 0 4 login ! end 步骤 2:将下列脚本加载到路由器 Branch2 中: hostname Branch2 ! interface FastEthernet0/0 ip address 10.10.6.1 255.255.254.0 duplex auto speed auto no shutdown ! interface Serial0/0/0 ip address 172.16.7.10 255.255.255.252 clock rate 64000 no shutdown ! interface Serial0/0/1 ip address 172.16.7.6 255.255.255.252 ! router ospf 1 log-adjacency-changes passive-interface Serial0/0/1 network 172.16.7.4 0.0.0.3 area 0 network 172.16.7.8 0.0.0.3 area 0 network 10.10.6.0 0.0.3.255 area 0 ! ip classless ! line con 0 line vty 0 4 login ! ! end 步骤 3:将下列脚本加载到路由器 HQ 中: hostname HQ ! no ip domain-lookup ! interface FastEthernet0/0 ip address 10.10.10.1 255.255.252.0 duplex auto speed auto no shutdown ! interface Serial0/0/0 ip address 172.16.7.1 255.255.255.252 no shutdown ! interface Serial0/0/1 ip address 172.16.7.5 255.255.255.252 clock rate 64000 no shutdown ! interface Loopback1 ip address 209.165.202.129 255.255.255.252 ! router ospf 1 log-adjacency-changes passive-interface FastEthernet0/0 passive-interface Loopback1 network 172.16.7.0 0.0.0.3 area 0 network 172.16.7.4 0.0.0.3 area 0 network 10.10.0.0 0.0.7.255 area 0 ! ip classless ip route 0.0.0.0 0.0.0.0 loopback1 ! line con 0 line vty 0 4 login ! end 步骤 4:排除路由器 Branch1 的故障 是否可以从主机 PC1 ping PC2,__否_____ 是否可以从主机 PC1 ping PC3,__是_____ 是否可以从主机 PC1 ping 默认网关,__是____ 从查看路由器上每个接口的状态信息摘要开始。 Branch1#show ip int b Interface IP-Address OK? Method Status Protocol FastEthernet0/0 10.10.4.1 YES manual up up FastEthernet0/1 unassigned YES manual administratively down down Serial0/0/0 172.16.7.2 YES manual up up Serial0/0/1 172.16.7.9 YES manual up up Vlan1 unassigned YES manual administratively down down 路由器 Branch1 的接口状态信息摘要中的信息显示有任何配置错误吗,___否____ 路由表中目前有哪些路由, Gateway of last resort is not set 10.0.0.0/23 is subnetted, 2 subnets C 10.10.4.0 is directly connected, FastEthernet0/0 O 10.10.6.0 [110/65] via 172.16.7.10, 00:19:27, Serial0/0/1 172.16.0.0/30 is subnetted, 2 subnets C 172.16.7.0 is directly connected, Serial0/0/0 C 172.16.7.8 is directly connected, Serial0/0/1 再次尝试在主机间执行 ping 命令。 是否可以从主机 PC1 ping PC2,___否____ 是否可以从主机 PC1 ping PC3,___是____ 是否可以从主机 PC1 ping 路由器 HQ 的 Serial 0/0/0 接口,___是____ 是否可以从主机 PC1 ping 路由器 HQ 的 Serial 0/0/1 接口,___否____ 步骤 5排除路由器 HQ 的故障 是否可以从主机 PC2 ping PC1,___否_____ 是否可以从主机 PC2 ping PC3,___否_____ 是否可以从主机 PC2 ping 默认网关,___否_____ 查看路由器上每个接口的状态信息摘要: Interface IP-Address OK? Method Status Protocol FastEthernet0/0 10.10.10.1 YES manual up up FastEthernet0/1 unassigned YES manual administratively down down Serial0/0/0 172.16.7.1 YES manual up up Serial0/0/1 172.16.7.5 YES manual down down Loopback1 209.165.202.129 YES manual up up Vlan1 unassigned YES manual administratively down down F0/0接口ip-address与地址表不符s0/0/1没有up,改正如下: HQ(config)#int f0/0 HQ(config-if)#ip add 10.10.0.1 255.255.252.0 HQ(config-if)#int s0/0/1 HQ(config-if)#no shutdown 更改了配置后路由器接口的状态信息摘要: Interface IP-Address OK? Method Status Protocol FastEthernet0/0 10.10.0.1 YES manual up up FastEthernet0/1 unassigned YES manual administratively down down Serial0/0/0 172.16.7.1 YES manual up up Serial0/0/1 172.16.7.5 YES manual up up Loopback1 209.165.202.129 YES manual up up Vlan1 unassigned YES manual administratively down down 路由表中目前有哪些路由, Gateway of last resort is 0.0.0.0 to network 0.0.0.0 10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks C 10.10.0.0/22 is directly connected, FastEthernet0/0 O 10.10.4.0/23 [110/65] via 172.16.7.2, 00:41:56, Serial0/0/0 O 10.10.6.0/23 [110/129] via 172.16.7.2, 00:40:38, Serial0/0/0 172.16.0.0/30 is subnetted, 2 subnets C 172.16.7.0 is directly connected, Serial0/0/0 C 172.16.7.4 is directly connected, Serial0/0/0 O 172.16.7.8 [110/128] via 172.16.7.2, 00:40:58, Serial0/0/0 209.165.202.0/30 is subnetted, 1 subnets C 209.165.202.128 is directly connected, Loopback1 S* 0.0.0.0/0 is directly connected, Loopback1路由表存在问题吗, 在路由器 HQ 上使用show running-configuration、show ip protocols 和 show ip ospfneighbor 命令查看与 OSPF 配置相关的信息。OSPF 配置还存在其他问题吗, HQ#show ip protocol Routing Protocol is "ospf 1" Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Router ID 209.165.202.129 Number of areas in this router is 1. 1 normal 0 stub 0 nssa Maximum path: 4 Routing for Networks: 172.16.7.0 0.0.0.3 area 0 172.16.7.4 0.0.0.3 area 0 10.10.0.0 0.0.7.255 area 0 Passive Interface(s): FastEthernet0/0 Loopback1 Routing Information Sources: Gateway Distance Last Update 172.16.7.2 110 00:05:03 Distance: (default is 110) 网络 10.10.0.0 的通配符出错,修改如下: HQ(config)#router ospf 1 HQ(config-router)#no net 10.10.0.0 0.0.7.255 area 0 HQ(config-router)#net 10.10.0.0 0.0.3.255 area 0 HQ#show ip ospf neigh Neighbor ID Pri State Dead Time Address Interface 172.16.7.9 0 FULL/ - 00:00:31 172.16.7.2 Serial0/0/0 HQ与BRANCH2没有建立邻接关系 再次尝试在主机间执行 ping 命令。 是否可以从主机 PC2 ping PC1,___是____ 是否可以从主机 PC2 ping PC3,___是____ 是否可以从主机 PC2 ping 路由器 Branch2 的 Serial 0/0/0 接口,___是_____ 是否可以从主机 PC2 ping 路由器 Branch2 的 Serial 0/0/1 接口,___是_____ 步骤 6:排除路由器 Branch2 的故障 是否可以从主机 PC3 ping PC1,___是_____ 是否可以从主机 PC3 ping PC2,___是_____ 是否可以从主机 PC3 ping 默认网关,__是______ 是否可以从主机 PC3 ping 路由器 Branch2 的 Serial 0/0/1 接口,___否_____ 查看路由器上每个接口的状态信息摘要:。 Branch2#show ip int b Interface IP-Address OK? Method Status Protocol FastEthernet0/0 10.10.6.1 YES manual up up FastEthernet0/1 unassigned YES manual administratively down down Serial0/0/0 172.16.7.10 YES manual up up Serial0/0/1 172.16.7.6 YES manual administratively down down Vlan1 unassigned YES manual administratively down down S0/0/1接口没有up,修改如下: Branch2(config)#int s0/0/1 Branch2(config-if)#no shutdown 修改后的接口状态信息摘要:Interface IP-Address OK? Method Status Protocol FastEthernet0/0 10.10.6.1 YES manual up up FastEthernet0/1 unassigned YES manual administratively down down Serial0/0/0 172.16.7.10 YES manual up up Serial0/0/1 172.16.7.6 YES manual up up Vlan1 unassigned YES manual administratively down down 路由表中目前有哪些路由, Gateway of last resort is not set 10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks O 10.10.0.0/22 [110/129] via 172.16.7.9, 00:00:08, Serial0/0/0 O 10.10.4.0/23 [110/65] via 172.16.7.9, 00:31:10, Serial0/0/0 C 10.10.6.0/23 is directly connected, FastEthernet0/0 172.16.0.0/30 is subnetted, 3 subnets O 172.16.7.0 [110/128] via 172.16.7.9, 00:31:10, Serial0/0/0 C 172.16.7.4 is directly connected, Serial0/0/1 C 172.16.7.8 is directly connected, Serial0/0/0 在路由器 Branch2 上使用show running-configuration、show ip protocols 和 show ipospf neighbor 命令查看与 OSPF 配置相关的信息。 Branch2#show ip proto Routing Protocol is "ospf 1" Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Router ID 172.16.7.10 Number of areas in this router is 1. 1 normal 0 stub 0 nssa Maximum path: 4 Routing for Networks: 172.16.7.4 0.0.0.3 area 0 172.16.7.8 0.0.0.3 area 0 10.10.4.0 0.0.3.255 area 0 Passive Interface(s): Serial0/0/1 Routing Information Sources: Gateway Distance Last Update 172.16.7.9 110 00:16:45 Distance: (default is 110) S0/0/1被禁用更新,修改如下: Branch2(config)#router ospf 1 Branch2(config-router)#no passive-int s0/0/1 Neighbor ID Pri State Dead Time Address Interface 172.16.7.9 0 FULL/ - 00:00:30 172.16.7.9 Serial0/0/0 209.165.202.129 0 FULL/ - 00:00:35 172.16.7.5 Serial0/0/1 查看路由信息。 Gateway of last resort is not set 10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks O 10.10.0.0/22 [110/129] via 172.16.7.9, 00:01:29, Serial0/0/0 O 10.10.4.0/23 [110/65] via 172.16.7.9, 00:32:31, Serial0/0/0 C 10.10.6.0/23 is directly connected, FastEthernet0/0 172.16.0.0/30 is subnetted, 3 subnets O 172.16.7.0 [110/128] via 172.16.7.9, 00:32:31, Serial0/0/0 C 172.16.7.4 is directly connected, Serial0/0/1 C 172.16.7.8 is directly connected, Serial0/0/0 如果在上述步骤中更改了配置,现在请再次查看路由信息。 路由器 Branch2 的路由表中的信息显示有任何配置错误吗,__否________ 步骤 8:再次尝试在主机间执行 ping 命令。 是否可以从主机 PC3 ping PC1,__是______ 是否可以从主机 PC3 ping PC2,__是______ 是否可以从主机 PC3 ping 路由器 Branch1 的 Serial 0/0/0 接口,__是______ 是否可以从主机 PC3 ping 路由器 Branch1 的 Serial 0/0/1 接口,___是_____ 五、实验小结 本次实验比较难的地方是对ospf工作原理的理解以及后面的排除故障,在排除故障和理论理解上还存在不足,但与前面的实验相比,不管在理论的学习还是动手能力上都有了很大的提高。 六、实验心得 郭苏强:在这次实验中,我对OSPF的工作原理更加的了解,同时通过后面的排除故障学会 了通过各种show命令查看路由器状态,并寻找排除故障,使我在试验没成功的状 况下知道如何进行排故。 曾强 :此次是最后一次实验了,通过此次实验让我对OSPF的配置有了一定了解,对排故 的一般步骤有一定的了解,并认识到自己的书本理论知识的认识有所不足。 刘凯 :首先,通过本次实验使我对ospf配置的指令有了一定的了解,对带宽的更改指令 更加熟练,其次通过排故练习,学会了排故的一般步骤,但排故能力还有待加强, 通过对故障的排除,加强了对书本知识的巩固。 杨天柱:通过这次实验,我对OSPF的配置有了一定的认识。这已经是最后一次实验了,回 顾首次实验,错误不断。经过一次次的实验,一次次的挫折,到现在,我们在配置 上已经没有什么大的错误。在一次次的理论与实验的结合过程中,我渐渐发现自己 对于知识的掌握与理解有了明显的进步,对于问题的处理与理解也有了一定层次的 提高。 景朝辉:本次试验通过实践学会了OSPF指令的配置,同时了解了如何改带宽以及K值;通 过设置故障,学会了如何使用DEBUG指令进行调试,以及通过指令了解故障原因。 通过设置故障,排除故障加深了对的了解。
/
本文档为【思科网络实验报告6 ospf】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。 本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。 网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。

历史搜索

    清空历史搜索