From: Victor Cappuccio (vcappuccio@desca.com)
Date: Sat Jan 20 2007 - 14:48:29 ART
Hi,
I think he meant to say it in the other way
Router ospf 100
Red rip sub
Red conn sub
Great information about this:
http://www.groupstudy.com/archives/ccielab/200310/msg00269.html
But If I can add more, in relation to the question.
Using this Dynamips configuration:
start "R1" /belownormal G:\Images\dynamips-wxp.exe -i 1 -P 3600
--idle-pc 0x6050a06c -p 0:NM-4E -p 1:NM-4T -p 2:NM-1FE-TX -p
3:NM-1FE-TX -s 0:0:udp:11112:127.0.0.1:11121 -s
3:0:udp:130306:127.0.0.1:630301 -G ghost_ram g:\Images\C3640-IS.BIN
start "R2" /belownormal G:\Images\dynamips-wxp.exe -i 2 -P 3600
--idle-pc 0x6050a06c -p 0:NM-4E -s 0:0:udp:11123:127.0.0.1:11132 -s
0:1:udp:11121:127.0.0.1:11112 -s 0:2:udp:11126:127.0.0.1:11162 -G
ghost_ram g:\Images\C3640-IS.BIN
start "R3" /belownormal G:\Images\dynamips-wxp.exe -i 3 -P 3600
--idle-pc 0x6050a06c -p 0:NM-4E -p 1:NM-4T -p 2:NM-1FE-TX -p
3:NM-1FE-TX -s 0:0:udp:11134:127.0.0.1:11143 -s
0:1:udp:11132:127.0.0.1:11123 -s 2:0:udp:320206:127.0.0.1:620203 -G
ghost_ram g:\Images\C3640-IS.BIN
I configured several loopbacks on R3
R3#show run | in ip route
R3#show ip int brief | in Lo
Loopback0 3.3.3.3 YES NVRAM up
up
Loopback102 10.2.0.2 YES NVRAM up
up
R3#conf te
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#int lo103
R3(config-if)#ip add 10.3.0.3 255.255.255.255
R3(config-if)#int lo104
R3(config-if)#ip add 10.4.0.3 255.255.255.255
R3(config-if)#do show ip prot
R3(config-if)#
R3 is announcing this loopbacks via RIP to R2
R3(config-if)#router rip
R3(config-router)#net 10.0.0.0
R3(config-router)#no auto
R3(config-router)#ver 2
R3(config-router)#do show ip int brief | ex una|admin
Interface IP-Address OK? Method Status
Prot
ocol
Ethernet0/0 1.1.34.3 YES NVRAM up
up
Ethernet0/1 1.1.23.3 YES NVRAM up
up
FastEthernet2/0 1.1.36.3 YES NVRAM up
up
Loopback0 3.3.3.3 YES NVRAM up
up
Loopback102 10.2.0.2 YES NVRAM up
up
Loopback103 10.3.0.3 YES manual up
up
Loopback104 10.4.0.3 YES manual up
up
R3(config-router)#net 1.0.0.0
, R2 is receiving this information via rip
R2(config)#do show run | in ip route
R2(config)#do show ip proto
R2(config)#router rip
R2(config-router)#ver 2
R2(config-router)#no auto
R2(config-router)#net 1.0.0.0
R2(config-router)#pass default
R2(config-router)#no pass e0/0
R2(config-router)#do clear ip route *
R2(config-router)#do show ip route rip
1.0.0.0/24 is subnetted, 5 subnets
R 1.1.34.0 [120/1] via 1.1.23.3, 00:00:02, Ethernet0/0
R 1.1.36.0 [120/1] via 1.1.23.3, 00:00:02, Ethernet0/0
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
R 10.2.0.0/16 [120/1] via 1.1.23.3, 00:00:02, Ethernet0/0
R 10.3.0.3/32 [120/1] via 1.1.23.3, 00:00:02, Ethernet0/0
R 10.4.0.3/32 [120/1] via 1.1.23.3, 00:00:02, Ethernet0/0
R2 is redistributing this information to OSPF
R2(config-router)#router ospf 100
R2(config-router)#net 1.1.12.2 0.0.0.0 a 0
R2(config-router)#do show ip ospf neigh
Neighbor ID Pri State Dead Time Address
Interface
11.11.11.1 1 2WAY/DROTHER 00:00:35 1.1.12.1
Ethernet0/1
R2(config-router)#red rip sub
R2(config-router)#do show ip ospf neigh
R2(config-router)#do show ip ospf neigh
Neighbor ID Pri State Dead Time Address
Interface
11.11.11.1 1 FULL/DR 00:00:39 1.1.12.1
Ethernet0/1
R2(config-router)#
R1>en
R1#conf ter
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#no ip domain-loo
R1(config)#do show ip pro
Routing Protocol is "bgp 1"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
IGP synchronization is disabled
Automatic route summarization is disabled
Neighbor(s):
Address FiltIn FiltOut DistIn DistOut Weight RouteMap
1.1.12.2
1.1.16.6
Maximum path: 1
Routing Information Sources:
Gateway Distance Last Update
1.1.12.2 20 00:00:50
Distance: external 20 internal 200 local 200
R1(config)#no router bgp 1
R1(config)#
*Mar 1 00:03:32.959: %BGP-5-ADJCHANGE: neighbor 1.1.12.2 Down BGP
protocol init
ialization
R1(config)#do show run | in ip route
R1(config)#router ospf 100
R1(config-router)#do show ip int brief | ex una|admin
Interface IP-Address OK? Method Status
Prot
ocol
Ethernet0/0 1.1.12.1 YES NVRAM up
up
FastEthernet3/0 1.1.16.1 YES NVRAM up
up
Loopback0 1.1.1.1 YES NVRAM up
up
Loopback1003 11.11.11.1 YES NVRAM up
up
R1(config-router)#net 1.1.12.1 0.0.0.0 a 0
R1(config-router)#
*Mar 1 00:11:10.387: %OSPF-5-ADJCHG: Process 100, Nbr 2.2.2.2 on
Ethernet0/0 fr
om LOADING to FULL, Loading Done
R1(config-router)#do show ip route | be Gate
Gateway of last resort is not set
1.0.0.0/8 is variably subnetted, 7 subnets, 2 masks
C 1.1.1.1/32 is directly connected, Loopback0
C 1.1.12.0/24 is directly connected, Ethernet0/0
C 1.1.16.0/24 is directly connected, FastEthernet3/0
O E2 1.1.23.0/24 [110/20] via 1.1.12.2, 00:00:26, Ethernet0/0
O E2 1.1.26.0/24 [110/20] via 1.1.12.2, 00:00:26, Ethernet0/0
O E2 1.1.34.0/24 [110/20] via 1.1.12.2, 00:00:26, Ethernet0/0
O E2 1.1.36.0/24 [110/20] via 1.1.12.2, 00:00:26, Ethernet0/0
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
O E2 10.2.0.0/16 [110/20] via 1.1.12.2, 00:00:26, Ethernet0/0
O E2 10.3.0.3/32 [110/20] via 1.1.12.2, 00:00:26, Ethernet0/0
O E2 10.4.0.3/32 [110/20] via 1.1.12.2, 00:00:26, Ethernet0/0
11.0.0.0/24 is subnetted, 1 subnets
C 11.11.11.0 is directly connected, Loopback1003
R1(config-router)#
Now if you redistribute connected using a route-map
R2(config-router)#route-map LO0
R2(config-route-map)#ma int lo0
R2(config-route-map)#router ospf 100
R2(config-router)#red con route-map LO0
% Only classful networks will be redistributed
R2(config-router)#red con route-map LO0 sub
R2(config-router)#
R1(config-router)#do show ip route ospf
1.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
O E2 1.1.34.0/24 [110/20] via 1.1.12.2, 00:08:09, Ethernet0/0
O E2 1.1.36.0/24 [110/20] via 1.1.12.2, 00:08:09, Ethernet0/0
2.0.0.0/32 is subnetted, 1 subnets
O E2 2.2.2.2 [110/20] via 1.1.12.2, 00:02:19, Ethernet0/0
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
O E2 10.2.0.0/16 [110/20] via 1.1.12.2, 00:08:09, Ethernet0/0
O E2 10.3.0.3/32 [110/20] via 1.1.12.2, 00:08:09, Ethernet0/0
O E2 10.4.0.3/32 [110/20] via 1.1.12.2, 00:08:09, Ethernet0/0
R1(config-router)#
R1(config-router)#do ping 1.1.23.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.23.3, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
R1(config-router)#
On the other side
R2(config-router)#red con route-map LO0 sub
R2(config-router)#router rip
R2(config-router)#red ospf 100
R2(config-router)#
R3(config-router)#do show ip route | b Gate
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 5 subnets
R 1.1.12.0 [120/1] via 1.1.23.2, 00:00:23, Ethernet0/1
C 1.1.23.0 is directly connected, Ethernet0/1
R 1.1.26.0 [120/1] via 1.1.23.2, 00:00:23, Ethernet0/1
C 1.1.34.0 is directly connected, Ethernet0/0
C 1.1.36.0 is directly connected, FastEthernet2/0
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C 10.2.0.0/16 is directly connected, Loopback102
C 10.3.0.3/32 is directly connected, Loopback103
C 10.4.0.3/32 is directly connected, Loopback104
R3(config-router)#
And if you include a route-map Connected matching Lo0 to RIP
R2(config-router)#red conn route-map LO0
R3(config-router)#do clear ip route *
R3(config-router)#do show ip route rip | b Gate
R3(config-router)#do show ip route rip | b Gate
R3(config-router)#do show ip route rip | b Gate
R3(config-router)#do show ip route rip | b Gate
R3(config-router)#do show ip route rip | b Gate
R3(config-router)#do show ip route rip | b Gate
R3(config-router)#
So the default action is to deny all your connected routes by the
route-map
Without the connected redistribution route-map used in the
routing-protocol
I would think that the Route-map is like this
Router ospf 100
Red rip sub
-------- not shown --- red conn sub
Now If you add a redistribute connected using a route-map that statement
since to get disappear
I find this link useful to lab it and play around it a long while just
to get sure I understand what they mean to say
http://www.cisco.com/warp/public/105/52.html
I hope It make sense
Saludos,
Victor.-
-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Sergey Golovanov
Sent: Saturday, January 20, 2007 5:43 AM
To: huangyinxiao@gmail.com;
Subject: Re: OSPF redistribute into RIP
Laurence
are you doing this?
router rip
redistribute ospf 1
redistribute connected
no, redistribute connected is not needed. If a connected interface is
running OSPF process (network statement under OSPF), then it will be
automatically included into redistribution, so you just need this:
router rip
redistribute ospf 1
this works with all IGPs
--------------------------------------------------------------------
Sergey Golovanov, CCIEx5 (R&S/Security/Voice/Service Provider/Storage)
"Please, don't ask me for my ccie #, there are reasons why I can't
release it"
ieMentor Instructor and Content Developer
sergey.golovanov@iementor.com
http://www.iementor.com
> -------Original Message-------
> From: huangyinxiao@gmail.com
> Subject: OSPF redistribute into RIP
> Sent: Jan 20 '07 02:33
>
> Hi group,
>
> I found that when ospf redistribute into rip, the key word
'connected' need to be added. But when redistribute any other protocols,
there is no problems. So can anyone tell me the reason.
>
> Thanks,
>
> Laurence
>
>
This archive was generated by hypermail 2.1.4 : Thu Feb 08 2007 - 23:46:57 ART