Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

BGP: How can I tell a router not to use a learned default route

We have an MPLS network and we are using BGP and EIGRP.

The default route is redistributed using BGP through the default-information originate command.

On one of the routers I would like to use a different default route. Does anyone know how I can filter out the default route it is receiving through BGP?

Thank you for your time.

1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Super Blue

Re: BGP: How can I tell a router not to use a learned default ro

If you actually want to filter out the route from the BGP peer -

access-list 1 deny 0.0.0.0

access-list 1 permit any

router bgp 64521

neighbor x.x.x.x distribute-list 1 in

where x.x.x.x is the BGP peer that is originating the default-route.

Jon

4 REPLIES
New Member

Re: BGP: How can I tell a router not to use a learned default ro

You can simply enter a static default route and the router will use your static default route rather than the BGP one as static routes' AD is 1 which is less than BGP which is 20..

New Member

Re: BGP: How can I tell a router not to use a learned default ro

Hi networklal .

Yes that was the first thing I did. And i see thet if I do a traceroute vrf VRF_NAME ip X.X.X.X from the router (7604) I see that the router is using the new default route. But behind this router is a switch (3750) on which we have several vrf and there it still uses the default route that the 7604 is receiving through BGP. Setting the default route in the vrf on the 3750 doesn't work. But I noticed that if I set a route for a specific IP address on the 7604 then the 3750 uses that route.

Hall of Fame Super Blue

Re: BGP: How can I tell a router not to use a learned default ro

If you actually want to filter out the route from the BGP peer -

access-list 1 deny 0.0.0.0

access-list 1 permit any

router bgp 64521

neighbor x.x.x.x distribute-list 1 in

where x.x.x.x is the BGP peer that is originating the default-route.

Jon

New Member

Re: BGP: How can I tell a router not to use a learned default ro

Hi jon. That did the trick. Thank you. I did it with a route map but it is the same thing.

router bgp 65000

neighbor 10.X.X.X route-map BGP-IN in

route-map BGP-IN permit 10

match ip add BGP-IN

!

ip access-list standard BGP-IN

deny 0.0.0.0

permit any

Thanx both of you for taking the time to reply.

213
Views
0
Helpful
4
Replies