Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
hlee
New Contributor

Fortigate BGP community

Hi there,

I am a newbie to Fortigate firewalls.

Is there a way for Fortigate to manipulate the admin distance of a BGP route by a route map...

For example, if the route has a match-community of 65002:1, it leaves the attribute as-is.

But if the route has a match-community of 65030:1, then Fortigate will increases the route's administrative distance to 300.

Appreciate if anyone can shed some light on this.

Cheers,

H.

3 REPLIES 3
jintrah_FTNT
Staff
Staff

hi,

There is no ad value of 300. AD is local to a device,  you may think of altering bgp attributes, weight, local pref, etc as needed. Technical Tip: Use BGP Weight attribute to prefer ... - Fortinet Community

 

Best regards,

Jin

akristof
Staff
Staff

Hello,

Just a side note, you can change the distance for BGP. But this is for whole BGP as protocol and this will reflect administrative distance in routing-table. But as Jin said, any preference manipulation should be done via BGP metrics - as-path, local pref, ...

config router bgp
    set distance-external 20
    set distance-internal 200
    set distance-local 200
end

 

Adrian
Toshi_Esumi
SuperUser
SuperUser

Only based on your description without knowing exactly why you want to manipulate precedence based on incoming communities, likely you just need to set local-references inside the BGP domain.

 

Toshi

Labels
Top Kudoed Authors