R&D/DPDK

VPP routing to Network Interface (VPP -> Linux Network)

sunshout 2017. 6. 15. 20:42

In a single machine, user want to use VPP as L2 gateway.

But uplink is general Linux interface.


In this case, VPP have to forward packet to Linux host. This case can be easily applied by tap interface of VPP.


loopback create set int l2 bridge loop0 1 bvi set int ip address loop0 192.168.1.253/24 set int state loop0 up

tap connect lstack address 192.168.1.254/24 set int l2 bridge tap-0 1 set int state tap-0 up

set int l2 bridge TenGigabitEthernet4/0/0 1 set int state TenGigabitEthernet4/0/0 up


In a host machine, "lstack" interface is created and assigned IP address 192.168.1.2



[Reference]

https://wiki.fd.io/view/VPP/VPP_Home_Gateway