]> git.proxmox.com Git - mirror_frr.git/blame - doc/Building_FRR_on_Ubuntu1404.md
Merge remote-tracking branch 'origin/master' into EIGRP
[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-------------------------
ae32b152 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 \
ae32b152 16 python-pytest libc-ares-dev python3-dev
eb651bbc 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 36 cd frr
eb651bbc
MW
37 ./bootstrap.sh
38 ./configure \
39 --enable-exampledir=/usr/share/doc/frr/examples/ \
40 --localstatedir=/var/run/frr \
41 --sbindir=/usr/lib/frr \
42 --sysconfdir=/etc/frr \
43 --enable-pimd \
44 --enable-watchfrr \
45 --enable-ospfclient=yes \
46 --enable-ospfapi=yes \
47 --enable-multipath=64 \
48 --enable-user=frr \
49 --enable-group=frr \
50 --enable-vty-group=frrvty \
51 --enable-configfile-mask=0640 \
52 --enable-logfile-mask=0640 \
53 --enable-rtadv \
54 --enable-tcp-zebra \
55 --enable-fpm \
56 --with-pkg-git-version \
57 --with-pkg-extra-version=-MyOwnFRRVersion
58 make
59 make check
60 sudo make install
278fb111
MW
61
62### Create empty FRR configuration files
63
eb651bbc 64 sudo mkdir /var/log/frr
e879fd94 65 sudo chown frr:frr /var/log/frr
eb651bbc 66 sudo mkdir /etc/frr
e879fd94
PH
67 sudo touch /etc/frr/zebra.conf
68 sudo touch /etc/frr/bgpd.conf
69 sudo touch /etc/frr/ospfd.conf
70 sudo touch /etc/frr/ospf6d.conf
71 sudo touch /etc/frr/isisd.conf
72 sudo touch /etc/frr/ripd.conf
73 sudo touch /etc/frr/ripngd.conf
74 sudo touch /etc/frr/pimd.conf
eb651bbc 75 sudo chown frr:frr /etc/frr/
e879fd94
PH
76 sudo touch /etc/frr/vtysh.conf
77 sudo chown frr:frrvty /etc/frr/vtysh.conf
eb651bbc 78 sudo chmod 640 /etc/frr/*.conf
278fb111
MW
79
80### Enable IP & IPv6 forwarding
81
eb651bbc
MW
82Edit `/etc/sysctl.conf` and uncomment the following values (ignore the
83other settings)
278fb111 84
eb651bbc
MW
85 # Uncomment the next line to enable packet forwarding for IPv4
86 net.ipv4.ip_forward=1
278fb111 87
eb651bbc
MW
88 # Uncomment the next line to enable packet forwarding for IPv6
89 # Enabling this option disables Stateless Address Autoconfiguration
90 # based on Router Advertisements for this host
91 net.ipv6.conf.all.forwarding=1
278fb111
MW
92
93**Reboot** or use `sysctl` to apply the same config to the running system