Skip to content
This repository has been archived by the owner on Mar 26, 2021. It is now read-only.
ahmed amamou edited this page Jul 24, 2014 · 18 revisions

Step 1: Get the code

clone github repositories

Kernel part:

$ git clone https://github.com/Gandi/ktrill.git
$ cd ktrill
$ git checkout devel

Quagga part:

$ git clone https://github.com/Gandi/quagga.git
$ cd quagga
$ git checkout dev_trill

Bridge-utils part:

$ git clone https://github.com/Gandi/bridge-utils.git
$ cd bridge-utils
$ git checkout trill

Setp 2: compile

Kernel part

Compile the kernel with these options

CONFIG_TRILL=y
CONFIG_TRILL_VNT=y

Quagga part:

use this compile command $ cd quagga
$ ./bootstrap.sh && ./configure --localstatedir=/var/run/quagga --enable-isisd --enable-trilld --disable-ipv6 --disable-ospfd --disable-ospfclient --disable-ripd --disable-babeld --disable-bgpd && make && make install

Bridge-utils part:

$ cd bridge-utils
$ autoconf && ./configure && make && make install

Step 3: Use

Kernel part :

Boot on compiled kernel

Quagga part :

ZEBRA_CONF= [zebra.conf.sample] (https://github.com/Gandi/quagga/blob/dev_trill/zebra/zebra.conf.sample)
TRILLD_CONF = [trilld.conf.sample] (https://github.com/Gandi/quagga/blob/dev_trill/isisd/trilld.conf.sample)
$ zebra -f $ZEBRA_CONF -P 2121 -u quagga -d
$ trilld -f $TRILLD_CONF -P 2021 -u quagga -d

Bridge-utils part:

Available new commands brctl trill <bridge> {on|off} turn trill on/off
brctl setvni <bridge> <port> <vni> set virtual network id
brctl delvni <bridge> <port> delete virtual network id
brctl showvs <bridge> show vitrual network id
brctl showmacs_nick <bridge> show a list of mac addrs and correspondant nick (experimental)

NB : This configuration works automatically for xen envirement for other virtualisation envirement vm interface need to be correctly flagged
echo 2 > /sys/class/net/<INTERFACE>/brport/trill_state
or just append a vni ID to it using
brctl setvni <bridge> <port> <vni>

Documentation

For more detail view these can see
computer network paper
Kernel recipes 2013 presentation slides
Dot scale youtube presentation

Main Contributors

Ahmed Amamou
Kamel Haddadou
William Dauchy

Clone this wiki locally