Skip to content

Commit e0e7899

Browse files
committed
Update README format
1 parent 2c78f48 commit e0e7899

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

README.vpp.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,30 +21,37 @@ exactly to a specific commit of VPP. Without applying this patch, the integratio
2121
VPP and OOR will not work.
2222

2323
Download 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

2829
Patch the code before compiling:
30+
2931
cp <oor_dir>/VPP/vpp.patch .
3032
git apply vpp.patch
3133

3234
Install dependecies:
35+
3336
sudo make install-dep
3437
sudo apt-get install python-cffi python-ply python-pycparser
3538

3639
Finally, 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+
4247
OOR compilation. Read previously the README.md file
48+
4349
cd <oor_dir>/oor/
4450
make platform=vpp
4551
sudo make install
4652

4753
Add 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

6370
To 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
6977
to VPP the management interface of the PC. ==
7078

7179
Start VPP:
80+
7281
sudo service vpp start
7382

7483
List the interfaces assigned to VPP:
84+
7585
vppctl show interface
7686

7787
Configure VPP interfaces:
7888

7989
Assign an address to the interface:
90+
8091
sudo vppctl set int ip address [del] <iface name> <ip address/mask>
8192

8293
Set status of the interface to up:
94+
8395
sudo vppctl set int state <iface name> up|down
8496

8597
Show the interfaces addresses:
98+
8699
vppctl show int addr
87100

88101
If you want to use IID different to 0 (only works with local networks), you will have
89102
to 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

92106
Once you have configured vpp you can start to use OOR.

0 commit comments

Comments
 (0)