4-2. default-metric metric

Syntax Description:

  • metric— A metric or MED to assign to redistributed routes. The value range is 1 to 4,294,967,295.

Purpose: To assign a metric or MED to routes that are redistributed into BGP. There are three methods for assigning the metric or MED for redistributed routes. The first is to not assign a metric when redistributing routes into BGP. If a metric value is not assigned, the value 0 is applied to the metric for redistributed routes. This occurs when you use the redistribute command with no metric assignment (see section 10-1). The second method is to assign a metric or MED value when redistributing a protocol into BGP (see section 10-2). The third method uses the default-metric command to assign a metric ...

Get Cisco® BGP-4 Command and Configuration Handbook (CCIE Professional Development) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.