cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1153
Views
2
Helpful
12
Replies

Configuring RIP (Empty RIP Database)

Hello everyone, while configuring RIP in VRF, I encountered a problem where RIP is configured, but it's not showing in the database (completely empty).

Here's my configuration:

router rip

version 2

network 192.168.1.0

!

address-family ipv4 vrf red

redistribute connected

network 192.168.1.0

neighbor 192.168.1.12

no auto-summary

exit-address-family

!

address-family ipv4 vrf blue

redistribute connected

network 192.168.1.0

neighbor 192.168.1.13

no auto-summary

exit-address-family

!

Any help would be much appreciated.

12 Replies 12

I need to see all config

Current configuration : 2892 bytes
!
! Last configuration change at 08:42:24 UTC Fri Jun 30 2023
!
version 15.0
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname myrouter
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$AMYY$sEXFgKu.yngef7hiP8Dgu1
enable password cisco123
!
no aaa new-model
!
no ipv6 cef
ip source-route
ip cef
!
!
ip vrf blue
rd 65000:2
!
ip vrf red
rd 65000:1
!
!
!
multilink bundle-name authenticated
!
!
!
license udi pid CISCO1921/K9 sn FCZ1434C389
!
!
!
!
!
!
!
!
interface Loopback1
ip vrf forwarding red
ip address 10.0.0.1 255.255.255.255
!
interface Loopback2
ip vrf forwarding blue
ip address 10.0.0.2 255.255.255.255
!
interface Loopback10
ip address 128.0.0.1 255.255.0.0
!
interface GigabitEthernet0/0
bandwidth 100
ip vrf forwarding blue
ip address 192.168.1.12 255.255.255.0
ip ospf network point-to-point
duplex auto
speed auto
no mop enabled
!
interface GigabitEthernet0/1
description unused available port
ip vrf forwarding red
ip address 192.168.1.13 255.255.255.0
ip ospf network point-to-point
duplex auto
speed auto
no mop enabled
!
interface ATM0/0/0
no ip address
shutdown
no atm ilmi-keepalive
!
interface Serial0/1/0
no ip address
shutdown
clock rate 2000000
!
router ospf 2 vrf blue
router-id 10.0.0.2
log-adjacency-changes
redistribute static subnets
network 192.168.1.0 0.0.0.255 area 0
!
router ospf 1 vrf red
router-id 10.0.0.1
log-adjacency-changes
redistribute static subnets
network 192.168.1.0 0.0.0.255 area 0
!
router rip
version 2
network 192.168.1.0
!
address-family ipv4 vrf red
redistribute connected
network 192.168.1.0
neighbor 192.168.1.12
no auto-summary
exit-address-family
!
address-family ipv4 vrf blue
redistribute connected
network 192.168.1.0
neighbor 192.168.1.13
no auto-summary
exit-address-family
!
router bgp 65000
no synchronization
no bgp log-neighbor-changes
no auto-summary
!
address-family ipv4 vrf blue
no synchronization
bgp router-id 192.168.1.12
network 10.2.0.0 mask 255.255.255.0
redistribute connected
neighbor 192.168.1.13 remote-as 65000
neighbor 192.168.1.13 activate
exit-address-family
!
address-family ipv4 vrf red
no synchronization
bgp router-id 192.168.1.13
network 10.1.0.0 mask 255.255.255.0
redistribute connected
neighbor 192.168.1.12 remote-as 65000
neighbor 192.168.1.12 activate
exit-address-family
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
ip route vrf blue 10.2.0.0 255.255.255.0 Null0
!
!
!
snmp-server community public RO
!
control-plane
!
!
line con 0
exec-timeout 0 0
password cisco
line aux 0
password cisco
login
modem InOut
transport input all
speed 115200
flowcontrol hardware
line vty 0 4
password cisco
login
transport input all
line vty 5 15
password cisco
login
!
scheduler allocate 20000 1000
end

 

Hello @Cisco Enthusiast,

The "neighbor" statements under the address families are incorrect. The neighbors specified should be the IP addresses of the routers to which the RIP updates should be sent. It seems that you have used the interface IP addresses instead of the neighboring router IP addresses.

You want hairpinning config ?

it seems to be that! Then use the "redistribute rip" command within each VRF's address family configuration. It will redistribute RIP routes into each VRF, allowing the hairpinning of RIP updates between the VRFs. Make sure that you have configured the appropriate VRF routing instances and interfaces for proper communication between the VRFs.

router rip
 version 2
 network 192.168.1.0

address-family ipv4 vrf red
 redistribute connected
 network 192.168.1.0 0.0.0.255
 redistribute rip
 no auto-summary
 exit-address-family

address-family ipv4 vrf blue
 redistribute connected
 network 192.168.1.0 0.0.0.255
 redistribute rip
 no auto-summary
 exit-address-family
Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

myrouter(config-router-af)#redistribute rip
redistribution of "rip" via "rip" not allowed

 

your config is correct you redistribute connected (loopback) which config with vrf aware 
so 
try the following 
show ip rip vrf RED/BLUE database 

myrouter#show ip rip vrf blue database
                                 ^
% Invalid input detected at '^' marker.

Hi

 If you run show ip route vrf XX rip ?

When i type : show ip route vrf xx rip 

the route is there but when i type :show ip rip database 

it's empty ,it's like there is no configuration .

 

And   you have more then one Router and they have similar configuration? Can I see the second router config ?

Actually it's one router and two vrfs as shown above in full configuration.

Right.

 How are you using the command  show ip rip vrf <XX> ?

it's not :show ip rip vrf xx

but:

show ip router vrf blue rip

show ip route vrf red rip

Review Cisco Networking for a $25 gift card