OPNsense Forum

Archive => 19.1 Legacy Series => Topic started by: paulierco on May 15, 2019, 10:55:03 pm

Title: frr configuration lost
Post by: paulierco on May 15, 2019, 10:55:03 pm
Dear all,

I'm looking forward for use frr as a standalone routing(using vtysh via CLI) and not via webgui.

I've tried different ways, using vtysh but configuration is lost after reboot.
I've tried to add frr_vtysh_boot="YES" to /etc/rc.conf.d/frr but this is again lost after reboot.
I've tried to uninstall os-frr and install frr6 but still doesn't work as expected.

Is there a way to get rid of the web gui of frr and use only vtysh via ssh to opnsense?

Best Regards,
Paul
Title: Re: frr configuration lost
Post by: fabio on May 17, 2019, 04:42:17 pm
I currently use frr6 without the web plugin installed

in my experience the wr vtysh command works fine and save all the configurations in the "right places"

Code: [Select]
# vtysh

Hello, this is FRRouting (version 6.0.2).
Copyright 1996-2005 Kunihiro Ishiguro, et al.

opn1.home # wr
Note: this version of vtysh never writes vtysh.conf
Building Configuration...
Configuration saved to /usr/local/etc/frr/zebra.conf
Configuration saved to /usr/local/etc/frr/ospfd.conf

to start the service at boot I've used the script /usr/local/etc/rc.syshook.d/start/50-frr
Code: [Select]
#!/bin/sh

# XXX this should not be strictly needed
/usr/local/etc/rc.d/frr start
 

as in the os-frr package
Title: Re: frr configuration lost
Post by: paulierco on May 19, 2019, 08:31:33 pm
Thanks, you're the best.
It works!