How to redistribute static routes in Openfabric

I have a network of six VyOS 1.5 routers running Openfabric in GNS3. One of the routers has an interface pointing to an outside network. How can I redistribute a default (or any static) route in Openfabric? I can’t find any commands to do so.

MOD EDIT: This post is almost 100% AI generated, and incorrect.

In VyOS 1.5 with Openfabric (a VyOS implementation of FRRouting), redistributing static routes (including default routes) into Openfabric involves a few specific steps. Here’s how to do it:

  1. First, ensure your static route is properly configured:
set protocols static route 0.0.0.0/0 next-hop <NEXT-HOP-IP>
  1. Redistribute static routes into Openfabric using the redistribute command within the Openfabric configuration:
set protocols openfabric redistribute static
  1. If you specifically need to redistribute only the default route, you’ll need to use a route map for filtering:
# Create a route map that matches only the default route
set policy route-map REDIST-DEFAULT rule 10 action permit
set policy route-map REDIST-DEFAULT rule 10 match destination 0.0.0.0/0

# Apply the route map to Openfabric redistribution
set protocols openfabric redistribute static route-map REDIST-DEFAULT
  1. Commit your changes:
commit
save

This approach works because:

  • Openfabric uses FRRouting under the hood, which follows similar redistribution concepts to other routing protocols
  • The redistribute static command tells Openfabric to advertise all static routes
  • Route maps give you granular control over exactly which routes get redistributed

Remember to verify the redistribution with:

show openfabric route
show ip route

These commands should show your static/default route being advertised through Openfabric to the other routers in your network.

Thanks for the reply, that looks suspiciously like the LLM output I attempted before I created this topic :smiley:.

There is no ‘redistribute’ command in the ‘set protocols openfabric’ command tree.

1 Like

When dropping into vtysh, there are options for redistribution:

vyos# conf t
vyos(config)# router openfabric test
vyos(config-router)# redistribute
  ipv4  Redistribute IPv4 routes
  ipv6  Redistribute IPv6 routes
vyos(config-router)# redistribute ipv4
  babel         Babel routing protocol (Babel)
  bgp           Border Gateway Protocol (BGP)
  connected     Connected routes (directly attached subnet or host)
  eigrp         Enhanced Interior Gateway Routing Protocol (EIGRP)
  isis          Intermediate System to Intermediate System (IS-IS)
  kernel        Kernel routes (not installed via the zebra RIB)
  local         Local routes (directly attached host route)
  nhrp          Next Hop Resolution Protocol (NHRP)
  ospf          Open Shortest Path First (OSPFv2)
  rip           Routing Information Protocol (RIP)
  static        Statically configured routes
  table         Non-main Kernel Routing Table
  table-direct  Non-main Kernel Routing Table - Direct
  vnc           Virtual Network Control (VNC)
vyos(config-router)# redistribute ipv4 bgp
vyos(config-router)# do show running-config
router openfabric test
 redistribute ipv4 bgp

Looks like a feature request just needs to be submitted to add the functionality.

@steveb Could you created a Feature request ? vyos.dev it helps to our developers add this new commands @n.solomko

I’d be happy to, but there seems to be an error preventing me from creating an account on vyos.dev.

Edit: was able to create my account. Awaiting admin approval.

2 Likes

Will submit the feature request when I’m able…..

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.