Command:

default-metric (BGP)


Mode:

Router(config-router)#

Router(config-router-af)#


Syntax:

default-metric number
no default-metric number

 

Syntax Description:

number Default metric value appropriate for the specified routing protocol.

 

Command Description:

To set default metric values for the BGP, use the default-metric command in address family or router configuration mode. To return to the default state, use the no form of this command.

The default-metric command is used in conjunction with the redistribute router configuration command to cause the current routing protocol to use the same metric value for all redistributed routes. A default metric helps solve the problem of redistributing routes with incompatible metrics. Whenever metrics do not convert, using a default metric provides a reasonable substitute and enables the redistribution to proceed.

In BGP, this command sets the Multi Exit Discriminator (MED) metric. (The name of this metric for BGP Versions 2 and 3 is INTER_AS.)

Default: Built-in, automatic metric translations, as appropriate for each routing protocol.


Example:

The following router configuration mode example shows a router in autonomous system 109 using both the BGP and the Open Shortest Path First (OSPF) routing protocols. In the example, OSPF-derived routes are advertised by BGP with a default metric of 10:

Router(config)# router bgp 109
Router(config-router)# default-metric 10
Router(config-router)# redistribute ospf

The following address family configuration mode example shows a router in autonomous system 109 using both the BGP and the OSPF routing protocols. In the example, OSPF-derived routes are advertised by BGP with a default metric of 10:

Router(config)# router bgp 109
Router(config-router)# address-family ipv4 unicast
Router(config-router-af)# default-metric 10
Router(config-router-af)# redistribute ospf


Misconceptions:

None


Related Commands:

None

� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)