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. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

Purple

BGP default-metric

Hi all,

I'm observing the following behaviour when using the 'default-metric' command under a BGP process:

* 'default-metric 300' is configured

- if 'redistribute connected' is configured, all directly connected routes end up with a MED of 0.

- if 'redistribute static' is configured, all statically configured routes end up with a MED of 300.

- routes redistributed from other routing protocols are also set to a MED of 300

- routes injected by using the network command get a MED of 0 if they are directly connected and a MED of 300 if the route is statically configured or learned from an IGP.

* if NO 'default-metric xxx' is configured

- if 'redistribute connected' is configured, all directly connected routes end up with a MED of 0.

- if 'redistribute static' is configured, all statically configured routes end up with a MED of 0.

- routes redistributed from other routing protocols get advertised with a MED equal to the IBGP metric.

- routes injected by using the network command get a MED of 0 if they are directly connected or statically configured and a MED equal to the IGP metric if the route is learned from an IGP.

Ok, my question is, is this the expected behaviour ?

TIA,

Paresh.

1 REPLY
Hall of Fame Super Silver

Re: BGP default-metric

Paresh

Yes this is the expected behavior. BGP is different than other routing protocols in its treatment of default-metric. The IGPs use default-metric directly to specify the metric of redistributed routes. The route selection process in BGP is different (and more complex) and does not have a single "metric" that it uses to choose the best route to use.

HTH

Rick

4210
Views
0
Helpful
1
Replies