Re: Redistribution between ospfd and ripd

2020-11-29 Thread Jason Tubnor
On Sat, 28 Nov 2020 at 11:14, Sebastian Benoit  wrote:

> Hi,
>
>
>
>   route add -label FOOBAR 172.16.1.0/24 172.16.2.5
>   route show -label FOOBAR
>
> I am only aware of these mechanisms to set labels on routes added by
> routing daemons:
>
> bgpd (rtlabel  keyword in filter "set")
> ospfd/ospf6d (rtlabel label external-tag number)
>
> Neither would help in your situation.
>
> Can you explain a bit more what you are planing to do?
>

Thanks for that Benno.  I did see another rtlabel reference in ifconfig(8)
but I don't think that will work as expected either
https://man.openbsd.org/ifconfig#rtlabel

During the migration, there will be OpenBSD routers in the network that
will have some routes coming in from OSPF and RIPv2 so both daemons will be
running on these hosts so network segments can continue to talk to each
other.  In the usual commercial offerings, you simply imply what you want
to redistribute and this can be another routing protocol, static, connected
etc. as the routing stack is aware of other protocols being used.

| OSPF 0.0.0.1 | <-> | OpenBSD Router | <-> | RIPv2 |

Cheers.


Re: Redistribution between ospfd and ripd

2020-11-27 Thread Sebastian Benoit
Hi,

Jason Tubnor(ja...@tubnor.net) on 2020.11.25 15:52:19 +1100:
> Hi,
> 
> We are planning for migration from ripd to ospf, however both protocols
> will need to work together as the migration rolls through.
> 
> I was looking at the 'redistribute rtlabel' option, even after digging into
> the code, it is unclear how this would work to bring other dynamic routes
> on the same host to be redistributed by a different routing protocol.

'redistribute rtlabel' can be used to redistribute routes (from the kernel
routing table aka fib) that have a label attached.

Thus, to have a routing daemon announce these routes they have to be in the
fib already. One way to create the routes in the fib is with the route(8)
command:

  route add -label FOOBAR 172.16.1.0/24 172.16.2.5
  route show -label FOOBAR

I am only aware of these mechanisms to set labels on routes added by  routing 
daemons:

bgpd (rtlabel  keyword in filter "set")
ospfd/ospf6d (rtlabel label external-tag number) 

Neither would help in your situation.

Can you explain a bit more what you are planing to do?

/Benno


> 
> A valid, but not very clean solution would be to add:
> 
> redistribute 10.0.0/8
> redistribute 172.16.0/12
> redistribute 192.168.0/16
> 
> To both ospfd.conf and ripd.conf
> 
> What am I missing here or is there a far more elegant way to achieve this?
> 
> Thanks,
> 
> Jason.
> 

-- 



Redistribution between ospfd and ripd

2020-11-24 Thread Jason Tubnor
Hi,

We are planning for migration from ripd to ospf, however both protocols
will need to work together as the migration rolls through.

I was looking at the 'redistribute rtlabel' option, even after digging into
the code, it is unclear how this would work to bring other dynamic routes
on the same host to be redistributed by a different routing protocol.

A valid, but not very clean solution would be to add:

redistribute 10.0.0/8
redistribute 172.16.0/12
redistribute 192.168.0/16

To both ospfd.conf and ripd.conf

What am I missing here or is there a far more elegant way to achieve this?

Thanks,

Jason.