cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1495
Views
0
Helpful
7
Replies

How to find out BGP default route?

gwhuang5398
Level 2
Level 2

I need to redistribute BGP default routes (with ISP and ExtraNet) into OSPF. How can I find out if there's default route existing in BGP routing table?

7 Replies 7

rwiesmann
Level 4
Level 4

sh ip bgp 0.0.0.0 tells you if you got a default route in the bgp table.

hope that helps

Roger

Thanks Roger. My Internet router is peering with the ISP router via EBGP. There is supposed to be a default router from my organization to the Internet. If I don't have a existing default route in my Internet router, should I use "ip route 0.0.0.0 0.0.0.0" to create one to the ISP router or can just assume ISP router already has a default route for me and I can learn it from EBGP?

What about the firewall in between?

Hi,

i do not know how your isp is implementing this...if he is providing a default route to your organisation. but if you do not get a default route via the ebgp i would, as you said, implement a static default route. I would prefer to implement it my self as you are not depending on information you got from the isp.

The question about the firewall is not easy to answer as i do not exactly know the setup you got. but basically it depends on the security policies you got. also a question is what adresses do you use (private or public) and that leads you to if you have to make a network adress translation.

so some more points to consider depending on achieve

Hope that gives you an idea.

Regards

Roger

thisisshanky
Level 11
Level 11

sh ip bgp 0.0.0.0 is the best way to do this.

Otherwise sh ip route 0.0.0.0 you can see the route's admin distance (20 for ebgp and 200 for ibgp)and figure out if the route exists.

Sankar Nair
UC Solutions Architect
Pacific Northwest | CDW
CCIE Collaboration #17135 Emeritus

Thanks all. If no default route existing, should I generate one pointing to my ISP or ask ISP to generate one on their router, and let my router learn it via BGP?

Dear gwhuang,

First the peering with the ISP's depending on what you asking for i mean you may aggred with your ISP to advertise the full routing tabel for you (if your router can save all this routes) or if you aggred that thy will generate only a default route

ANYWAY

If you are running a BGP or any routing protocol with your ISP and you want to know if there is default route coming from your provider or not you could use show ip route x.x.x.x and the output will shown the next-hop address which you learned the route from and the AD wich show the routing protocol that learned the route for BGP there is alot of Useful commands

show ip bgp neighbors 1.1.1.1 received-routes | inc 0.0.0.0

show ip bg x.x.x.x and if it's found check if it's selected or not

Anyway you can add your default route by your self by use ip route 0.0.0.0 0.0.0.0 Next-hop or INT # or ask your ISP to generate default route through the running protocol

Best Regards,

Mounir Mohamed

Thanks all. This is very helpful for me.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: