1 Building FRR on Ubuntu 12.04LTS from Git Source
2 ===============================================
4 - MPLS is not supported on `Ubuntu 12.04` with default kernel. MPLS requires
5 Linux Kernel 4.5 or higher (LDP can be built, but may have limited use
7 For an updated Ubuntu Kernel, see http://kernel.ubuntu.com/~kernel-ppa/mainline/
9 Install required packages
10 -------------------------
14 apt-get install git autoconf automake libtool make gawk libreadline-dev \
15 texinfo libpam0g-dev dejagnu libjson0-dev pkg-config libpam0g-dev \
16 libjson0-dev flex python-pip libc-ares-dev python3-dev
18 Install newer bison from 14.04 package source (Ubuntu 12.04 package source
23 wget http://archive.ubuntu.com/ubuntu/pool/main/b/bison/bison_3.0.2.dfsg-2.dsc
24 wget http://archive.ubuntu.com/ubuntu/pool/main/b/bison/bison_3.0.2.dfsg.orig.tar.bz2
25 wget http://archive.ubuntu.com/ubuntu/pool/main/b/bison/bison_3.0.2.dfsg-2.debian.tar.gz
26 tar -jxvf bison_3.0.2.dfsg.orig.tar.bz2
28 tar xzf ../bison_3.0.2.dfsg-2.debian.tar.gz
29 sudo apt-get build-dep bison
32 sudo dpkg -i ./libbison-dev_3.0.2.dfsg-2_amd64.deb ./bison_3.0.2.dfsg-2_amd64.deb
36 Install newer version of autoconf and automake:
38 wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
39 tar xvf autoconf-2.69.tar.gz
41 ./configure --prefix=/usr
46 wget http://ftp.gnu.org/gnu/automake/automake-1.15.tar.gz
47 tar xvf automake-1.15.tar.gz
49 ./configure --prefix=/usr
58 Get FRR, compile it and install it (from Git)
59 ---------------------------------------------
61 **This assumes you want to build and install FRR from source and not using
64 ### Add frr groups and user
66 sudo groupadd -g 92 frr
67 sudo groupadd -r -g 85 frrvty
68 sudo adduser --system --ingroup frr --home /var/run/frr/ \
69 --gecos "FRR suite" --shell /sbin/nologin frr
70 sudo usermod -a -G frrvty frr
72 ### Download Source, configure and compile it
73 (You may prefer different options on configure statement. These are just
76 git clone https://github.com/frrouting/frr.git frr
81 --enable-exampledir=/usr/share/doc/frr/examples/ \
82 --localstatedir=/var/run/frr \
83 --sbindir=/usr/lib/frr \
84 --sysconfdir=/etc/frr \
87 --enable-ospfclient=yes \
88 --enable-ospfapi=yes \
89 --enable-multipath=64 \
92 --enable-vty-group=frrvty \
93 --enable-configfile-mask=0640 \
94 --enable-logfile-mask=0640 \
98 --with-pkg-git-version \
99 --with-pkg-extra-version=-MyOwnFRRVersion
104 ### Create empty FRR configuration files
106 sudo install -m 755 -o frr -g frr -d /var/log/frr
107 sudo install -m 775 -o frr -g frrvty -d /etc/frr
108 sudo install -m 640 -o frr -g frr /dev/null /etc/frr/zebra.conf
109 sudo install -m 640 -o frr -g frr /dev/null /etc/frr/bgpd.conf
110 sudo install -m 640 -o frr -g frr /dev/null /etc/frr/ospfd.conf
111 sudo install -m 640 -o frr -g frr /dev/null /etc/frr/ospf6d.conf
112 sudo install -m 640 -o frr -g frr /dev/null /etc/frr/isisd.conf
113 sudo install -m 640 -o frr -g frr /dev/null /etc/frr/ripd.conf
114 sudo install -m 640 -o frr -g frr /dev/null /etc/frr/ripngd.conf
115 sudo install -m 640 -o frr -g frr /dev/null /etc/frr/pimd.conf
116 sudo install -m 640 -o frr -g frr /dev/null /etc/frr/ldpd.conf
117 sudo install -m 640 -o frr -g frr /dev/null /etc/frr/nhrpd.conf
118 sudo install -m 640 -o frr -g frrvty /dev/null /etc/frr/vtysh.conf
120 ### Enable IP & IPv6 forwarding
122 Edit `/etc/sysctl.conf` and uncomment the following values (ignore the
125 # Uncomment the next line to enable packet forwarding for IPv4
126 net.ipv4.ip_forward=1
128 # Uncomment the next line to enable packet forwarding for IPv6
129 # Enabling this option disables Stateless Address Autoconfiguration
130 # based on Router Advertisements for this host
131 net.ipv6.conf.all.forwarding=1
133 **Reboot** or use `sysctl -p` to apply the same config to the running system
135 ### Install the init.d service
137 sudo install -m 755 tools/frr /etc/init.d/frr
138 sudo install -m 644 cumulus/etc/frr/daemons /etc/frr/daemons
139 sudo install -m 644 cumulus/etc/frr/daemons.conf /etc/frr/daemons.conf
140 sudo install -m 644 -o frr -g frr cumulus/etc/frr/vtysh.conf /etc/frr/vtysh.conf
143 Edit `/etc/frr/daemons` and change the value from "no" to "yes" for those daemons you want to start by systemd.
154 ### Start the init.d service
155 - /etc/init.d/frr start
156 - use `/etc/init.d/frr status` to check its status.