<div dir="ltr">Hi Michael,<div><br></div><div>change the preference in the OSPF config:</div><div><br></div><div><span style="font-size:12.8px">protocol ospf ospf_vdsl {</span><br style="font-size:12.8px"><span style="font-size:12.8px">        area 65 {</span><br style="font-size:12.8px"><span style="font-size:12.8px">                stub no;</span><br style="font-size:12.8px"><span style="font-size:12.8px">                interface "vdsl0" {</span><br style="font-size:12.8px"><span style="font-size:12.8px">                        cost 1000;</span></div><div>                       <br style="font-size:12.8px"><span style="font-size:12.8px">                        type broadcast;</span><br style="font-size:12.8px"><span style="font-size:12.8px">                        authentication none;</span><br style="font-size:12.8px"><span style="font-size:12.8px">                };</span><br style="font-size:12.8px"><span style="font-size:12.8px">        };</span><br style="font-size:12.8px"><span style="font-size:12.8px">      <b>  import filter {</b></span><div><span style="font-size:12.8px"><b>                if net ~ [ <a href="http://0.0.0.0/0">0.0.0.0/0</a> ] then {preference = 50; accept;}</b></span></div><div><span style="font-size:12.8px"><b>                reject;</b></span></div><div><span style="font-size:12.8px"><b>        };</b></span></div><div><br></div><span style="font-size:12.8px">        export none;</span><br style="font-size:12.8px"><span style="font-size:12.8px">};</span><br></div><div><br></div><div><div>bird> show route <a href="http://0.0.0.0/0">0.0.0.0/0</a></div><div><a href="http://0.0.0.0/0">0.0.0.0/0</a>          unreachable [Customer 23:24:18 from 10.10.10.101] * (100/-) [i]</div><div>                   via 10.10.10.101 on eth1 [ospf1 23:28:40] E2 (50/10/1) [64] [201.174.1.1]</div><div>bird></div></div><div><br></div><div><br></div><div><br></div><div><span style="font-size:12.8px">Regards.</span></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 14, 2016 at 7:24 PM, Michael Ludvig <span dir="ltr"><<a href="mailto:mludvig@logix.net.nz" target="_blank">mludvig@logix.net.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
I've got a linux router with 2 uplinks - one is a Cisco VDSL modem advertising <a href="http://0.0.0.0/0" rel="noreferrer" target="_blank">0.0.0.0/0</a> over OSPF when VDSL is up and one is Fibre link where the ISP sends us <a href="http://0.0.0.0/0" rel="noreferrer" target="_blank">0.0.0.0/0</a> over BGP.<br>
<br>
If both links are up I want to route everything over Fibre (BGP), if Fibre fails for any reason use the VDSL (OSPF). Here is my config:<br>
<br>
protocol ospf ospf_vdsl {<br>
        area 65 {<br>
                stub no;<br>
                interface "vdsl0" {<br>
                        cost 1000;<br>
                        type broadcast;<br>
                        authentication none;<br>
                };<br>
        };<br>
        import where net = <a href="http://0.0.0.0/0" rel="noreferrer" target="_blank">0.0.0.0/0</a>;<br>
        export none;<br>
};<br>
<br>
protocol bgp bgp_fibre {<br>
        local as xx526;<br>
        neighbor x.x.20.201 as xx746;<br>
        source address x.x.20.202;<br>
        import where net = <a href="http://0.0.0.0/0" rel="noreferrer" target="_blank">0.0.0.0/0</a>;<br>
        export none;<br>
};<br>
<br>
With this config Bird 1.4.5 always prefers OSPF whenever the link is up - how can I tell it to prefer BGP instead? I even set the cost of the VDSL link to 1000 but that didn't make any difference.<br>
<br>
~ # birdc show route for <a href="http://0.0.0.0/0" rel="noreferrer" target="_blank">0.0.0.0/0</a><br>
BIRD 1.4.5 ready.<br>
<a href="http://0.0.0.0/0" rel="noreferrer" target="_blank">0.0.0.0/0</a>          via 10.65.1.1 on vdsl0 [ospf_vdsl 15:47:14] * E2 (150/1000/1) [1] [10.65.1.1]<br>
                   via x.x.20.201 on fibre0 [bgp_fibre 14:28:27] (100) [ASxx746i]<br>
