OSPF 的配置实验

2017-12-18  本文已影响0人  andytimes

安徽工业经济职业技术学院 31715 - 3#108 - 黎祎军


一、实验目的

二、实验要点

实验拓扑图

三、实验步骤

 - R1
Router(config)# hostname R1
R1(config)# interface f0/1
R1(config)# clock rate 64000
R1(config-if)# ip address 10.0.1.254 255.255.255.0
R1(config-if)# no shutdown

 - R2
R2(config)# interface s1/1
R2(config)# clock rate 64000
R2(config-if)# ip address 30.0.0.2 255.255.255.0
R2(config-if)# no shutdown

 - R3
R3(config)# interface f0/0
R3(config-if)# ip address 50.0.0.254 255.255.255.0
R3(config-if)# no shutdown

 - R1
R1(config)# router ospf
R1(config-router)# network 10.0.1.0 0.0.0.255 area 1
R1(config-router)# network 10.0.2.0 0.0.0.255 area 1
R1(config-router)# network 30.0.0.0 0.0.0.255 area 1

 - R2
R1(config-router)# network 10.0.1.0 0.0.0.255 area 1
R1(config-router)# network 10.0.2.0 0.0.0.255 area 1
R2(config-router)# network 30.0.0.0 0.0.0.255 area 1
R2(config-router)# network 20.0.0.0 0.0.0.255 area 2
R2(config-router)# network 40.0.0.0 0.0.0.255 area 3
R2(config-router)# network 50.0.0.0 0.0.0.255 area 3

 - R3
R3(config-router)# network 40.0.0.0 0.0.0.255 area 3
R3(config-router)# network 50.0.0.0 0.0.0.255 area 3
R3(config-router)# exit
R3# show ip route

四、个人总结

  1. 首先spf进程号两边要相同;
  2. 两边接口的地址要在同一网段;
  3. 宣告网段时要注意带反掩码进行匹配,后面跟上区域号;
  4. 其次spf区域要注意划对。
上一篇 下一篇

猜你喜欢

热点阅读