]> git.proxmox.com Git - mirror_frr.git/blame - doc/Building_FRR_on_Ubuntu1404.md
Rename: freerangerouting --> frrouting
[mirror_frr.git] / doc / Building_FRR_on_Ubuntu1404.md
CommitLineData
278fb111
MW
1Building FRR on Ubuntu 14.04LTS from Git Source
2===============================================
3
4- MPLS is not supported on `Ubuntu 14.04` with default kernel. MPLS requires
5 Linux Kernel 4.5 or higher (LDP can be built, but may have limited use
6 without MPLS)
7 For an updated Ubuntu Kernel, see http://kernel.ubuntu.com/~kernel-ppa/mainline/
8
9Install required packages
10-------------------------
eb651bbc 11
278fb111
MW
12Add packages:
13
eb651bbc
MW
14 apt-get install git autoconf automake libtool make gawk libreadline-dev \
15 texinfo dejagnu pkg-config libpam0g-dev libjson-c-dev bison flex \
16 python-pytest
17
278fb111
MW
18Get FRR, compile it and install it (from Git)
19---------------------------------------------
20
eb651bbc
MW
21**This assumes you want to build and install FRR from source and not using
22any packages**
23
278fb111
MW
24### Add frr groups and user
25
eb651bbc
MW
26 sudo groupadd -g 92 frr
27 sudo groupadd -r -g 85 frrvty
28 sudo adduser --system --ingroup frr --groups frrvty --home /var/run/frr/ \
278fb111
MW
29 --gecos "FRR suite" --shell /sbin/nologin frr
30
31### Download Source, configure and compile it
eb651bbc
MW
32(You may prefer different options on configure statement. These are just
33an example.)
34
d6180888 35 git clone https://github.com/frrouting/frr.git frr
eb651bbc
MW
36 cd frr
37 git checkout stable/2.0
38 ./bootstrap.sh
39 ./configure \
40 --enable-exampledir=/usr/share/doc/frr/examples/ \
41 --localstatedir=/var/run/frr \
42 --sbindir=/usr/lib/frr \
43 --sysconfdir=/etc/frr \
44 --enable-pimd \
45 --enable-watchfrr \
46 --enable-ospfclient=yes \
47 --enable-ospfapi=yes \
48 --enable-multipath=64 \
49 --enable-user=frr \
50 --enable-group=frr \
51 --enable-vty-group=frrvty \
52 --enable-configfile-mask=0640 \
53 --enable-logfile-mask=0640 \
54 --enable-rtadv \
55 --enable-tcp-zebra \
56 --enable-fpm \
57 --with-pkg-git-version \
58 --with-pkg-extra-version=-MyOwnFRRVersion
59 make
60 make check
61 sudo make install
278fb111
MW
62
63### Create empty FRR configuration files
64
eb651bbc
MW
65 sudo mkdir /var/log/frr
66 sudo chown frr:fee /var/log/frr
67 sudo mkdir /etc/frr
68 sudo touch /etc/frr/etc/zebra.conf
69 sudo touch /etc/frr/etc/bgpd.conf
70 sudo touch /etc/frr/etc/ospfd.conf
71 sudo touch /etc/frr/etc/ospf6d.conf
72 sudo touch /etc/frr/etc/isisd.conf
73 sudo touch /etc/frr/etc/ripd.conf
74 sudo touch /etc/frr/etc/ripngd.conf
75 sudo touch /etc/frr/etc/pimd.conf
76 sudo chown frr:frr /etc/frr/
77 sudo touch /etc/frr/etc/vtysh.conf
78 sudo chown frr:frrvty /etc/frr/etc/vtysh.conf
79 sudo chmod 640 /etc/frr/*.conf
278fb111
MW
80
81### Enable IP & IPv6 forwarding
82
eb651bbc
MW
83Edit `/etc/sysctl.conf` and uncomment the following values (ignore the
84other settings)
278fb111 85
eb651bbc
MW
86 # Uncomment the next line to enable packet forwarding for IPv4
87 net.ipv4.ip_forward=1
278fb111 88
eb651bbc
MW
89 # Uncomment the next line to enable packet forwarding for IPv6
90 # Enabling this option disables Stateless Address Autoconfiguration
91 # based on Router Advertisements for this host
92 net.ipv6.conf.all.forwarding=1
278fb111
MW
93
94**Reboot** or use `sysctl` to apply the same config to the running system