@@ -21,37 +21,36 @@ 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-
25- # git clone https://gerrit.fd.io/r/vpp --branch stable/1704
26- # cd vpp
27- # git reset --hard e3b7ad7adebf25af1651a217da8534ada89c369b
24+ git clone https://gerrit.fd.io/r/vpp --branch stable/1704
25+ cd vpp
26+ git reset --hard e3b7ad7adebf25af1651a217da8534ada89c369b
2827
2928Patch the code before compiling:
30- # cp <oor_dir>/VPP/vpp.patch .
31- # git apply vpp.patch
29+ cp <oor_dir>/VPP/vpp.patch .
30+ git apply vpp.patch
3231
3332Install dependecies:
34- # sudo make install-dep
35- # sudo apt-get install python-cffi python-ply python-pycparser
33+ sudo make install-dep
34+ sudo apt-get install python-cffi python-ply python-pycparser
3635
3736Finally, we compile and install VPP:
38- # cd build-root
39- # ./bootstrap.sh
40- # make V=0 PLATFORM=vpp TAG=vpp install-deb
41- # sudo dpkg -i * .deb
37+ cd build-root
38+ ./bootstrap.sh
39+ make V=0 PLATFORM=vpp TAG=vpp install-deb
40+ sudo dpkg -i * .deb
4241
4342OOR compilation. Read previously the README.md file
44- # cd <oor_dir>/oor/
45- # make platform=vpp
46- # sudo make install
43+ cd <oor_dir>/oor/
44+ make platform=vpp
45+ sudo make install
4746
4847Add the OOR VPP plugins:
49- # cd <oor_dir>/VPP/oor_ctrl-plugin
50- # autoreconf -fis
51- # ./configure && make && sudo make install
52- # cd <oor_dir>/VPP/oor_pkt_miss-plugin
53- # autoreconf -fis
54- # ./configure && make && sudo make install
48+ cd <oor_dir>/VPP/oor_ctrl-plugin
49+ autoreconf -fis
50+ ./configure && make && sudo make install
51+ cd <oor_dir>/VPP/oor_pkt_miss-plugin
52+ autoreconf -fis
53+ ./configure && make && sudo make install
5554
5655
5756Configuration
@@ -63,36 +62,31 @@ about VPP or how to configure it, check the wiki page of the project
6362
6463To assign an interface to VPP, check it is not up/configured by the Linux Kernel.
6564If it is then shut it down: For e.g. If you want to use eth1 in vpp then:
66- # sudo ifconfig eth1 down
67- # sudo ip addr flush dev eth1
65+ sudo ifconfig eth1 down
66+ sudo ip addr flush dev eth1
6867
69- ** Notice that the current version of VPP is only a traffic forwarder. Don't assign
70- to VPP the management interface of the PC. **
68+ == Notice that the current version of VPP is only a traffic forwarder. Don't assign
69+ to VPP the management interface of the PC. ==
7170
7271Start VPP:
73- # sudo service vpp start
72+ sudo service vpp start
7473
7574List the interfaces assigned to VPP:
76- # vppctl show interface
75+ vppctl show interface
7776
7877Configure VPP interfaces:
7978
8079Assign an address to the interface:
81- # sudo vppctl set int ip address [ del] <iface name > <ip address/mask>
80+ sudo vppctl set int ip address [ del] <iface name > <ip address/mask>
8281
8382Set status of the interface to up:
84- # sudo vppctl set int state <iface name > up|down
83+ sudo vppctl set int state <iface name > up|down
8584
8685Show the interfaces addresses:
87- # vppctl show int addr
86+ vppctl show int addr
8887
8988If you want to use IID different to 0 (only works with local networks), you will have
9089to do a previous step before configuring the interface associated with the EIDs:
91- # sudo vppctl set interface ip|ip6 table <iface_name> <iid >
90+ sudo vppctl set interface ip|ip6 table <iface_name> <iid >
9291
9392Once you have configured vpp you can start to use OOR.
94-
95-
96-
97-
98-
0 commit comments