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

    QuaggaOSPF Static Routes

    Scheduled Pinned Locked Moved Routing and Multi WAN
    7 Posts 4 Posters 2.2k 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.
    • A
      awesomo
      last edited by

      I would like to define static routes in Quagga, and I see that there is a redistribute static option. But when I make the Quagga changes to the config, I have to do it in the config file and it doesn't survive restarts. Is there a way that I can define the routes and have them save without disabling the web based gui completely?

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

        why would you have todo it in the config … there is a webgui where you can do most stuff ?

        1 Reply Last reply Reply Quote 0
        • A
          awesomo
          last edited by

          @heper:

          why would you have todo it in the config … there is a webgui where you can do most stuff ?

          Because you can't define a Quagga static routes in the current gui.

          1 Reply Last reply Reply Quote 0
          • B
            binco
            last edited by

            I guess you can just define the static routes at System->Routing->Routes (http://pfsense/system_routes.php). They should be redistributed by OSPF.

            1 Reply Last reply Reply Quote 0
            • A
              awesomo
              last edited by

              @binco:

              I guess you can just define the static routes at System->Routing->Routes (http://pfsense/system_routes.php). They should be redistributed by OSPF.

              Kernel routes do not let me define weight. I have two routes that both go to the same place. I only want route 2 getting the route to a certain subnet, but as it lays now, quagga just picks one as they appear the same.

              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                What are the manual changes you make the to the quagga config to add these sorts of routes?

                If we know the proper syntax and such then we can try to work it into the GUI.

                Or someone can always write the code and submit a pull request.

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • A
                  awesomo
                  last edited by

                  Zebra.conf (IIRC)

                  Info on Syntax can be found here:
                  http://www.nongnu.org/quagga/docs/docs-info.html#Static-Route-Commands

                  Even if you just had an open text field in the GUI that would add whatever you type to Zebra.conf (like in OpenVPN how you have the text box for extra stuff), that would be great. I am by no means a programmer and tried to do it myself, but I can't get what I have in the text field to apply. (A text field for ospfd.conf would be nice too for things like route maps and access lists).

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