Zebraのインストール

旧Zebra(quagga)と新Zebra。さまざまなモジュールの組み合わせができる。

  all old gobgp mix case A all new
config     openconfigd openconfigd
rib zebra zebra ribd zebra/rib/ribd
ospf quagga/ospfd  
quagga/ospfd -d
--socket=/var/run/zserv.api
zebra/rib/ospfd
isis quagga/isisd     na
bgp quagga/bgpd gobgp
quagga/bgpd
--config_file /dev/null --pid_file /tmp/bgpd.pid --socket /var/run/zserv.api
gobgp
conig翻訳     quaggad  
FIB linux     SAI/Cavium

https://github.com/coreswitch/zebra

https://www.slideshare.net/kentaroebisawa/zebra-20-in-hybrid-cloud-era

rib ribd
config openconfigd
bgp gobgp

OSをインストール

 ubuntu 18.04(kernel 4.15)

GOをインストール

apt-get

Zebra 2.0 SRv6の設定

/etc/sysctl

net.ipv6.conf.*.seg6_enabled = 1

net.ipv6.conf.*.seg6_require_hmac = 0

Zebra & openconfigd(all new)

前処理

sudo apt-get update
sudo apt-get -y install git
sudo apt-get -y install gcc
sudo apt-get -y install make
sudo apt-get -y golang
export GOPATH=$HOME/go

• Install openconfigd

$ go get github.com/coreswitch/openconfigd/openconfigd
sudo cp go/src/github.com/coreswitch/openconfigd/package/files/ubuntu/lib/systemd/system/openconfigd.service /etc/systemd/system
sudo mkdir /etc/openconfigd
sudo cp -r go/src/github.com/coreswitch/openconfigd/yang /etc/openconfigd
sudo systemctl enable openconfigd
sudo systemctl restart openconfigd

• Install CLI

$ go get github.com/coreswitch/openconfigd/cli_command
$ cd $GOPATH/src/github.com/coreswitch/openconfigd/cli
$ ./configure; make 
$ sudo make install
$ cd $GOPATH/src/github.com/coreswitch/openconfigd/bash_completion.d
$ sudo cp cli /etc/bash_completion.d/
$ sudo cp $GOPATH/bin/cli_command /usr/local/bin

• Install zebra

$ go get github.com/coreswitch/zebra/rib/ribd
sudo cp go/src/github.com/coreswitch/zebra/package/files/ubuntu/lib/systemd/system/ribd.service /etc/systemd/system
sudo cp go/bin/ribd /usr/bin
sudo systemctl enable ribd
sudo systemctl restart ribd

ribdにSAIを認識させる方法は?

gobgp

go get github.com/osrg/gobgp/gobgpd
go get github.com/osrg/gobgp/gobgp

Quagga + Openconfig(mix)

quaggad

quaggad is openconfigd configuration gateway to quagga.

$ go get github.com/coreswitch/zebra/rib/ribd
$ go get github.com/coreswitch/openconfigd/openconfigd
$ go get github.com/coreswitch/openconfigd/quagga/quaggad
$ sudo ${GOPATH}/bin/openconfigd -y ${GOPATH}/src/github.com/coreswitch/openconfigd/yang &
$ sudo ${GOPATH}/bin/ribd &
$ sudo /usr/lib/quagga/bgpd --config_file /dev/null --pid_file /tmp/bgpd.pid --socket /var/run/zserv.api &
$ sudo ${GOPATH}/bin/quaggad &

 

Quagga (all old)

 

apt-get install quagga