4 FreeBSD 11 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 managment tool if this
15 is first package install and asked)
19 pkg install git autoconf automake libtool gmake gawk json-c pkgconf \
20 bison flex py27-pytest c-ares python3 py36-sphinx texinfo libyang
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)
30 Get FRR, compile it and install it (from Git)
31 ---------------------------------------------
33 **This assumes you want to build and install FRR from source and not using any
36 Add frr group and user
37 ^^^^^^^^^^^^^^^^^^^^^^
41 pw groupadd frr -g 101
42 pw groupadd frrvty -g 102
43 pw adduser frr -g 101 -u 101 -G 102 -c "FRR suite" \
44 -d /usr/local/etc/frr -s /usr/sbin/nologin
47 Download Source, configure and compile it
48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
50 (You may prefer different options on configure statement. These are just
55 git clone https://github.com/frrouting/frr.git frr
59 setenv LDFLAGS -L/usr/local/lib
60 setenv CPPFLAGS -I/usr/local/include
61 ln -s /usr/local/bin/sphinx-build-3.6 /usr/local/bin/sphinx-build
63 --sysconfdir=/usr/local/etc/frr \
64 --enable-pkgsrcrcdir=/usr/pkg/share/examples/rc.d \
65 --localstatedir=/var/run/frr \
67 --enable-multipath=64 \
70 --enable-vty-group=frrvty \
71 --enable-configfile-mask=0640 \
72 --enable-logfile-mask=0640 \
74 --with-pkg-git-version \
75 --with-pkg-extra-version=-MyOwnFRRVersion
80 Create empty FRR configuration files
81 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
85 sudo mkdir /usr/local/etc/frr
87 For integrated config file:
91 sudo touch /usr/local/etc/frr/frr.conf
93 For individual config files:
95 .. note:: Integrated config is preferred to individual config.
99 sudo touch /usr/local/etc/frr/babeld.conf
100 sudo touch /usr/local/etc/frr/bfdd.conf
101 sudo touch /usr/local/etc/frr/bgpd.conf
102 sudo touch /usr/local/etc/frr/eigrpd.conf
103 sudo touch /usr/local/etc/frr/isisd.conf
104 sudo touch /usr/local/etc/frr/ldpd.conf
105 sudo touch /usr/local/etc/frr/nhrpd.conf
106 sudo touch /usr/local/etc/frr/ospf6d.conf
107 sudo touch /usr/local/etc/frr/ospfd.conf
108 sudo touch /usr/local/etc/frr/pbrd.conf
109 sudo touch /usr/local/etc/frr/pimd.conf
110 sudo touch /usr/local/etc/frr/ripd.conf
111 sudo touch /usr/local/etc/frr/ripngd.conf
112 sudo touch /usr/local/etc/frr/staticd.conf
113 sudo touch /usr/local/etc/frr/zebra.conf
114 sudo chown -R frr:frr /usr/local/etc/frr/
115 sudo touch /usr/local/etc/frr/vtysh.conf
116 sudo chown frr:frrvty /usr/local/etc/frr/vtysh.conf
117 sudo chmod 640 /usr/local/etc/frr/*.conf
119 Enable IP & IPv6 forwarding
120 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
122 Add the following lines to the end of ``/etc/sysctl.conf``:
126 # Routing: We need to forward packets
127 net.inet.ip.forwarding=1
128 net.inet6.ip6.forwarding=1
130 **Reboot** or use ``sysctl`` to apply the same config to the running system.