set metric (BGP)

To set the metric of a route, use the set metric command in Route Map Configuration mode. This command sets the Multi Exit Discriminator (MED) when used in a BGP context. When there are multiple peering points between two autonomous systems (AS), setting the MED on routes advertised by one router can influence the other AS to send traffic through a specific peer.

Format set metric value
Mode Route Map Configuration
Parameter Description
value A metric value, from 0 to 4,294,967,295 (any 32-bit integer).