DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 1st February 2010
osg's Avatar
osg osg is offline
Real Name: Vincent
New User
 
Join Date: Feb 2010
Posts: 6
Thanked 0 Times in 0 Posts
Default Bgp ospf conditional redistribute default

Hi,
I'm trying to distribute a default route to my intern network thought ospf, but still searching the way to do this with the short path...

Code:
 BGP Provider A                              BGP Provider B
           |                                          |
           |                                          |
          BGP A                                     BGP B
           |                                          |
     -----------------------------------------------------...
           |                                          |           |
           |                                          |           |
          GW 1                                      GW 3     GW 4
All BGP server have the full table of internet routing.
The BGP A and BGP B have a iBGP configured, and announce the x.y.0.0/20 network to providers.
The GWs and BGP A and BGP B have ospf daemon installed.
Gws announce the x.y.z.0/24 networks to all servers in the ospf.

In the beginning no default route was set for GWs.
I use the !route add -reject default 127.0.0.1 command for the BGPA and BGPB. So now a have two default route for the GWs.

Now if i cut down the bgp session between the BGPs A, the default gateway of the GW still is the BGPA. I means the transit is:
GW1 -> BGP A -> BGP B -> BGP provider B

I would like what the ospf announce the default route only if the bgp session is active.

I miss something ?
Anyone know how to do what ?


Best Regards.

Last edited by J65nko; 1st February 2010 at 07:34 PM. Reason: Attempt to fix the diagram with [noparse][code][/noparse] tags
Reply With Quote
  #2   (View Single Post)  
Old 1st February 2010
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,116
Thanked 182 Times in 149 Posts
Default

I wonder whether there are many members who run networks like yours. If you need a fast solution, posting this on the OpenBSD misc mailing list will be advisable.

BTW I tried to fix you diagram
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #3   (View Single Post)  
Old 2nd February 2010
osg's Avatar
osg osg is offline
Real Name: Vincent
New User
 
Join Date: Feb 2010
Posts: 6
Thanked 0 Times in 0 Posts
Default Thank you.

Thanks for the diagram

By the way where is the forum you tell me ?
I found this one, and i post in a routing list too.

Sorry if is not the right place.

Vincent.
Reply With Quote
  #4   (View Single Post)  
Old 2nd February 2010
osg's Avatar
osg osg is offline
Real Name: Vincent
New User
 
Join Date: Feb 2010
Posts: 6
Thanked 0 Times in 0 Posts
Default

Allright i found the mailing list, thanks a lot.
If anyone know, i'm still searching.
If a found a solution, i will post here.

Quote:
Originally Posted by osg View Post
Thanks for the diagram

By the way where is the forum you tell me ?
I found this one, and i post in a routing list too.

Sorry if is not the right place.

Vincent.
Reply With Quote
  #5   (View Single Post)  
Old 4th February 2010
osg's Avatar
osg osg is offline
Real Name: Vincent
New User
 
Join Date: Feb 2010
Posts: 6
Thanked 0 Times in 0 Posts
Default default-information originate always

In cisco or in quagga seems to be the command:
default-information originate always
But i'm not sure...

For now, no-one answer to me. (nor misc).
The question isn't sufficient clear ?

Anyone know where can i ask what ?

Best Regards.
Reply With Quote
  #6   (View Single Post)  
Old 16th February 2010
ai-danno's Avatar
ai-danno ai-danno is offline
Spam Deminer
 
Join Date: May 2008
Location: Boca Raton, Florida
Posts: 284
Thanked 35 Times in 31 Posts
Default

OK major correction to what I wrote (now just a part of some scraping archive)...

do you have

redistribute default

in your ospfd.conf file of BGPA and BGPB?
__________________
Network Firefighter

Last edited by ai-danno; 16th February 2010 at 01:16 AM.
Reply With Quote
  #7   (View Single Post)  
Old 16th February 2010
ai-danno's Avatar
ai-danno ai-danno is offline
Spam Deminer
 
Join Date: May 2008
Location: Boca Raton, Florida
Posts: 284
Thanked 35 Times in 31 Posts
Default

And to follow up what you fully want (to have BGPA or BGPB redistribute a default route into OSPF if and only if they have their EBGP peer sessions established with their respective providers)...

Accept the default route (not just full routes) from your providers if you haven't done so already. I personally always ask for both the default and full routes, so I can do detailed route selection and redistribute the default route as it originates from the providers.
__________________
Network Firefighter
Reply With Quote
  #8   (View Single Post)  
Old 3rd March 2010
osg's Avatar
osg osg is offline
Real Name: Vincent
New User
 
Join Date: Feb 2010
Posts: 6
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ai-danno View Post
OK major correction to what I wrote (now just a part of some scraping archive)...

do you have

redistribute default

in your ospfd.conf file of BGPA and BGPB?
Yes i have.
Reply With Quote
  #9   (View Single Post)  
Old 3rd March 2010
osg's Avatar
osg osg is offline
Real Name: Vincent
New User
 
Join Date: Feb 2010
Posts: 6
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ai-danno View Post
And to follow up what you fully want (to have BGPA or BGPB redistribute a default route into OSPF if and only if they have their EBGP peer sessions established with their respective providers)...

Accept the default route (not just full routes) from your providers if you haven't done so already. I personally always ask for both the default and full routes, so I can do detailed route selection and redistribute the default route as it originates from the providers.
I will try this !
In this case the GWs don't have the fullmesh.



Anyway thought i'll put a static route to the GWs to a carp interface configured between the BGPs, and openBGP with the demote option...
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Default terminal color disappearedng FreeBSD General 5 21st February 2012 01:28 AM
how APM & ACPI duke it out to be the default ocicat OpenBSD General 0 23rd June 2009 04:05 AM
Default message coloration cyril OpenBSD Installation and Upgrading 5 6th June 2009 02:13 PM
change default font of the X rex FreeBSD General 2 26th October 2008 05:54 PM
apache 2.2.8 , is it on chroot by default? superslot OpenBSD Security 9 30th June 2008 11:56 AM


All times are GMT. The time now is 08:34 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick