OSPFv3 Default route

hello everyone, i can’t find how to put a default route on ospfv3, let me explain, i would like to link my ospfv3 network on two bgp vyos router but i don’t know how to do it

Hello @robincretin ,
Do you want to get the default through BGP and redistribute to OSPF?

I just want to be able to indicate a default route in ospf on my bgp router, to give internet access to my ospf network

I think redistribution is the way to go:

set protocols ospfv3 redistribute bgp route-map #####
'#### - your route-map

The result is a external route on an OSPF neighbor:

but will this cause all bgp routes to be sent on ospf router ?

Yes, they can. That’s why you should use route-maps to filter routes.

https://docs.vyos.io/en/latest/configuration/policy/route-map.html

I must put what as a parameter ?

hi ,

it depends where you want to filter , but it can be something like this:


set policy prefix-list DEFAULT rule 10 action 'permit'
set policy prefix-list DEFAULT rule 10 prefix '0.0.0.0/0'
set policy route-map DEFAULT-IMPORT rule 10 action 'permit'
set policy route-map DEFAULT-IMPORT rule 10 match ip address prefix-list 'DEFAULT'
set policy route-map DEFAULT-IMPORT rule 20 action 'deny'