]> git.proxmox.com Git - mirror_frr.git/blame - doc/Building_FRR_on_Ubuntu1404.md
Merge pull request #1329 from opensourcerouting/debian9-pkg
[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
02f3b051 28 sudo adduser --system --ingroup frr --home /var/run/frr/ \
278fb111 29 --gecos "FRR suite" --shell /sbin/nologin frr
02f3b051 30 sudo usermod -a -G frrvty frr
278fb111
MW
31
32### Download Source, configure and compile it
eb651bbc
MW
33(You may prefer different options on configure statement. These are just
34an example.)
35
d6180888 36 git clone https://github.com/frrouting/frr.git frr
eb651bbc 37 cd frr
d300f570 38 git checkout stable/3.0
eb651bbc
MW
39 ./bootstrap.sh
40 ./configure \
6aebd5f5 41 --prefix=/usr \
eb651bbc
MW
42 --enable-exampledir=/usr/share/doc/frr/examples/ \
43 --localstatedir=/var/run/frr \
44 --sbindir=/usr/lib/frr \
45 --sysconfdir=/etc/frr \
46 --enable-pimd \
47 --enable-watchfrr \
48 --enable-ospfclient=yes \
49 --enable-ospfapi=yes \
50 --enable-multipath=64 \
51 --enable-user=frr \
52 --enable-group=frr \
53 --enable-vty-group=frrvty \
54 --enable-configfile-mask=0640 \
55 --enable-logfile-mask=0640 \
56 --enable-rtadv \
eb651bbc 57 --enable-fpm \
aa1322f9 58 --enable-ldpd \
eb651bbc
MW
59 --with-pkg-git-version \
60 --with-pkg-extra-version=-MyOwnFRRVersion
61 make
62 make check
63 sudo make install
278fb111
MW
64
65### Create empty FRR configuration files
66
aa1322f9
PH
67 sudo install -m 755 -o frr -g frr -d /var/log/frr
68 sudo install -m 775 -o frr -g frrvty -d /etc/frr
69 sudo install -m 640 -o frr -g frr /dev/null /etc/frr/zebra.conf
70 sudo install -m 640 -o frr -g frr /dev/null /etc/frr/bgpd.conf
71 sudo install -m 640 -o frr -g frr /dev/null /etc/frr/ospfd.conf
72 sudo install -m 640 -o frr -g frr /dev/null /etc/frr/ospf6d.conf
73 sudo install -m 640 -o frr -g frr /dev/null /etc/frr/isisd.conf
74 sudo install -m 640 -o frr -g frr /dev/null /etc/frr/ripd.conf
75 sudo install -m 640 -o frr -g frr /dev/null /etc/frr/ripngd.conf
76 sudo install -m 640 -o frr -g frr /dev/null /etc/frr/pimd.conf
77 sudo install -m 640 -o frr -g frr /dev/null /etc/frr/ldpd.conf
97b02007 78 sudo install -m 640 -o frr -g frr /dev/null /etc/frr/nhrpd.conf
aa1322f9 79 sudo install -m 640 -o frr -g frrvty /dev/null /etc/frr/vtysh.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 93
02f3b051 94**Reboot** or use `sysctl -p` to apply the same config to the running system
6aebd5f5
HWC
95### Install the init.d service
96
97 sudo install -m 755 tools/frr /etc/init.d/frr
98 sudo install -m 644 cumulus/etc/frr/daemons /etc/frr/daemons
99 sudo install -m 644 cumulus/etc/frr/debian.conf /etc/frr/debian.conf
100 sudo install -m 644 -o frr -g frr cumulus/etc/frr/vtysh.conf /etc/frr/vtysh.conf
101
102
103### Enable daemons
104
105Edit `/etc/frr/daemons` and change the value from "no" to "yes" for those daemons you want to start by systemd.
106For example.
107
108 zebra=yes
109 bgpd=yes
110 ospfd=yes
111 ospf6d=yes
112 ripd=yes
113 ripngd=yes
114 isisd=yes
115
116### Start the init.d service
117- /etc/init.d/frr start
118- use `/etc/init.d/frr status` to check its status.
119
120