Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
PavelSpiridonov
Explorer

Set metric in BGP Protocol (R77.20)

Hi all,

I have a CP1450 (R77.20),

BGP Protocol in which is not configurable via Gaia Portal, only via Clish.

How to set metric value to BGP records in route table?

Command 'set routemap mybgp-in id 1 action metric value 50' does not affect,

in Guide says that this command applicable to RIP Protocol.

Is there a similar command for BGP Protocol?

0 Kudos
3 Replies
Chris_Atkinson
Employee
Employee

Can you describe what you're trying to achieve?

If you want one routing protocol prefered over another look at "rank"

Syntax:

set protocol-rank protocol

bgp rank {<0-255> | default}

0 Kudos
PavelSpiridonov
Explorer

I am trying to prioritize between Static and BGP routes. The "Directly" routes always have a metric of "0" - that's fine. The "PPPoE" route has a metric of "101" - that's fine too. In "Static" routes, the metric can be specified manually from "0" to "100". It remains to understand how to influence the metric in the routes "BGP". Now the metric in BGP routes is always "0".

0 Kudos
HeikoAnkenbrand
Champion
Champion

Hi @PavelSpiridonov,


Here you can find some useful BGP parameters:

sk103047: How to configure BGP Path Attributes on Gaia OS

0 Kudos