cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1004
Views
1
Helpful
15
Replies

redistribute rip into ospf

i_hanu
Level 1
Level 1

Hi!

Please help me, where am I wrong?

I don't receice on BUH03 routes from BUH02 and on BUH02 routes from BUH03.

I attached a map photo.

map.PNG

BUH03
router ospf 2 vrf REG
redistribute bgp 100 subnets
network 172.16.51.0 0.0.0.255 area 0
!
router ospf 1
network 10.0.0.28 0.0.0.3 area 0
!
router bgp 100
bgp log-neighbor-changes
!
address-family ipv4 vrf REG
redistribute ospf 2
exit-address-family

IOU2#show ip route vrf REG

Routing Table: REG
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override

Gateway of last resort is not set

172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
R 172.16.32.0/24 [120/1] via 172.16.52.2, 00:00:21, Vlan50
C 172.16.52.0/24 is directly connected, Vlan50
L 172.16.52.1/32 is directly connected, Vlan50

==========================================

BUH02

router rip
!
address-family ipv4 vrf REG
redistribute bgp 100
network 172.16.0.0
no auto-summary
version 2
exit-address-family
!
router bgp 100
bgp log-neighbor-changes
!
address-family ipv4 vrf REG
redistribute rip
exit-address-family

BUH03#show ip route vrf REG

Routing Table: REG
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override

Gateway of last resort is not set

172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.16.51.0/24 is directly connected, Vlan50
L 172.16.51.1/32 is directly connected, Vlan50

15 Replies 15

Are BUHx use IGP or bgp between each other?

MHM

I use OSPF between all buh and P

And you use bgp only in each BUH for route leaking.

If yes 

You need to use route-target both 1:1

This make prefix leak between opsf and rip using bgp.

MHM

Since both opsf and rip using same vrf redistrubte it directly without using bgp for route leaking

MHM

it's not solution, I clicked by mistake

I configured like you sad and it's the same thing

BUH03#conf t
Enter configuration commands, one per line. End with CNTL/Z.
BUH03(config)#router ospf 2 vrf REG
BUH03(config-router)#REDIstribute RIp
BUH03(config-router)#EXIT
BUH03(config)#EXIT
BUH03#SHOW IP
*Dec 25 15:40:09.856: %SYS-5-CONFIG_I: Configured from console by console
BUH03#show ip route vrf REG

Routing Table: REG
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override

Gateway of last resort is not set

172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.16.51.0/24 is directly connected, Vlan50
L 172.16.51.1/32 is directly connected, Vlan50

=================================================================================================


IOU2(config)#router rip
IOU2(config-router)# address-family ipv4 vrf REG
IOU2(config-router-af)#redistribute ospf 2

IOU2#show ip route vrf REG

Routing Table: REG
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override

Gateway of last resort is not set

172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
R 172.16.32.0/24 [120/1] via 172.16.52.2, 00:00:23, Vlan50
C 172.16.52.0/24 is directly connected, Vlan50
L 172.16.52.1/32 is directly connected, Vlan50

Torbjørn
Spotlight
Spotlight

Are you attempting to redistribute routes like this: RIP <-> BGP <-> OSPF?

It seems that your network command for OSPF is wrong, or you have forgotten to add the interface with the 172.16.51.0/24 subnet to the VRF. Can you verify that the OSPF is working as intended, and post the output of the following commands:

  • show ip ospf vrf REG database all
  • show ip ospf vrf REG neighbor

EDIT: I misinterpreted the outputs from the initial post. The OSPF network command seems to be correct.

Happy to help! Please mark as helpful/solution if applicable.
Get in touch: https://torbjorn.dev

between Reg 01 and Buh02 I user rip and between BUH03 and Reg 02 I use ospf, but I don't if I configured correct vrf between Buh02 and Buh03

Torbjørn
Spotlight
Spotlight

The IOU2 device from your initial post, is that BUH2?

Can you ping the address specified in your BGP neighbor commands from each device in the VRF?

