ospf路由实验
作者:互联网
1.每台路由器配置环回地址LOOP0,要求使用该地址作为OSPF的router-id
R2 R3 R4 R5 R6 配置回环口1.1.1.1 2.2.2.2 3.3.3.3 4.4.4.4 5.5.5.5 6.6.6.6
2.配置OSPF协议,进程号为1,并将相应的网段宣告进OSPF
R1:
ospf 1 router-id 1.1.1.1
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 192.168.12.0 0.0.0.255
area 0.0.0.2
network 100.1.1.0 0.0.0.255
R2:
ospf 1 router-id 2.2.2.2
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 192.168.12.0 0.0.0.255
network 192.168.23.0 0.0.0.255
R3:
ospf 1 router-id 3.3.3.3
area 0.0.0.0
network 192.168.23.0 0.0.0.255
area 0.0.0.1
network 3.3.3.3 0.0.0.0
network 192.168.34.0 0.0.0.255
R4:
area 0.0.0.1
network 4.4.4.4 0.0.0.0
network 192.168.34.0 0.0.0.255
注入:
rip 1
import-route ospf 1
ospf 1 router-id 4.4.4.4
import-route rip 1 type
R5:(做ospf)
R6:(做rip)
rip 1
undo summary
version 2
network 200.1.1.0
network 6.0.0.0
3.R1/R2/R3为骨干区域
4.R1/R5为区域2,在该区域当中选择一种网络类型,要求不需要选举DR,并且
要求快速收敛(需要换口若是不换口在R1和R5的网段上进口做ospf network-type p2p(改为点对点))
5.R3/R4为区域1,在该区域当中要求减少LSA的数量,不需要有LSA5,但需要
有外部路由进入到OSPF
R3/R4:
ospf 1
area 1
nssa no-summary
6.R4与R6运行RIP V2,在R6上有个环回地址6.6.6.6
R4:
network 200.1.1.0
R6:
rip 1
undo summary
version 2
network 200.1.1.0
network 6.0.0.0
7.要求R5能够PING 通200.1.1.1
8.要求R6能够PING 通100.1.1.1
9.在OSPF AREA 1中请确保R3被选为DR
R3:
interface GigabitEthernet0/0/0
ospf dr-priority 100
结果:
标签:1.1,area,0.0,实验,0.255,ospf,路由,network 来源: https://www.cnblogs.com/TiAmoLJ/p/11311452.html