cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1232
Views
5
Helpful
3
Replies

OSPF and BGP

Hi everyone,

I hopw you are all well.

I have this network and i am using OSPF and GBP but i feel there is a missing configration on the router CiscoC. Instade of R22 there is a PC, so no need for summurization and the swich (net 12) is off

R11 knows CiscoA and CiscoB only

CiscoA knows R11 and CiscoB only

CiscoB Knows all

CiscoC knows all

R21 knows CiscoC and CiscoB only

I would appriciate your help. 

 

abduljwadhigaig_1-1674148749481.png

 

Cisco C
router ospf 40
router-id 10.0.0.42
redistribute bgp 40
network 10.41.42.2 0.0.0.0 area 0
!
router bgp 40
bgp log-neighbor-changes
network 10.0.0.42 mask 255.255.255.255
redistribute ospf 40
neighbor 172.30.20.21 remote-as 20
!
Cisco B

!
router ospf 40
router-id 10.0.0.41
redistribute bgp 40
network 10.0.0.41 0.0.0.0 area 0
network 10.41.42.1 0.0.0.0 area 0
!
router bgp 40
bgp log-neighbor-changes
network 10.0.0.41 mask 255.255.255.255
redistribute ospf 40
neighbor 10.0.34.1 remote-as 30
!

 

 

1 Accepted Solution

Accepted Solutions

Harold Ritter
Spotlight
Spotlight

Hi @abduljwad.higaig ,

By default, only intra area and inter area routes are redistributed from OSPF to BGP and as both CiscoB and CiscoC redistribute BGP routes in OSPF, these routes will be learned as external routes on the other side. You need to configure the following on both CiscoB and CiscoC:

router bgp 40

redistribute ospf 40 match internal external 1 external 2

Regards,

 

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

View solution in original post

3 Replies 3

Harold Ritter
Spotlight
Spotlight

Hi @abduljwad.higaig ,

By default, only intra area and inter area routes are redistributed from OSPF to BGP and as both CiscoB and CiscoC redistribute BGP routes in OSPF, these routes will be learned as external routes on the other side. You need to configure the following on both CiscoB and CiscoC:

router bgp 40

redistribute ospf 40 match internal external 1 external 2

Regards,

 

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

Hi @Harold Ritter It worked perfectly. 

I do appreciate your assistance.

Regards,

 

can you share the all config I will check