学员提问:
网络拓扑图如附件
在R1和R2运行ospf, R1和R3运行eigrp,目的是希望通过redistribute把eigrp的路由发送到R2的路由表中,让R2可以ping通R3的loopback接口地址3.3.3.3.
配置如下:
R1:
interface Loopback0
ip address 1.1.1.1 255.255.255.0
!
interface Serial0/0
ip address 192.168.12.1 255.255.255.0
serial restart-delay 0
!
interface Serial0/1
ip address 192.168.13.1 255.255.255.0
serial restart-delay 0
router eigrp 90
network 192.168.13.0
no auto-summary
!
router ospf 110
log-adjacency-changes
redistribute eigrp 90 subnets
network 1.1.1.0 0.0.0.255 area 0
network 192.168.0.0 0.0.255.255 area 0
R2:
interface Loopback0
ip address 2.2.2.2 255.255.255.0
!
interface Serial0/0
ip address 192.168.12.2 255.255.255.0
serial restart-delay 0
!
router ospf 110
log-adjacency-changes
network 2.2.2.0 0.0.0.255 area 0
network 192.168.0.0 0.0.255.255 area 0
!
R3:
interface Loopback0
ip address 3.3.3.3 255.255.255.0
!
interface Loopback1
ip address 30.0.0.1 255.255.255.0
!
interface Serial0/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/1
ip address 192.168.13.3 255.255.255.0
serial restart-delay 0
!
router eigrp 90
network 30.0.0.0
network 192.168.13.0
no auto-summary
上述配置完毕后在R2的路由表中可以看到R3的loopback接口地址,但是却无法ping通R3的接口IP:3.3.3.3,这个是什么原因?(第二张图是R2上的show ip route)
在R1和R2运行ospf, R1和R3运行eigrp,目的是希望通过redistribute把eigrp的路由发送到R2的路由表中,让R2可以ping通R3的loopback接口地址3.3.3.3.
配置如下:
R1:
interface Loopback0
ip address 1.1.1.1 255.255.255.0
!
interface Serial0/0
ip address 192.168.12.1 255.255.255.0
serial restart-delay 0
!
interface Serial0/1
ip address 192.168.13.1 255.255.255.0
serial restart-delay 0
router eigrp 90
network 192.168.13.0
no auto-summary
!
router ospf 110
log-adjacency-changes
redistribute eigrp 90 subnets
network 1.1.1.0 0.0.0.255 area 0
network 192.168.0.0 0.0.255.255 area 0
R2:
interface Loopback0
ip address 2.2.2.2 255.255.255.0
!
interface Serial0/0
ip address 192.168.12.2 255.255.255.0
serial restart-delay 0
!
router ospf 110
log-adjacency-changes
network 2.2.2.0 0.0.0.255 area 0
network 192.168.0.0 0.0.255.255 area 0
!
R3:
interface Loopback0
ip address 3.3.3.3 255.255.255.0
!
interface Loopback1
ip address 30.0.0.1 255.255.255.0
!
interface Serial0/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/1
ip address 192.168.13.3 255.255.255.0
serial restart-delay 0
!
router eigrp 90
network 30.0.0.0
network 192.168.13.0
no auto-summary
上述配置完毕后在R2的路由表中可以看到R3的loopback接口地址,但是却无法ping通R3的接口IP:3.3.3.3,这个是什么原因?(第二张图是R2上的show ip route)
捷盈讲师及学员解答:
虽然可以看到3.3.3.3的路由条目,但是你的下一跳地址是不可达的所以是无法ping通的。
我分析的原因是:R3没有到达R2的路由。你只要在R3上加一条静态回程路由指向R2就行了。

