default-metric (BGP)

Changes the default metric used for redistribution.
Syntax
default-metric value
no default-metric
Command Default

The default metric value is 1.

Parameters
value
Metric value. Range is from 0 through 65535. The default metric value is 1.
Modes

BGP configuration mode

BGP address-family IPv6 unicast configuration mode

Usage Guidelines

Use the no form of this command to restore the default.

When this command is entered in BGP global configuration mode, it applies only to the IPv4 address family. Use this command in BGP address-family IPv6 unicast configuration mode for BGP4+ configurations.

Examples

This example changes the default metric used for redistribution to 100.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# default-metric 100