cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1601
Views
0
Helpful
1
Replies

How does set metric-type internal (bgp) work?

jiangjian
Level 1
Level 1

i can't realise how the command "set metric-type internal " to work.

bgp announce to ebgp use the igp next-hop metric as the med.

the igp means only isis?

does ospf use it ?

will you tell me how to use it ? give me an example . thinks

1 Reply 1

Laurent Aubert
Cisco Employee
Cisco Employee

Hi,

This command can be used into two different contexts:

1- Redistribution into ISIS

When you are redistributing routes into ISIS, you have the choice to set the metric-type as internal (between 0 and 64) or external (between 65 and 128)

Internal metric are always prefer over external metric

2- Set the MED to reflect IGP cost to the NH on eBGP updates

You are receiving an iBGP update and before sending it to your eBGP peers, you want the MED for that prefix set to your IGP cost to the iBGP peer announcing this prefix.

In this case the IGP can be anything.

This command is not necessary if you are redistributing the route into BGP directly instead of receiving them from iBGP. In such case, the MED reflects by default the IGP cost of the redistributed prefix.

HTH

Laurent.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: