Ospf 协议配置试验
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Ospf 协议配置试验
试验题目: ospf 协议配置试验
实验目的: 动态路由ospf 协议配置, 通过ospf协议使4个网段相互通讯实验器材: Cisco2600 , PC (模拟器YS-RouterSim 3.1 C2900)
实验内容:
RouterA E0: 172.16.10.1/24 S0: 172.16.20.1
RouterB S0: 172.16.20.2/24 S1: 172.16.30.1
RouterC E0: 172.16.40.1/24 S0: 172.16.30.2
PcA: 172.16.10.2/24 172.16.10.1
PcB: 172.16.40.2/24 172.16.40.1
RouterA
routerA#config t
routerA(config)#int e0
routerA (config-if)#ip add 172.16.10.1 255.255.255.0
routerA (config-if)#no shut
routerA (config-if)#int s0
routerA (config-if)#ip add 172.16.20.1 255.255.255.0
routerA (config-if)#no shut
routerA (config-if)#exit
routerA (config)#route ospf 10
routerA (config-router)#network 172.16.10.0 0.0.0.255 area 100
routerA (config-router)#network 172.16.20.0 0.0.0.255 area 100
routerA(config-router)#exit
routerA(config)#ip routing
routerA(config)#exit
RouterB
routerB#config t
routerB(config)#int s0
routerB (config-if)#ip add 172.16.20.2 255.255.255.0
routerB (config-if)#no shut
routerB (config-if)#int s1
routerB (config-if)#ip add 172.16.30.1 255.255.255.0
routerB(config-if)#clock rate 64000
routerB (config-if)#no shut
routerB (config-if)#exit
routerB (config)#route ospf 10
routerB (config-router)#network 172.16.20.0 0.0.0.255 area 100 routerB (config-router)#network 172.16.30.0 0.0.0.255 area 100 routerB(config-router)#exit
routerB(config)#ip routing
routerB(config)#exit
RouterC
routerC#config t
routerC(config)#int s0
routerC (config-if)#ip add 172.16.30.2 255.255.255.0
routerC (config-if)#no shut
routerC (config-if)#int e0
routerC (config-if)#ip add 172.16.40.1 255.255.255.0
routerC (config-if)#no shut
routerC (config-if)#exit
routerC (config)#route ospf 10
routerC (config-router)#network 172.16.20.0 0.0.0.255 area 100 routerC (config-router)#network 172.16.30.0 0.0.0.255 area 100 routerC(config-router)#exit
routerC(config)#ip routing
routerC(config)#exit
结果测试:
[root@PCA root]# ping 172.16.40.2
64 bytes from 172.16.10.2: icmp_seq=1 ttl=128 time=0.207 ms 64 bytes from 172.16.10.2: icmp_seq=1 ttl=128 time=0.100 ms 64 bytes from 172.16.10.2: icmp_seq=1 ttl=128 time=0.96 ms 64 bytes from 172.16.10.2: icmp_seq=1 ttl=128 time=0.96 ms
[root@PCB root]# ping 172.16.10.2
64 bytes from 172.16.40.2: icmp_seq=1 ttl=128 time=0.207 ms 64 bytes from 172.16.40.2: icmp_seq=1 ttl=128 time=0.100 ms 64 bytes from 172.16.40.2: icmp_seq=1 ttl=128 time=0.96 ms 64 bytes from 172.16.40.2: icmp_seq=1 ttl=128 time=0.96 ms。