@@ -21,30 +21,37 @@ exactly to a specific commit of VPP. Without applying this patch, the integratio
2121VPP and OOR will not work.
2222
2323Download the VPP code:
24+
2425 git clone https://gerrit.fd.io/r/vpp --branch stable/1704
2526 cd vpp
2627 git reset --hard e3b7ad7adebf25af1651a217da8534ada89c369b
2728
2829Patch the code before compiling:
30+
2931 cp <oor_dir>/VPP/vpp.patch .
3032 git apply vpp.patch
3133
3234Install dependecies:
35+
3336 sudo make install-dep
3437 sudo apt-get install python-cffi python-ply python-pycparser
3538
3639Finally, we compile and install VPP:
40+
3741 cd build-root
3842 ./bootstrap.sh
3943 make V=0 PLATFORM=vpp TAG=vpp install-deb
4044 sudo dpkg -i *.deb
4145
46+
4247OOR compilation. Read previously the README.md file
48+
4349 cd <oor_dir>/oor/
4450 make platform=vpp
4551 sudo make install
4652
4753Add the OOR VPP plugins:
54+
4855 cd <oor_dir>/VPP/oor_ctrl-plugin
4956 autoreconf -fis
5057 ./configure && make && sudo make install
@@ -61,32 +68,39 @@ about VPP or how to configure it, check the wiki page of the project
6168< https://wiki.fd.io/view/VPP >
6269
6370To assign an interface to VPP, check it is not up/configured by the Linux Kernel.
64- If it is then shut it down: For e.g. If you want to use eth1 in vpp then:
71+ If it is then shut it down: For e.g. If you want to use eth1 in vpp then:
72+
6573 sudo ifconfig eth1 down
6674 sudo ip addr flush dev eth1
6775
6876== Notice that the current version of VPP is only a traffic forwarder. Don't assign
6977to VPP the management interface of the PC. ==
7078
7179Start VPP:
80+
7281 sudo service vpp start
7382
7483List the interfaces assigned to VPP:
84+
7585 vppctl show interface
7686
7787Configure VPP interfaces:
7888
7989Assign an address to the interface:
90+
8091 sudo vppctl set int ip address [del] <iface name> <ip address/mask>
8192
8293Set status of the interface to up:
94+
8395 sudo vppctl set int state <iface name> up|down
8496
8597Show the interfaces addresses:
98+
8699 vppctl show int addr
87100
88101If you want to use IID different to 0 (only works with local networks), you will have
89102to do a previous step before configuring the interface associated with the EIDs:
103+
90104 sudo vppctl set interface ip|ip6 table <iface_name> <iid>
91105
92106Once you have configured vpp you can start to use OOR.
0 commit comments