Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

FD.io VPP tap-inject with sample_plugins

709 views

Published on

FD.io VPP tap-inject with sample_plugins

2018/04/01
SAKURA Internet, Inc.
Research Center
SR / Naoto MATSUMOTO

Published in: Technology
  • Be the first to comment

  • Be the first to like this

FD.io VPP tap-inject with sample_plugins

  1. 1. FD.io VPP tap-inject with sample_plugins 2018/04/01 SAKURA Internet, Inc. Research Center SR / Naoto MATSUMOTO (C) Copyright 1996-2017 SAKURA Internet Inc
  2. 2. FD.io VPP tap-inject with sample_plugins 2 � 2017 FD.io is a Linux Foundation Project. All Rights Reserved. # uname -sr; cat /etc/lsb-release Linux 4.13.0-37-generic DISTRIB_DESCRIPTION="Ubuntu 17.10" # echo VTYSH_PAGER=more >> /etc/environment # apt install -y quagga # touch /etc/quagga/zebra.conf # touch /etc/quagga/bgpd.conf # chown quagga.quaggavty /etc/quagga/*.conf # chmod 640 /etc/quagga/*.conf # ufw disable # vi /etc/quagga/daemons zebra=yes bgpd=yes # sync; sync; sync; reboot # apt install build-essential -y # cd /opt/ # git clone https://gerrit.fd.io/r/vpp # git clone https://gerrit.fd.io/r/vppsb # cd /opt/vpp # ./extras/vagrant/build.sh # make install-dep; make bootstrap; make build # vi /opt/vppsb/router/router/tap_inject_node.c #include <sys/uio.h> # ln -sf /opt/vppsb/netlink # ln -sf /opt/vppsb/router # ln -sf /opt/vppsb/netlink/netlink.mk build-data/packages/ # ln -sf /opt/vppsb/router/router.mk build-data/packages/ # cd build-root/ # make V=0 PLATFORM=vpp TAG=vpp_debug netlink-install router-install # dpkg -i *.deb # cp -p /opt/vpp/build-root/install-vpp_debug-native/router/lib64/router.so.0.0.0 /usr/lib/vpp_plugins/router.so # service vpp restart # vppctl enable tap-inject # vppctl show tap-inject GigabitEthernet13/0/0 -> vpp1 GigabitEthernetb/0/0 -> vpp0 # vtysh (quagga) # configure terminal (config)# interface vpp0 (config-if)# ip address 192.168.11.100/24 (config-if)# exit (config)# exit # write # quit # vppctl show int addr GigabitEthernetb/0/0 (up): L3 192.168.11.100/24 L3 fe80::20c:29ff:fe24:af28/64 # /opt/vpp/src/examples/sample-plugin # libtoolize # aclocal # autoconf # autoheader # automake --add-missing # chmod +x configure # ./configure # make # make install GigabitEthernetb/0/0 vpp0 vpp_plugins / router.so vpp_plugins / sample_plugin.so quagga

×