Re: bgp to ospf redistribution question

From: Chris McGuire (cmcguire@firstdigital.com)
Date: Wed Apr 23 2008 - 12:46:27 ART


It looks like it does check before putting into the route table.

Route without a next hop that is not reachable:

ip route 222.222.222.0 255.255.255.0 Null0
ip route 222.222.223.0 255.255.255.0 Null0
ip route 222.222.224.0 255.255.255.0 1.1.1.1

Rack1R4#show ip route static
S 222.222.222.0/24 is directly connected, Null0
S 222.222.223.0/24 is directly connected, Null0

Only the first 2 show up.

Now change the 3rd route to a reachable next hop:

Rack1R4#show run | i ip route
ip route 222.222.222.0 255.255.255.0 Null0
ip route 222.222.223.0 255.255.255.0 Null0
ip route 222.222.224.0 255.255.255.0 164.1.45.5

Rack1R4#show ip route static
S 222.222.222.0/24 is directly connected, Null0
S 222.222.223.0/24 is directly connected, Null0
S 222.222.224.0/24 [1/0] via 164.1.45.5

Now it is there.

router bgp 100
network 222.222.222.0
network 222.222.223.0
network 222.222.224.0

With route that is not reachable:

ip route 222.222.222.0 255.255.255.0 Null0
ip route 222.222.223.0 255.255.255.0 Null0
ip route 222.222.224.0 255.255.255.0 1.1.1.1

What routes show up in the bgp table:

Rack1R4#show ip bgp | b 222.222
*> 222.222.222.0 0.0.0.0 0 32768 i
*> 222.222.223.0 0.0.0.0 0 32768 i

With routes that are reachable:

ip route 222.222.222.0 255.255.255.0 Null0
ip route 222.222.223.0 255.255.255.0 Null0
ip route 222.222.224.0 255.255.255.0 164.1.45.5

What routes now show up in bgp table:

Rack1R4#show ip bgp | b 222.222
*> 222.222.222.0 0.0.0.0 0 32768 i
*> 222.222.223.0 0.0.0.0 0 32768 i
*> 222.222.224.0 164.1.45.5 0 32768 I

Thanks,
Chris

On 4/23/08 9:09 AM, "Huan Pham" <huan.pham@valuenet.com.au> wrote:

> Hi Chris,
>
> BTW, I do not think that router checks if the next hop (for static route)
> reachable or not before the static route is installed in the routing table,
> unless you configure object tracking! I believe you meant the next hop is
> not on directly connected subnet.
>
> Cheers,
>
> Huan
>
> -----Original Message-----
> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
> Chris McGuire
> Sent: Thursday, 24 April 2008 12:22 AM
> To: Andy Cole; Noor.Yousuf@shell.com; ccielab@groupstudy.com
> Subject: Re: bgp to ospf redistribution question
>
> Also, does the other route show up in the route table doing the
> redistribution?
>
> Show ip route static?
>
> If the next hop address is not reachable, it will not show up in the route
> table as a static and will therefore not be a candidate for the network
> statement under BGP.
>
> Thanks
> Chris
>
>
> On 4/23/08 8:11 AM, "Andy Cole" <Andy.Cole@foremostfarms.com> wrote:
>
>> gp redistribute-
>
> Chris S. McGuire
> Network Engineer
> Phone: 801-456-1028
> Fax: 801-456-1010
> Email: cmcguire@firstdigital.com
>
>
> Pass the CCIE in six weeks, Guaranteed!
> http://www.certscience.com/CCIE
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
>
> Pass the CCIE in six weeks, Guaranteed!
> http://www.certscience.com/CCIE
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
>
>
>

Chris S. McGuire
Network Engineer
Phone: 801-456-1028
Fax: 801-456-1010
Email: cmcguire@firstdigital.com

Pass the CCIE in six weeks, Guaranteed!
http://www.certscience.com/CCIE



This archive was generated by hypermail 2.1.4 : Thu May 01 2008 - 08:25:51 ART