R1#show ip rou
R1#show ip route rip
R 5.0.0.0/8 [120/1] via 15.1.1.5, 00:00:15, FastEthernet0/0
R 6.0.0.0/8 [120/1] via 15.1.1.5, 00:00:15, FastEthernet0/0
R 7.0.0.0/8 [120/1] via 15.1.1.5, 00:00:15, FastEthernet0/0
R 8.0.0.0/8 [120/1] via 15.1.1.5, 00:00:15, FastEthernet0/0
R1(config)#router ospf 1
R1(config-router)#redistribute rip subnets
R1(config-router)#redistribute connected subnets
R2#show ip route ospf
1.0.0.0/32 is subnetted, 1 subnets
O E2 1.1.1.1 [110/20] via 172.12.123.1, 00:00:10, Serial0/0
O E2 5.0.0.0/8 [110/20] via 172.12.123.1, 00:00:15, Serial0/0
O E2 6.0.0.0/8 [110/20] via 172.12.123.1, 00:00:15, Serial0/0
O E2 7.0.0.0/8 [110/20] via 172.12.123.1, 00:00:15, Serial0/0
O E2 8.0.0.0/8 [110/20] via 172.12.123.1, 00:00:15, Serial0/0
15.0.0.0/24 is subnetted, 1 subnets
O E2 15.1.1.0 [110/20] via 172.12.123.1, 00:00:15, Serial0/0
R2#
R1(config)#access-list 17 deny 6.0.0.0 0.255.255.255
R1(config)#access-list 17 deny 7.0.0.0 0.255.255.255
R1(config)#access-list 17 permit any
R1(config)#router ospf 1
R1(config-router)#distribute-list 17 out rip
R1(config-router)#
R2#show ip route ospf
1.0.0.0/32 is subnetted, 1 subnets
O E2 1.1.1.1 [110/20] via 172.12.123.1, 00:04:25, Serial0/0
O E2 5.0.0.0/8 [110/20] via 172.12.123.1, 00:04:30, Serial0/0
O E2 8.0.0.0/8 [110/20] via 172.12.123.1, 00:04:30, Serial0/0
15.0.0.0/24 is subnetted, 1 subnets
O E2 15.1.1.0 [110/20] via 172.12.123.1, 00:04:30, Serial0/0
No comments:
Post a Comment