cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1631
Views
5
Helpful
6
Replies

Redistribution of OSPF into BGP

davidhuynh5
Level 1
Level 1

Please review the attachments. I'm tryning to ping the loopack address from router hst_64999 to the loopback address on router remote (10.25.25.1).

I've done redistribution of ospf into bgp but still can't ping 10.25.25.1. There is full reachability inside ospf, the problem is going from bgp to ospf. What am i doing wrong? Any help youe be greatly appricaiated. Thanks.

2 Accepted Solutions

Accepted Solutions

Hi,

  I just saw that you're using  tunnel interfaces runing on OSPF. I didn't see any BGP routes on the remote router.

   Please add the following commands on the gre_hst_64513 router.

!

router ospf 2020

redistribute bgp 64513 subnet

!

  Please post the output of  "sh ip route" and "sh ip bgp" commands on the gre_hst_64513 router.

HTH,

Toshi

View solution in original post

Hi Guys,

  Good question 5-Point. Actually they're independent. If you enabled a "bgp synchronization" on the router,the router-id of BGP and OSPF must be the same (it's a rule). In your case you will be fine anyway.

HTH,

Toshi

View solution in original post

6 Replies 6

Hi,

   Please post the out put of a "show ip route" command on the remote router.

HTH,

Toshi

remote#sh ip route
Codes: 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
Gateway of last resort is not set
     10.0.0.0/8 is variably subnetted, 6 subnets, 2 masks
C       10.25.26.1/32 is directly connected, Loopback1
C       10.10.10.0/30 is directly connected, Tunnel3333
C       10.25.25.1/32 is directly connected, Loopback0
C       10.10.10.4/30 is directly connected, Tunnel3334
O       10.30.30.30/32 [110/11112] via 10.10.10.2, 1d09h, Tunnel3333
O       10.29.29.29/32 [110/11112] via 10.10.10.6, 1d09h, Tunnel3334
     192.168.0.0/30 is subnetted, 2 subnets
C       192.168.0.0 is directly connected, FastEthernet0/0
C       192.168.0.4 is directly connected, FastEthernet0/1

Hi,

  I just saw that you're using  tunnel interfaces runing on OSPF. I didn't see any BGP routes on the remote router.

   Please add the following commands on the gre_hst_64513 router.

!

router ospf 2020

redistribute bgp 64513 subnet

!

  Please post the output of  "sh ip route" and "sh ip bgp" commands on the gre_hst_64513 router.

HTH,

Toshi

Hi Toshi,

Here is the output per your request. Let me add the statement you wanted and see if it works. Thanks.

gre_hst_64513#sh ip route

Codes: 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

Gateway of last resort is not set

     10.0.0.0/8 is variably subnetted, 8 subnets, 2 masks

O       10.25.26.1/32 [110/11112] via 10.10.10.5, 1d15h, Tunnel3334

C       10.11.11.0/30 is directly connected, FastEthernet0/1

O       10.10.10.0/30 [110/22222] via 10.10.10.5, 1d15h, Tunnel3334

O       10.25.25.1/32 [110/11112] via 10.10.10.5, 1d15h, Tunnel3334

C       10.10.10.4/30 is directly connected, Tunnel3334

O       10.30.30.30/32 [110/22223] via 10.10.10.5, 1d15h, Tunnel3334

C       10.29.29.29/32 is directly connected, Loopback0

B       10.44.44.44/32 [20/0] via 10.11.11.2, 20:40:23

     192.168.0.0/30 is subnetted, 1 subnets

C       192.168.0.4 is directly connected, FastEthernet0/0

Thanks Toshi. You are the man!

One last question, if you have a router that is running both ospf and bgp, and you only have one loopback address (10.55.55.55). Can you use it for both ospf and bgp? What is the best practice. Sorry, I'm just recently learning bgp.

router ospf 2020

router-id 10.55.55.55

!

router bgp 64599

router-id 10.55.55.55

Hi Guys,

  Good question 5-Point. Actually they're independent. If you enabled a "bgp synchronization" on the router,the router-id of BGP and OSPF must be the same (it's a rule). In your case you will be fine anyway.

HTH,

Toshi

Review Cisco Networking for a $25 gift card