diff options
| author | Jarad Olson <brotherdust+github@gmail.com> | 2018-05-15 12:25:07 -0600 |
|---|---|---|
| committer | Jarad Olson <brotherdust+github@gmail.com> | 2018-05-15 12:25:07 -0600 |
| commit | d5c8283249e2081490f74d006523d6ea373f019c (patch) | |
| tree | 28e130d1cdf37bbae4c294642f04568b40970713 | |
| parent | bd938314384005118b9cd4a7c712836fe58f5f57 (diff) | |
Add more detail around confiugration files
Signed-off-by: Jarad Olson <brotherdust+github@gmail.com>
| -rw-r--r-- | doc/developer/building-frr-on-ubuntu1804.rst | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/doc/developer/building-frr-on-ubuntu1804.rst b/doc/developer/building-frr-on-ubuntu1804.rst index a117a82e0c..afea8ba24c 100644 --- a/doc/developer/building-frr-on-ubuntu1804.rst +++ b/doc/developer/building-frr-on-ubuntu1804.rst @@ -135,6 +135,20 @@ Compile Create empty FRR configuration files ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +Although not strictly necessary, it's good practice to create empty +configuration files _before_ starting FRR. This assures that the permissions +are correct. If the files are not already present, FRR will create them. + +It's also important to consider _which_ files to create. FRR supports writing +configuration to a monolithic file, ``/etc/frr/frr.conf``, which is not +recommended, according to the +`user guide <http://frrouting.readthedocs.io/en/latest/vtysh.html>`. +The presence of ``/etc/frr/frr.conf`` on startup implicitly configures FRR to +ignore daemon-specific configuration files. + +Daemon-specific configuration +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + :: sudo install -m 755 -o frr -g frr -d /var/log/frr @@ -149,7 +163,15 @@ Create empty FRR configuration files sudo install -m 640 -o frr -g frr /dev/null /etc/frr/pimd.conf sudo install -m 640 -o frr -g frr /dev/null /etc/frr/ldpd.conf sudo install -m 640 -o frr -g frr /dev/null /etc/frr/nhrpd.conf - sudo install -m 640 -o frr -g frrvty /dev/null /etc/frr/vtysh.conf + +Monolithic configuration +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +:: + + sudo install -m 755 -o frr -g frr -d /var/log/frr + sudo install -m 775 -o frr -g frrvty -d /etc/frr + sudo install -m 640 -o frr -g frr /dev/null /etc/frr/frr.conf Enable IPv4 & IPv6 forwarding ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
