QuaggaOSPF Static Routes



  • 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?



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



  • @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.



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



  • @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.


  • Rebel Alliance Developer Netgate

    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.



  • 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).


Log in to reply