Hot!default route redistributed in EBGP

Author
arakaci
New Member
  • Total Posts : 2
  • Scores: 0
  • Reward points: 0
  • Joined: 2021/06/08 23:54:20
  • Status: offline
2021/06/09 00:00:28 (permalink)
0

default route redistributed in EBGP

Hello, 
 
I am trying to redistribute static routes into bgp between two fortigates, but i don't want default-to be advertised.
 
I thought this command is responsible for enabling/disabling def-route advertisiment, and in my config it is set to 
 
"set capability-default-originate disable" 
 
but i am still getting default route.
 
so only option to solve this is route-map, prefix-list filter ?
#1

3 Replies Related Threads

    Yurisk
    Platinum Member
    • Total Posts : 242
    • Scores: 43
    • Reward points: 0
    • Joined: 2011/12/04 03:30:01
    • Location: Israel
    • Status: offline
    Re: default route redistributed in EBGP 2021/06/09 06:21:57 (permalink)
    0
    You are correct,  Fortigate will redistribute all routes of a kind you tell him to + routes learned dynamically from other BGP peers. I.e. if you enable redistribute static -  it will redistribute ALL static routes configured on it, unless of course you set route-map either in redistribute static clause or on BGP peer in outgoing direction. So if you have default route as static, enabling static routes redistribute will advertise it as well, unless filtered out with a route-map/prefix list.
    That is all the beauty of BGP - full control over learning/advertising process, in OSPF e.g. you can't filter anything from learning, only control installing routes in the RIB.
     

    Yuri
    https://yurisk.info/ blog: All things Fortinet, no ads.
    #2
    arakaci
    New Member
    • Total Posts : 2
    • Scores: 0
    • Reward points: 0
    • Joined: 2021/06/08 23:54:20
    • Status: offline
    Re: default route redistributed in EBGP 2021/06/09 09:29:04 (permalink)
    0
    Thanks,

    So the command that I mentioned previously will only be used if there is no static default route in routing-table , but one will still want to advertise it ?
    #3
    Yurisk
    Platinum Member
    • Total Posts : 242
    • Scores: 43
    • Reward points: 0
    • Joined: 2011/12/04 03:30:01
    • Location: Israel
    • Status: offline
    Re: default route redistributed in EBGP 2021/06/12 11:34:41 (permalink)
    0
    Yes

    Yuri
    https://yurisk.info/ blog: All things Fortinet, no ads.
    #4
    Jump to:
    © 2021 APG vNext Commercial Version 5.5