Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BGP Default-Static redistribution

Status
Not open for further replies.

rcasta

Technical User
Aug 8, 2002
211
CA
Hello:

I have this static default route I want my iBGP routers to know about, but I'm not sure why the router is not advertising it to its ibgp peers:

sh ip bgp 0.0.0.0

R5CLI#sh ip bgp 0.0.0.0
BGP routing table entry for 0.0.0.0/0, version 12
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Flag: 0x208
Not advertised to any peer
Local
171.17.1.1 from 0.0.0.0 (10.0.1.254)
Origin incomplete, metric 0, localpref 100, weight 32768, valid, sourced, best


My current config is:

router bgp 65535
network 10.128.0.0 mask 255.128.0.0
redistribute static route-map DEFAULTONLY
neighbor 171.16.16.2 remote-as 65535
neighbor 171.16.16.2 next-hop-self
default-information originate
default-metric 1


ip route 0.0.0.0 0.0.0.0 171.17.1.1 tag 111


kind regards,
 
A couple thoughts/questions:
1. If you do a 'show ip bgp ne 171.16.16.2 advertise' does it show you advertising the default route?
2. Why doing a redistribute static route-map DEFAULTONLY? Why not just rely on the default-information originate command?
3. If it's not advertising the default route, try this 'neighbor 171.16.16.2 default-originate'
4. What does the route-map DEFAULTONLY look like? Todd Hethmon
thethmon@hethmon.com
 
1. sh ip bgp neighbors 171.16.16.2 advertised-routes
BGP table version is 11, local router ID is 10.0.1.254
*> 131.178.0.0 0.0.0.0 0 32768 ?
*> 192.18.1.0 171.17.1.2 0 32768 ?
*> 192.18.2.0 171.17.1.2 0 32768 ?

2. did try to rely on the default-originate command, though seems like I cannot make it work properly (i'm using ip route 0.0.0.0 0.0.0.0 171.17.1.1) <<<---I put off tag.

3. I will and let you know

4. route-map DEFAULTONLY, permit, sequence 10
Match clauses:
ip address prefix-lists: DEFAULT
Set clauses:
Policy routing matches: 0 packets, 0 bytes
R5CLI#sh ip pre
R5CLI#sh ip prefix-list DEFAULT
ip prefix-list DEFAULT: 1 entries
seq 5 permit 0.0.0.0/0

kind regards,
 
Here is the story:

I put off route-maps, static redistributions, router bgp default-information originate and set it rather on a per neighbor basis....it worked that way =)

I do not understand why the router does not advertise default route when default-information originate command is issued but the neighbor default-information did properly.

cheers and thank you Todd
 
rcasta,
Don't know either but I found the same thing last year when my company first starting using BGP. Suspect it's just some weirdness of the IOS code level. Glad I was able to help. Todd Hethmon
thethmon@hethmon.com
 
It's good to know that I wasn't the only one =) !

thanks once again Todd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top