Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Unable to annouce static routes with Quagga OSPFd

    Scheduled Pinned Locked Moved Routing and Multi WAN
    3 Posts 2 Posters 1.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hatimux
      last edited by

      Hi,

      I'm adding static routes to my pfsense using for example:
      route add -net 10.1.88.0/24 -interface ovpns1 -static

      I want to annouce these routes with my ospf daemon.

      I use the option "Redistribute kernel" but still I can't see these routes advertised to the neighboring routers.

      Here is my ospfd conf:

      **_interface em0
      interface ovpns1

      router ospf
        redistribute connected
        redistribute kernel
        network 10.1.3.0/24 area 0.0.0.0
        network 10.0.88.0/30 area 0.0.0.0_**

      Any idea about the problem?

      Thank you!

      1 Reply Last reply Reply Quote 0
      • H
        heper
        last edited by

        are the routes showing up in the routing table? (Diagnostics->Routing tables)
        have you tried adding the routes, the normal way ? (using the webgui system->routing->routes). This only works if you have interfaces assigned to your openvpn instances.
        Also might be worth restarting quagga.

        if all else fails you could use the zebra static routes:

        goto quagga webgui –> raw config-->zebra.conf

        
        ip route 10.1.88.0/24 ovpns1
        
        

        in global settings –> check Redistribute static

        fyi: all openvpn related routes, shouldn't be done with static routes ... it should be done using openvpns' builtin tools for routing.

        1 Reply Last reply Reply Quote 0
        • H
          hatimux
          last edited by

          Yes the routes are displayed in the routing table:
          10.0.88.0/24 10.0.88.2 UGS 0 1500 ovpns1

          They appear even in Quagga Zebra Routes:
          K>* 10.0.88.0/24 via 10.0.88.2, ovpns1

          But I can't see them in Quagga OSPF Database. So it's normal that their not announced;

          Adding routes using the GUI is not really what I need.

          In deed when add routes to the zebra daemon I can see them announced.

          I have tried adding static routes to quagga ospf in debian and their are announced with no problems!!

          (What I'm trying to do is annoncing client routes once their connected to my openvpn server. So I need to add static routes)

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.