1、实验报告实验时间 09 年 12 月 9 日 3 时 5 时 / 实验完成所需的时间实验人 黄佳平实验名称 OSPF 单区域配置所属模块及课程 BENET 2.0 ATEN 第 8 章实验背景 办事处和公司总部需网络连接完成标准拓扑结构实验步骤 1. 按拓扑图正确连接设备,并配置设备名2. 配置路由起接口地址和 Loopback地址1, 配置配置 R1Router(config)#interface l0Router(config-if)#ip address 192.168.31.11 255.255.255.255Router(config-if)#exitRouter(config)#i
2、nterface f0/0Router(config-if)#ip address 192.168.1.1 255.255.255.0Router(config-if)#no shutdown %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#exitRouter(config)#配置 R2Router(config)
3、#interface l0%LINK-5-CHANGED: Interface Loopback0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to upRouter(config-if)#ip address 192.168.31.22 255.255.255.255Router(config-if)#exitRouter(config)#interface f0/0Router(config-if)#ip address 192.168.1.2 25
4、5.255.255.0Router(config-if)#no shut%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#exitRouter(config)#配置 R3Router(config)#interface l0%LINK-5-CHANGED: Interface Loopback0, changed st
5、ate to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to upRouter(config-if)#ip address 192.168.31.33 255.255.255.255Router(config-if)#exitRouter(config)#interface f0/0Router(config-if)#ip address 192.168.1.3 255.255.255.0Router(config-if)#no shutdown%LINK-5-CHANGED: Inte
6、rface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#exit2,验证配置:Router#show ip interface brief2, 启用 OSPF 进程,发布网段配置 R1Router(config)#router ospf 100Router(config-router)#network 192.168.1.0 0.0.0.255 area 0Rout
7、er(config-router)#network 192.168.31.11 0.0.0.0 area 0Router(config-router)#end%SYS-5-CONFIG_I: Configured from console by consoleRouter#配置 R2Router(config)#router ospf 100Router(config-router)#network 192.168.1.0 0.0.0.255 area 0Router(config-router)#network 192.168.31.22 0.0.0.0 area 0Router(confi
8、g-router)#end%SYS-5-CONFIG_I: Configured from console by consoleRouter#配置 R3Router(config)#router ospf 100Router(config-router)#network 192.168.1.0 0.0.0.255 area 0Router(config-router)#network 192.168.31.33 0.0.0.0 area 0Router(config-router)#end%SYS-5-CONFIG_I: Configured from console by consoleRo
9、uter#3. 验证Router#show ip ospfRouter#show ip ospf interface f0/0Router#show ip ospf interface lo0Router#show ip routeRouter#ping 192.168.1.3192.168.1.2192.168.1.1192.168.31.11192.168.31.22192.168.31.334. 更新 OSPF计数器.配置 R1:Router(config)#interface F0/0Router(config-if)#ip ospf hello-interval 5Router(co
10、nfig-if)#ip ospf dead-interval 20Router(config-if)#end%SYS-5-CONFIG_I: Configured from console by consoleRouter#配置 R2:Router(config)#interface f0/0Router(config-if)#ip ospf hello-interval 5Router(config-if)#ip ospf dead-interval 20Router(config-if)#end%SYS-5-CONFIG_I: Configured from console by consoleRouter#配置 R3:Router(config)#interface f0/0Router(config-if)#ip ospf hello-interval 5Router(config-if)#ip ospf dead-interval 20Router(config-if)#end%SYS-5-CONFIG_I: Configured from console by consoleRouter#验证:Router#show ip ospf interface测试方法 Router#show ip ospf interfaceRouter#show run实验成功!