VPP/Pure L3 Container Networking

From fd.io
< VPP
Revision as of 15:22, 25 October 2017 by Gilesheron (Talk | contribs)

Jump to: navigation, search

This example shows how to configure VPP as an IPv4 router interconnecting containers across multiple hosts.

VPP itself runs in the root namespace, with a separate namespace for each container.

File:Vpp-container.pdf

Setup

The 2 hosts are interconnected by a router. The router has /24 routes for the client subnets - pointed at the appropriate vSwitch interfaces.

On each host:

sudo docker create -e MICROSERVICE_LABEL=vpp -it --privileged -v "/tmp/vpp_socket:/tmp" -p 5001:5002 -p 9191:9191 --name vpp --network=host contivvpp/vswitch

create file vpp.conf as follows:

unix { nodaemon cli-listen 0.0.0.0:5002 cli-no-pager } dpdk { dev 0000:09:00.0 # replace this with an Ethernet interface on your host uio-driver igb_uio }

sudo docker cp vpp.conf vpp:/etc/vpp/vpp.conf

sudo docker create -it --name client ubuntu

(for the server host change the name to "server")