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

Unanswered Question
Apr 18th, 2009

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

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Laurent Aubert Sun, 04/19/2009 - 11:12


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.




This Discussion