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

distance command under BGP process

Hi,

 Can someone explain me how does the command 

"distance 200 10.0.0.1 0.0.0.0 DEFAULT" under a BGP process executes.

 

On this router default route is learnt through ospf .

10.0.0.1 is BGP neighbor ip address

DEFAULT is standard access-list with permit 0.0.0.0 statement.

==========================================================

The ospf default route is preferred over the default route of BGP neighbor in this scnario.

 

However i want to know how this command executes.

 

Thanks

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Silver

Basically that command tells

Basically that command tells you this:

"set distance 200 from neighbor 10.0.0.1 for receiving routes matching ACL DEFAULT".

 

HTH,

Dragan

HTH, Dragan
Bronze

If you receive that route via

If you receive that route via eBGP (AD 20) the router will change to 200 if it learned via neighbour 10.0.0.1 giving preference to OSPF AD 120. Resuming the RIB will have the OSPF route

4 REPLIES
Silver

Basically that command tells

Basically that command tells you this:

"set distance 200 from neighbor 10.0.0.1 for receiving routes matching ACL DEFAULT".

 

HTH,

Dragan

HTH, Dragan
New Member

Thanks .......

Thanks .......

Bronze

If you receive that route via

If you receive that route via eBGP (AD 20) the router will change to 200 if it learned via neighbour 10.0.0.1 giving preference to OSPF AD 120. Resuming the RIB will have the OSPF route

New Member

Thanks .....

Thanks .....

1389
Views
0
Helpful
4
Replies
CreatePlease login to create content