Routing

Expand all | Collapse all

bgp multihomed

Jump to Best Answer
  • 1.  bgp multihomed

    Posted 04-25-2019 01:32

    Hi folks, I am trying to configure bgp multihomed and set one peer as main, so far when the main peer goes down traffic is routed through backup peer, but when the main peer comes up, the traffic is not switched back on main peer, how can I do that?

     

    set protocols bgp mtu-discovery
    set protocols bgp group cogent type external
    set protocols bgp group cogent local-preference 180
    set protocols bgp group cogent import pol-bb2isp-in
    set protocols bgp group cogent import pol-reject-any
    set protocols bgp group cogent family inet unicast
    set protocols bgp group cogent export pol-bb2isp-out
    set protocols bgp group cogent export pol-reject-any
    set protocols bgp group cogent neighbor xx.xx.140.209 description Cogent
    set protocols bgp group cogent neighbor xx.xx.140.209 peer-as 174
    set protocols bgp group flexential type external
    set protocols bgp group flexential local-preference 90
    set protocols bgp group flexential import pol-bb2isp-in
    set protocols bgp group flexential import pol-reject-any
    set protocols bgp group flexential family inet unicast
    set protocols bgp group flexential export pol-bb2isp-out
    set protocols bgp group flexential export pol-reject-any
    set protocols bgp group flexential neighbor xx.xx.178.97 description Flexential
    set protocols bgp group flexential neighbor xx.xx.178.97 peer-as 13649
    set protocols bgp group flexential neighbor xx.xx.178.101 description Flexential-2
    set protocols bgp group flexential neighbor xx.xx.178.101 peer-as 13649

    so my main peer is cogent.

     

    Thanks,

    Dan



  • 2.  RE: bgp multihomed
    Best Answer

    Posted 04-25-2019 01:56

    nevermind 🙂 I figure it out, I set the local-pref for the in policy for the backup peer