<br>
<br>
Thanks!<span class="HOEnZb"><font color="#888888"><br>
<br>
Michael<br>
<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span><font color="#888888"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="color:rgb(136,136,136);font-size:12.8000001907349px"><font color="#444444"><font size="4"><b>Angel Adrián López Delgado</b></font></font><font color="#444444" size="2"><i><br>Director Network Engineer<br></i></font></div><div style="font-size:12.8000001907349px"><div style="color:rgb(136,136,136);font-size:12.8000001907349px"><font color="#444444" size="2"><i><br></i></font></div><div style="color:rgb(136,136,136);font-size:12.8000001907349px"><i style="font-size:12.8000001907349px"><font color="#444444" size="2"><img src="https://docs.google.com/uc?export=download&id=0B0NZsRPs-VSHbWtQZktPcDFIM1E&revid=0B0NZsRPs-VSHQzNCczBBazZkTTJaUCtUanVYZXkxS1UrQzdRPQ" height="41" width="96"></font></i></div><div style="color:rgb(136,136,136);font-size:12.8000001907349px"><i style="font-size:12.8000001907349px"><font color="#444444" size="2"><br></font></i></div><div style="color:rgb(136,136,136);font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"> </span><a href="https://www.facebook.com/IgnisSoftware" style="color:rgb(17,85,204)" target="_blank"><img src="https://docs.google.com/uc?export=download&id=0B0NZsRPs-VSHb3hta0k3S012eDg&revid=0B0NZsRPs-VSHbUtFcjZ4REVFVFB0U1M4bkdhajE3V1FTMlA0PQ" style="font-size:12.8000001907349px"></a><span style="font-size:12.8000001907349px">  </span><a href="https://twitter.com/IgnisSoftware" style="color:rgb(17,85,204)" target="_blank"><img src="https://docs.google.com/uc?export=download&id=0B0NZsRPs-VSHRU1GVDJSZkFQZlU&revid=0B0NZsRPs-VSHSFJMeFpJUDE3YUNMeXdUWFE1VzJmUWM5QW1zPQ" style="font-size:12.8000001907349px"></a>  <img src="https://docs.google.com/uc?export=download&id=0B0NZsRPs-VSHb0VnOTAxWjFYQm8&revid=0B0NZsRPs-VSHbTVncmRtM1VjSEpjclBGTG91YzZESCtrdWVjPQ" style="font-size:12.8000001907349px;color:rgb(34,34,34)"><span style="font-size:12.8000001907349px;color:rgb(34,34,34)">  </span><img src="https://docs.google.com/uc?export=download&id=0B0NZsRPs-VSHVWRWbksycHV2TFU&revid=0B0NZsRPs-VSHVVJ0VmMzWmZZY3A2dEpEQWhyakZybHJXbVdVPQ" style="font-size:12.8000001907349px;color:rgb(34,34,34)"><i style="font-size:12.8000001907349px"><font color="#444444" size="2"><br></font></i></div><div style="color:rgb(136,136,136);font-size:12.8000001907349px"><br></div><div style="color:rgb(136,136,136);font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">  </span><br></div><div style="font-size:12.8px"><span style="color:rgb(0,0,0)"><font size="2"><i>+52 656 150 44 53 </i></font><i style="font-size:small">| </i><span style="font-size:small"> </span><span style="font-size:small"><span><span><span style="font-size:small">ald</span></span></span>@ignis.software | </span><i style="font-size:small"> </i><span style="font-size:small">Ciudad Juárez, Chihuahua, México | </span></span></div><div style="color:rgb(136,136,136);font-size:12.8000001907349px"><span style="color:rgb(68,68,68);font-size:small"><br></span></div><div style="color:rgb(136,136,136);font-size:12.8000001907349px"><span style="color:rgb(153,153,153);font-family:Helvetica,Arial,sans-serif;font-size:9px;line-height:11px">This
 e-mail message may contain confidential or legally privileged 
information and is intended only for the use of the intended 
recipient(s). Any unauthorized disclosure, dissemination, distribution, 
copying or the taking of any action in reliance on the information 
herein is prohibited. E-mails are not secure and cannot be guaranteed to
 be error free as they can be intercepted, amended, or contain viruses. 
Anyone who communicates with us by e-mail is deemed to have accepted 
these risks. Company Name is not responsible for errors or omissions in 
this message and denies any responsibility for any damage arising from 
the use of e-mail. Any opinion and other statement contained in this 
message and any attachment are solely those of the author and do not 
necessarily represent those of the company.</span></div></div></div></div></div></div></font></span></div></div></div></div></div></div>
</div>