本帖最后由 okulao 于 2009-8-10 20:25 编辑
还原一下你的配置,你看下你是不是这样配置的:
R2:
router ospf x
net 192.168.1.0 0.0.0.255 ar 0
summary-address 172.16.0.0 255.255.0.0 ------------第一重要点
redistribute rip subnets
redistribute ...
tianchunyu 发表于 2009-8-10 17:34
配置完全正确 加多个
int f0/0
ip summary-address rip 192.168.11.0 255.255.255.0
感谢各位仁兄指点 ··
这么说之所以汇总到rip的路由没有在OSPF域中出现是因为RIP汇总路由不会产生一个指向NULL的空路由 ???对吗?
不过对R3为什么没有1.1.1.0这路由依然不懂。R2都已经将它重发布进OSPF了,为什么不会再由OSPF重发布进RIP ??
完整配置:
R2:
interface FastEthernet0/0
ip address 192.168.1.2 255.255.255.0
ip summary-address rip 192.168.11.0 255.255.255.0
duplex auto
speed auto
!
router ospf 100
log-adjacency-changes
summary-address 172.16.0.0 255.255.0.0
redistribute connected metric 10 subnets
redistribute rip metric 20 subnets
network 192.168.1.0 0.0.0.255 area 0
!
router rip
version 2
redistribute ospf 100 metric 2
network 172.16.0.0
!
路由表
R1
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
O E2 1.1.1.0 [110/10] via 192.168.1.2, 00:14:14, FastEthernet0/0
O E2 172.16.0.0/16 [110/10] via 192.168.1.2, 00:12:18, FastEthernet0/0
192.168.11.0/25 is subnetted, 2 subnets
C 192.168.11.0 is directly connected, Loopback1
C 192.168.11.128 is directly connected, Loopback0
C 192.168.1.0/24 is directly connected, FastEthernet0/0
R2
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
O 172.16.0.0/16 is a summary, 00:00:14, Null0
C 172.16.1.0/24 is directly connected, Serial0/0
192.168.11.0/32 is subnetted, 2 subnets
O 192.168.11.1 [110/2] via 192.168.1.1, 00:02:21, FastEthernet0/0
O 192.168.11.129 [110/2] via 192.168.1.1, 00:02:21, FastEthernet0/0
C 192.168.1.0/24 is directly connected, FastEthernet0/0
R3
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
R 172.16.0.0/16 [120/2] via 172.16.1.1, 00:00:02, Serial0/1
C 172.16.1.0/24 is directly connected, Serial0/1
R 192.168.11.0/24 [120/2] via 172.16.1.1, 00:00:02, Serial0/1
R 192.168.1.0/24 [120/2] via 172.16.1.1, 00:00:02, Serial0/1 |