Re: generate default route and export to kernel if remote peer is up

2018-09-08 Thread Grant Taylor
On 09/08/2018 10:11 AM, Grant Taylor wrote: If I were to try to script something like this today, I'd do it with a few timers.  The first being when the last outgoing traffic was sent and the second being when the last incoming traffic was received.  As long as the second (incoming) timer is lo

Re: generate default route and export to kernel if remote peer is up

2018-09-08 Thread Grant Taylor
On 09/08/2018 04:03 AM, Nikola Mitev wrote: Unfortunately no. I am creating the second peering now, the one which is live is through a Hurricane Electric 6in4 tunnel - it is a free service and I am not sure how much I can ask of them. Okay. I have found it's often worth while to politely ask.

Re: generate default route and export to kernel if remote peer is up

2018-09-08 Thread Nikola Mitev
On Fri, 2018-09-07 at 09:44 -0600, Grant Taylor wrote: > > I have a setup of ISP1 -- R1 -- LAN -- R2 -- ISP2 with BGP peerings > > from  > > R1 to ISP1 and R2 to ISP2 > Are your BGP neighbors advertising a default route to you? Unfortunately no. I am creating the second peering now, the one which

Re: generate default route and export to kernel if remote peer is up

2018-09-07 Thread Grant Taylor
On 09/07/2018 02:34 AM, Nikola Mitev wrote: Hi, Hi, I have a setup of ISP1 -- R1 -- LAN -- R2 -- ISP2 with BGP peerings from R1 to ISP1 and R2 to ISP2 Are your BGP neighbors advertising a default route to you? I would think that R1 and R2 would iBGP neighbors (or similar with other protoc

generate default route and export to kernel if remote peer is up

2018-09-07 Thread Nikola Mitev
Hi, I have a setup of ISP1 -- R1 -- LAN -- R2 -- ISP2 with BGP peerings from R1 to ISP1 and R2 to ISP2 Some hosts on the LAN have R1 as primary gateway, others R2 to distribute the load between the ISPs. I want to add a default route to the kernel on each router but only if the remote peer is up