配置ip地址及其环回
[r1]dis ip in b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 1
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 12.1.1.1/24 up up
GigabitEthernet0/0/1 13.1.1.1/24 up up
GigabitEthernet0/0/2 unassigned down down
LoopBack0 1.1.1.1/24 up up(s)
NULL0 unassigned up up(s)
[r2-LoopBack0]dis ip in b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 1
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 12.1.1.2/24 up up
GigabitEthernet0/0/1 24.1.1.1/24 up up
GigabitEthernet0/0/2 unassigned down down
LoopBack0 2.2.2.2/24 up up(s)
NULL0 unassigned up up(s)
.........
2.配置rip及其ospf
再将R7上环回重发布进入OSPF
[r7-ospf-1]ospf 1
[r7-ospf-1]import-route direct
在R2、R3上进行双点双向重发布
[r2]ospf 1
[r2-ospf-1]
[r2-ospf-1]import-route rip 1
[r2]rip 1
[r2-rip-1]
[r2-rip-1]import-route ospf 1
3.解决路由回馈问题
路由回馈出现原因:
一个是OSPF内部学习到的/32的路由,另一个是R3重发布进rip,再由R2重发布进了OSPF学习到了/24的路由,导致了路由回馈。
修改R3的环回OSPF的接口工作方式为broadcast
[r3]int l0
[r3-LoopBack0]ospf net
[r3-LoopBack0]ospf network-type b
[r3-LoopBack0]ospf network-type broadcast
结果
<r1>ping 7.7.7.7
PING 7.7.7.7: 56 data bytes, press CTRL_C to break
Request time out
Request time out
Request time out
Request time out
Request time out
--- 7.7.7.7 ping statistics ---
5 packet(s) transmitted
0 packet(s) received
100.00% packet loss