cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
915
Views
10
Helpful
2
Replies

Can't redistribute BGP router's loopback into OSPF

Mozambique
Level 1
Level 1

Hello, I'm doing mutual redistribution and I can't redistribute the BGP router's (R1) loopback address into the OSPF topology. 

R1 is the BGP router    

R2 is the ASBR router

R3 is the OSPF router

 

R1[192.168.0.1]-----[192.168.0.2]R2[192.168.7.2]-----[192.168.7.1]R3

 

***

R1

***

 

1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
2.0.0.0/32 is subnetted, 1 subnets
B 2.2.2.2 [200/0] via 192.168.0.2, 00:02:50
3.0.0.0/32 is subnetted, 1 subnets
B 3.3.3.3 [200/10000] via 192.168.7.1, 00:01:55
192.168.0.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.0.0/24 is directly connected, Ethernet1/0
L 192.168.0.1/32 is directly connected, Ethernet1/0
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
B 192.168.7.0/24 [200/0] via 192.168.0.2, 00:02:00

 

R1#sh run | s router
router bgp 100
bgp log-neighbor-changes
network 1.1.1.1 mask 255.255.255.255
network 192.168.0.0 mask 255.255.255.0
neighbor 192.168.0.2 remote-as 100

 

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
192.168.0.2 4 100 19 17 9 0 0 00:10:57 6

 

interface Loopback0
ip address 1.1.1.1 255.255.255.255
!

interface Ethernet1/0
ip address 192.168.0.1 255.255.255.0
duplex full
!

 

 

 

***

R2

***

 

1.0.0.0/32 is subnetted, 1 subnets
B 1.1.1.1 [200/0] via 192.168.0.1, 00:14:07
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Loopback0
O 3.3.3.3 [110/11] via 192.168.7.1, 00:15:03, Ethernet1/1
192.168.0.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.0.0/24 is directly connected, Ethernet1/0
L 192.168.0.2/32 is directly connected, Ethernet1/0
192.168.7.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.7.0/24 is directly connected, Ethernet1/1
L 192.168.7.2/32 is directly connected, Ethernet1/1

 

router ospf 1
redistribute bgp 100 metric 1 metric-type 1 subnets
network 2.2.2.2 0.0.0.0 area 0
network 192.168.7.0 0.0.0.255 area 0
router bgp 100
bgp log-neighbor-changes
network 192.168.0.0 mask 255.255.255.0
redistribute ospf 1 metric 10000
neighbor 192.168.0.1 remote-as 100

 

R2#sh run | s interface
interface Loopback0
ip address 2.2.2.2 255.255.255.255
interface Ethernet1/0
ip address 192.168.0.2 255.255.255.0
duplex full
interface Ethernet1/1
ip address 192.168.7.2 255.255.255.0
duplex full

 

 

 

 

***

R3

***


2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/11] via 192.168.7.2, 00:13:42, Ethernet1/0
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
O E1 192.168.0.0/24 [110/11] via 192.168.7.2, 00:13:43, Ethernet1/0
192.168.7.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.7.0/24 is directly connected, Ethernet1/0
L 192.168.7.1/32 is directly connected, Ethernet1/0

 

R3#sh run | s interface
interface Loopback0
ip address 7.7.7.7 255.255.255.255
interface Ethernet1/0
ip address 192.168.7.1 255.255.255.0
duplex full

 

router ospf 1
network 7.7.7.7 0.0.0.0 area 0
network 192.168.7.0 0.0.0.255 area 0

 

 

 

Can you please help me to get 1.1.1.1 in R3's routing table?

1 Accepted Solution

Accepted Solutions

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello @Mozambique ,

you have an iBGP session between R1 and R2.

 

in order to redistribute iBGP routes into an IGP you need:

 

R2:

conf t

router bgp 100

redistribute-internal

 

Hope to help

Giuseppe

 

View solution in original post

2 Replies 2

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello @Mozambique ,

you have an iBGP session between R1 and R2.

 

in order to redistribute iBGP routes into an IGP you need:

 

R2:

conf t

router bgp 100

redistribute-internal

 

Hope to help

Giuseppe

 

Thank you very much, it solved the problem!

Review Cisco Networking for a $25 gift card