2 ==========================================
4 FreeBSD 10 restrictions:
5 ------------------------
7 - MPLS is not supported on ``FreeBSD``. MPLS requires a Linux Kernel
8 (4.5 or higher). LDP can be built, but may have limited use without
11 Install required packages
12 -------------------------
14 Add packages: (Allow the install of the package management tool if this
15 is first package install and asked)
19 pkg install git autoconf automake libtool gmake json-c pkgconf \
20 bison flex py27-pytest c-ares python3 py-sphinx
22 Make sure there is no /usr/bin/flex preinstalled (and use the newly
23 installed in /usr/local/bin): (FreeBSD frequently provides a older flex
24 as part of the base OS which takes preference in path)
26 .. include:: building-libyang.rst
32 Get FRR, compile it and install it (from Git)
33 ---------------------------------------------
35 **This assumes you want to build and install FRR from source and not
38 Add frr group and user
39 ^^^^^^^^^^^^^^^^^^^^^^
43 pw groupadd frr -g 101
44 pw groupadd frrvty -g 102
45 pw adduser frr -g 101 -u 101 -G 102 -c "FRR suite" \
46 -d /usr/local/etc/frr -s /usr/sbin/nologin
48 (You may prefer different options on configure statement. These are just
53 git clone https://github.com/frrouting/frr.git frr
57 export LDFLAGS="-L/usr/local/lib"
58 export CPPFLAGS="-I/usr/local/include"
60 --sysconfdir=/usr/local/etc/frr \
61 --enable-pkgsrcrcdir=/usr/pkg/share/examples/rc.d \
62 --localstatedir=/var/run/frr \
64 --enable-multipath=64 \
67 --enable-vty-group=frrvty \
68 --enable-configfile-mask=0640 \
69 --enable-logfile-mask=0640 \
71 --with-pkg-git-version \
72 --with-pkg-extra-version=-MyOwnFRRVersion
77 Create empty FRR configuration files
78 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
82 sudo mkdir /usr/local/etc/frr
84 For integrated config file:
88 sudo touch /usr/local/etc/frr/frr.conf
90 For individual config files:
92 .. note:: Integrated config is preferred to individual config.
96 sudo touch /usr/local/etc/frr/babeld.conf
97 sudo touch /usr/local/etc/frr/bfdd.conf
98 sudo touch /usr/local/etc/frr/bgpd.conf
99 sudo touch /usr/local/etc/frr/eigrpd.conf
100 sudo touch /usr/local/etc/frr/isisd.conf
101 sudo touch /usr/local/etc/frr/ldpd.conf
102 sudo touch /usr/local/etc/frr/nhrpd.conf
103 sudo touch /usr/local/etc/frr/ospf6d.conf
104 sudo touch /usr/local/etc/frr/ospfd.conf
105 sudo touch /usr/local/etc/frr/pbrd.conf
106 sudo touch /usr/local/etc/frr/pimd.conf
107 sudo touch /usr/local/etc/frr/ripd.conf
108 sudo touch /usr/local/etc/frr/ripngd.conf
109 sudo touch /usr/local/etc/frr/staticd.conf
110 sudo touch /usr/local/etc/frr/zebra.conf
111 sudo chown -R frr:frr /usr/local/etc/frr/
112 sudo touch /usr/local/etc/frr/vtysh.conf
113 sudo chown frr:frrvty /usr/local/etc/frr/vtysh.conf
114 sudo chmod 640 /usr/local/etc/frr/*.conf
116 Enable IP & IPv6 forwarding
117 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
119 Add the following lines to the end of ``/etc/sysctl.conf``:
123 # Routing: We need to forward packets
124 net.inet.ip.forwarding=1
125 net.inet6.ip6.forwarding=1
127 **Reboot** or use ``sysctl`` to apply the same config to the running system.