Usage

Starting Control Plane Routing

frrinit.sh or systemctl

Description

frrinit.sh is the startup script in charge of starting the underlying daemons of FRR.

  • starts the relevant daemon with their default options

  • stops the relevant daemon

By default, frrinit.sh will start the following 7 routing protocol daemons: zebra, ospf, ospf6, rip, ripng, bgp, ldp.

This script can be used, if you want to run FRR in standalone mode, that is to say, without the nc-cli framework. However, if you already have the nc-cli started, you should ensure that the nc-cli configuration does not interfere with the routing protocol configuration: for instance, the daemons should not have been launched by nc-cli. This script is also used by systemctl to start FRR in standalone mode.

Synopsis

When using frrinit.sh:

/usr/bin/frrinit.sh start|stop

When using systemctl:

systemctl start|stop frr

Parameters

start

Start the above mentioned daemons

stop

Stop the above mentioned daemons

start frr.service

Start the above mentioned daemons

stop frr.service

Stop the above mentioned daemons

For more information about FRR daemons startup, see the online documentation.

Configuration

Prior to starting the daemons, you can provide a configuration file for each of the associated daemons. The configuration file must be located under /etc/frr/ path. The startup procedure depicted above does not take into account vty integrated configuration. That is to say that as many files as daemons will have to be populated. The configuration files are the following ones:

  • zebra.conf for zebra

  • ospfd.conf for ospf

  • ospf6d.conf for ospf6

  • ripd.conf for rip

  • ripng.conf for ripng

  • bgpd.conf for bgp

  • ldpd.conf for ldp.

When the daemons are started, you can alter the running configuration interactively by passing commands to the relevant daemon via CLI. The CLI syntax and the configuration file syntax are quite similar.

systemctl start frr.service

systemd

Accessing the CLI for runtime configuration

You can access each daemon’s CLI for runtime configuration via vtysh program. It allows configuring the started daemons: zebra, ospf, ospf6, rip, ripng, bgp, ldp.

$ vtysh

See also

For more information about the CLI modes, see the online documentation.