2023年12月29日发(作者:)
R3(config-if)#clock rate 64000R3(config-if)#no shutdown%LINK-5-CHANGED: Interface Serial0/0/0, changed state to downR3(config-if)#interface s0/0/1R3(config-if)#ip address 20.1.1.2 255.255.255.0R3(config-if)#clock rate 64000This command applies only to DCE interfacesR3(config-if)#no shutdown%LINK-5-CHANGED: Interface Serial0/0/1, changed state to downR3(config-if)#exitR3(config)#router ospf 1R3(config-router)#router-id 3.3.3.3R3(config-router)#network 192.168.3.0 0.0.0.255 area 0R3(config-router)#network 30.1.1.0 0.0.0.255 area 0R3(config-router)#network 20.1.1.0 0.0.0.255 area 0R3(config-router)#end(4)R4路由器配置Router>enableRouter#configure terminalEnter configuration commands, one per line. End with CNTL/(config)#hostname R4R4(config)#interface f0/0R4(config-if)#ip address 192.168.1.1 255.255.255.0R4(config-if)#no shutdownR4(config-if)#interface f0/1R4(config-if)#ip address 192.168.10.254 255.255.255.0R4(config-if)#no shutdownR4(config-if)#exitR4(config)#router ospf 1R4(config-router)#router-id 4.4.4.4R4(config-router)#network 192.168.1.0 0.0.0.255 area 0R4(config-router)#network 192.168.10.0 0.0.0.255 area 0R4(config-router)#end(5)R5路由器配置Router>enableRouter#configure terminalEnter configuration commands, one per line. End with CNTL/(config)#hostname R5R5(config)#interface f0/0R5(config-if)#ip address 192.168.3.2 255.255.255.0R5(config-if)#no shutdownR5(config-if)#interface f0/1R5(config-if)#ip address 192.168.30.254 255.255.255.0R5(config-if)#no shutdownR5(config-if)#exitR5(config)#router ospf 1R5(config-router)#router-id 5.5.5.5R5(config-router)#network 192.168.3.0 0.0.0.255 area 0R5(config-router)#network 192.168.30.0 0.0.0.255 area 0R5(config-router)#end(6)R6路由器配置Router>enableRouter#configure terminalEnter configuration commands, one per line. End with CNTL/(config)#hostname R6R6(config)#interface f0/0R6(config-if)#ip address 192.168.2.1 255.255.255.0R6(config-if)#no shutdownR6(config-if)#interface f0/1R6(config-if)#ip address 192.168.20.254 255.255.255.0R6(config-if)#no shutdownR6(config-if)#exitR6(config)#router ospf 1R6(config-router)#router-id 6.6.6.6R6(config-router)#network 192.168.2.0 0.0.0.255 area 0R6(config-router)#network 192.168.20.0 0.0.0.255 area 0R6(config-router)#end四、验证测试1、查看R1路由表信息
5、测试各台主机间是否互通(1)PC1与PC2(2)PC2与PC3(3)PC3与PC1


发布评论