Can you see the expected contents in the EIGRP database?

show ip ospf vrf REG database all

Could you post the output of the following command?

show run | s bgp|ospf|vrf  

 

Happy to help! Please mark as helpful/solution if applicable.
Get in touch: https://torbjorn.dev

IO2 is BUH02, I forgot to change the hostname
The router doesn't have this option for show ip ospf vrf REG database all:

BUH03#show ip ospf ?
<1-65535> Process ID number
border-routers Border and Boundary Router Information
database Database summary
events OSPF event information
flood-list Link state flood list
interface Interface information
max-metric Max-metric origination information
mpls MPLS related information
multi-area Multi-area interfaces information
neighbor Neighbor list
nsf Non-stop forwarding state information
request-list Link state request list
retransmission-list Link state retransmission list
rib Routing Information Base (RIB)
sham-links Sham link information
statistics Various OSPF Statistics
summary-address Summary-address redistribution Information
timers OSPF timers information
topology-info Topology Info
traffic Traffic related statistics
virtual-links Virtual link information
| Output modifiers
<cr>

==============================================================================

BUH03#show run | s bgp|ospf|vrf|rip
ip vrf MED
rd 3:3
route-target export 3:3
route-target import 3:3
ip vrf MNG_CPE
rd 2:2
route-target export 2:2
route-target import 2:2
ip vrf MNG_P
rd 1:1
route-target export 1:1
route-target import 1:1
ip vrf REG
rd 4:4
route-target export 4:4
route-target import 4:4
ip vrf SYN
rd 5:5
route-target export 5:5
route-target import 5:5
ip vrf forwarding MNG_CPE
ip vrf forwarding REG
router ospf 2 vrf REGI
redistribute bgp 100 subnets
network 172.16.51.0 0.0.0.255 area 0
router ospf 1
network 10.0.0.28 0.0.0.3 area 0
router bgp 100
bgp log-neighbor-changes
!
address-family ipv4 vrf REG
redistribute ospf 2
exit-address-family
==================================================

IOU2#show run | s bgp|ospf|vrf|rip
ip vrf MED
rd 3:3
route-target export 3:3
route-target import 3:3
ip vrf MNG_CPE
rd 2:2
route-target export 2:2
route-target import 2:2
ip vrf MNG_P
rd 1:1
route-target export 1:1
route-target import 1:1
ip vrf REG
rd 4:4
route-target export 4:4
route-target import 4:4
ip vrf SYN
rd 5:5
route-target export 5:5
route-target import 5:5
ip vrf forwarding MNG_CPE
ip vrf forwarding REG
router ospf 1
network 10.0.0.20 0.0.0.3 area 0
router rip
!
address-family ipv4 vrf REG
redistribute bgp 100
network 172.16.0.0
no auto-summary
version 2
exit-address-family
router bgp 100
bgp log-neighbor-changes
!
address-family ipv4 vrf REG
redistribute rip
exit-address-family
IOU2#

M02@rt37
VIP
VIP

Hello @i_hanu 

Does BUH03 received BGP routes ?

MPLS L3 vpnv4 activated on your topology ?

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

it doesn't receive routes

MPLS L3 vpnv4 it's activate.

Below I attached the configuration for VRF and routing

 

@i_hanu 

Under BGP process where are neighbor's configuration ?

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

I changed the configuration, I redistribute directly from ospf in rip.

I put the configuration below

as I mention before 
we use bgp to route leaking between two vrf, here you use bgp for leaking the route between two IGP in same VRF 
I check both using route-target both 1:1 and direct redistribute
and RT both 1:1 not work since the bgp not re-advertise the route it learn from one VRF to same VRF so this suggestion is failed 
so I use the usual redistribute between two IGP in same VRF  

Screenshot (628).pngScreenshot (629).png


note:- for RT 1:1 I will check for cisco doc. talk about this case and if I found it I will share it here 
MHM

Review Cisco Networking for a $25 gift card