Gaming with VPP (fd.io)

Hi Dudes! Nowadays im building highload NATbox with DPDK and VPP (Vector Packet Processing).
Building system on my VirtualBox installation (CentOS 7.2 x64) with 4Gb mem and 4 cpu cores.

Draw scheme how it connected:

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
x _________________MY PHYS MACHINE__________________________x
x                                         |                                                     x
x _____SNAT TO MY REAL IFACE FROM VBOX NETFLT_________x
x _____________|____________    ___________________________________x

x| VPP ROUTER IN VM      |             | CLIENT VM MACHINE |x
x| inet if 1.1.10.10/24       |             |lan if 1.1.1.100/24       |x
x| lan if 1.1.1.10/24          |<—-      |                                     |x
x|gw to my snat 1.1.10.10|             |      def gw 1.1.1.10     |x
x|__________________________|             |_________________________|x
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

When VPP started okay we need to configure this router, begin:

set int ip addr GigabitEthernet0/8/0 1.1.1.10/24
set int ip addr GigabitEthernet0/9/0 1.1.10.10/24
set int state GigabitEthernet0/8/0 up
set int state GigabitEthernet0/9/0 up
ip route add 0.0.0.0/0 via 1.1.10.1 GigabitEthernet0/9/0
set int snat in GigabitEthernet0/8/0
set int snat out GigabitEthernet0/9/0
snat add address 1.1.10.10

Leave a Reply