cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
557
Views
0
Helpful
1
Replies

Ospf redistribution into BGP

CSCO12028419
Level 1
Level 1

I see BGP distributed route marked as 0 E2 route on Router1, I am expecting same route(o E2) should be available for route learnt from ospf on Router2. Kindly comment,

Attaching below route table of all device plus topology.

 

 

Route table of Router1:


Gateway of last resort is not set

10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.1.1.0/24 is directly connected, FastEthernet0/0
L 10.1.1.1/32 is directly connected, FastEthernet0/0
172.1.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.1.1.0/24 is directly connected, FastEthernet1/0
L 172.1.1.1/32 is directly connected, FastEthernet1/0
172.2.0.0/24 is subnetted, 1 subnets
O E2 172.2.2.0 [110/1] via 10.1.1.3, 00:23:14, FastEthernet0/0
O E2 192.168.1.0/24 [110/1] via 10.1.1.3, 03:10:43, FastEthernet0/0

 

 

 

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

Route table of Router2:


Gateway of last resort is not set

10.0.0.0/24 is subnetted, 1 subnets
B 10.1.1.0 [200/0] via 192.168.1.3, 00:20:35
172.1.0.0/24 is subnetted, 1 subnets
B 172.1.1.0 [200/2] via 10.1.1.1, 00:20:30
172.2.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.2.2.0/24 is directly connected, FastEthernet0/0
L 172.2.2.1/32 is directly connected, FastEthernet0/0
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.0/24 is directly connected, FastEthernet1/0
L 192.168.1.2/32 is directly connected, FastEthernet1/0

 

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

Route table of Router3:


10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.1.1.0/24 is directly connected, FastEthernet0/0
L 10.1.1.3/32 is directly connected, FastEthernet0/0
172.1.0.0/24 is subnetted, 1 subnets
O 172.1.1.0 [110/2] via 10.1.1.1, 03:00:07, FastEthernet0/0
172.2.0.0/24 is subnetted, 1 subnets
B 172.2.2.0 [200/0] via 192.168.1.2, 00:10:18
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.0/24 is directly connected, FastEthernet1/0
L 192.168.1.3/32 is directly connected, FastEthernet1/0

 

Configuration of Router 3:

 

interface FastEthernet0/0
ip address 10.1.1.3 255.255.255.0
duplex half
!
interface FastEthernet1/0
ip address 192.168.1.3 255.255.255.0
duplex half
!
router ospf 3
redistribute bgp 200 subnets
network 10.1.1.0 0.0.0.255 area 0
!
router bgp 200
bgp log-neighbor-changes
bgp redistribute-internal
network 192.168.1.0
redistribute ospf 3 match internal external 1 external 2
neighbor 192.168.1.2 remote-as 200

 

 

 

1 Reply 1

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello,

on router2 one prefix is directly connected for this reason you don't see the BGP route installed as connected AD 0 is better then BGP AD (20 for eBGP 200 for iBGP)

>> C 172.2.2.0/24 is directly connected, FastEthernet0/0

the same happens for other prefix

 

>> C 192.168.1.0/24 is directly connected, FastEthernet1/0
L 192.168.1.2/32 is directly connected, FastEthernet1/0

 

What you see is normal and expected

 

Hope to help

Giuseppe