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 4294967295.

Modes

BGP address-family IPv4 unicast configuration mode

BGP address-family IPv6 unicast configuration mode

BGP address-family IPv4 unicast VRF configuration mode

BGP address-family IPv6 unicast VRF configuration mode

Usage Guidelines

The no form of the command restores the default.

Examples

The following example changes the default metric used for redistribution to 100.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family ipv4 unicast
device(config-bgp-ipv4u)# default-metric 100